Commit ad755a4d authored by jianglx's avatar jianglx

修改拍拍样式

parent 2d488ba7
...@@ -8,8 +8,8 @@ android { ...@@ -8,8 +8,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 132 versionCode 134
versionName "1.3.2" versionName "1.3.4"
multiDexEnabled true multiDexEnabled true
//新版Gradle 是 implementation 为了兼容compile,写上这句话 //新版Gradle 是 implementation 为了兼容compile,写上这句话
......
...@@ -8,6 +8,7 @@ import android.view.ViewGroup; ...@@ -8,6 +8,7 @@ import android.view.ViewGroup;
import android.widget.ImageView; import android.widget.ImageView;
import com.bumptech.glide.Glide; import com.bumptech.glide.Glide;
import com.bumptech.glide.load.resource.bitmap.RoundedCorners;
import com.bumptech.glide.request.RequestOptions; import com.bumptech.glide.request.RequestOptions;
import com.bumptech.glide.request.target.SimpleTarget; import com.bumptech.glide.request.target.SimpleTarget;
import com.bumptech.glide.request.transition.Transition; import com.bumptech.glide.request.transition.Transition;
...@@ -61,13 +62,13 @@ public class DiscoveryRecommendAdapter extends BaseQuickAdapter<DiscoveryRecomme ...@@ -61,13 +62,13 @@ public class DiscoveryRecommendAdapter extends BaseQuickAdapter<DiscoveryRecomme
ImageView image = helper.getView(R.id.iv_icon_pat); ImageView image = helper.getView(R.id.iv_icon_pat);
GlideOptions options = GlideOptions.placeholderOf(com.ruiwenliu.wrapper.R.drawable.glide_icon_placeholder). GlideOptions options = GlideOptions.placeholderOf(com.ruiwenliu.wrapper.R.drawable.glide_icon_placeholder).
error(com.ruiwenliu.wrapper.R.drawable.glide_icon_error); error(com.ruiwenliu.wrapper.R.drawable.glide_icon_error);
TransformationUtils utils = new TransformationUtils(image);
Glide.with(mContext) Glide.with(mContext)
.asBitmap() .asBitmap()
.load(body.getImages().get(0).getOurl()) .load(body.getImages().get(0).getOurl())
.apply(options) .apply(options)
.apply(RequestOptions.bitmapTransform(new GlideRoundTransform(mContext, 3))) .apply(RequestOptions.bitmapTransform(new RoundedCorners(12)).override(image.getWidth(), image.getHeight()))
.into(new TransformationUtils(image)); .into(utils);
} }
helper.setText(R.id.tv_title, body.getText()); helper.setText(R.id.tv_title, body.getText());
if ("4".equals(body.getType())) { //消息类型 基础属性 1=文字消息、2=图文消息、3=语音消息、4=视频消息、 5=文件消 if ("4".equals(body.getType())) { //消息类型 基础属性 1=文字消息、2=图文消息、3=语音消息、4=视频消息、 5=文件消
......
...@@ -10,6 +10,8 @@ public class TransformationUtils extends ImageViewTarget<Bitmap> { ...@@ -10,6 +10,8 @@ public class TransformationUtils extends ImageViewTarget<Bitmap> {
private ImageView target; private ImageView target;
public TransformationUtils(ImageView target) { public TransformationUtils(ImageView target) {
super(target); super(target);
this.target = target; this.target = target;
......
...@@ -88,10 +88,10 @@ public class Actions { ...@@ -88,10 +88,10 @@ public class Actions {
* @param context * @param context
*/ */
public void bindwechat(Context context) { public void bindwechat(Context context) {
if (listener == null) { // if (listener == null) {
listener = new RvUMAuthListener(context); // listener = new RvUMAuthListener(context);
} // }
UMShareAPI.get(context).getPlatformInfo((Activity) context, SHARE_MEDIA.WEIXIN, listener); // UMShareAPI.get(context).getPlatformInfo((Activity) context, SHARE_MEDIA.WEIXIN, listener);
} }
/***** /*****
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment