Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RvApp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lify
RvApp
Commits
ad755a4d
Commit
ad755a4d
authored
Aug 06, 2019
by
jianglx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改拍拍样式
parent
2d488ba7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
9 deletions
+12
-9
build.gradle
RvClient/build.gradle
+2
-2
DiscoveryRecommendAdapter.java
...com/xxfc/discovery/adapter/DiscoveryRecommendAdapter.java
+4
-3
TransformationUtils.java
...in/java/com/xxfc/discovery/utils/TransformationUtils.java
+2
-0
Actions.java
plugin_points/src/main/java/com/rv/points/Actions.java
+4
-4
No files found.
RvClient/build.gradle
View file @
ad755a4d
...
...
@@ -8,8 +8,8 @@ android {
minSdkVersion
rootProject
.
ext
.
minSdkVersion
targetSdkVersion
rootProject
.
ext
.
targetSdkVersion
versionCode
13
2
versionName
"1.3.
2
"
versionCode
13
4
versionName
"1.3.
4
"
multiDexEnabled
true
//新版Gradle 是 implementation 为了兼容compile,写上这句话
...
...
module_discovery/src/main/java/com/xxfc/discovery/adapter/DiscoveryRecommendAdapter.java
View file @
ad755a4d
...
...
@@ -8,6 +8,7 @@ import android.view.ViewGroup;
import
android.widget.ImageView
;
import
com.bumptech.glide.Glide
;
import
com.bumptech.glide.load.resource.bitmap.RoundedCorners
;
import
com.bumptech.glide.request.RequestOptions
;
import
com.bumptech.glide.request.target.SimpleTarget
;
import
com.bumptech.glide.request.transition.Transition
;
...
...
@@ -61,13 +62,13 @@ public class DiscoveryRecommendAdapter extends BaseQuickAdapter<DiscoveryRecomme
ImageView
image
=
helper
.
getView
(
R
.
id
.
iv_icon_pat
);
GlideOptions
options
=
GlideOptions
.
placeholderOf
(
com
.
ruiwenliu
.
wrapper
.
R
.
drawable
.
glide_icon_placeholder
).
error
(
com
.
ruiwenliu
.
wrapper
.
R
.
drawable
.
glide_icon_error
);
TransformationUtils
utils
=
new
TransformationUtils
(
image
);
Glide
.
with
(
mContext
)
.
asBitmap
()
.
load
(
body
.
getImages
().
get
(
0
).
getOurl
())
.
apply
(
options
)
.
apply
(
RequestOptions
.
bitmapTransform
(
new
GlideRoundTransform
(
mContext
,
3
)))
.
into
(
new
TransformationUtils
(
image
)
);
.
apply
(
RequestOptions
.
bitmapTransform
(
new
RoundedCorners
(
12
)).
override
(
image
.
getWidth
(),
image
.
getHeight
(
)))
.
into
(
utils
);
}
helper
.
setText
(
R
.
id
.
tv_title
,
body
.
getText
());
if
(
"4"
.
equals
(
body
.
getType
()))
{
//消息类型 基础属性 1=文字消息、2=图文消息、3=语音消息、4=视频消息、 5=文件消
...
...
module_discovery/src/main/java/com/xxfc/discovery/utils/TransformationUtils.java
View file @
ad755a4d
...
...
@@ -10,6 +10,8 @@ public class TransformationUtils extends ImageViewTarget<Bitmap> {
private
ImageView
target
;
public
TransformationUtils
(
ImageView
target
)
{
super
(
target
);
this
.
target
=
target
;
...
...
plugin_points/src/main/java/com/rv/points/Actions.java
View file @
ad755a4d
...
...
@@ -88,10 +88,10 @@ public class Actions {
* @param context
*/
public
void
bindwechat
(
Context
context
)
{
if
(
listener
==
null
)
{
listener
=
new
RvUMAuthListener
(
context
);
}
UMShareAPI
.
get
(
context
).
getPlatformInfo
((
Activity
)
context
,
SHARE_MEDIA
.
WEIXIN
,
listener
);
//
if (listener == null) {
//
listener = new RvUMAuthListener(context);
//
}
//
UMShareAPI.get(context).getPlatformInfo((Activity) context, SHARE_MEDIA.WEIXIN, listener);
}
/*****
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment