1.UI修改:各种小细节 2.联系人列表显示赛事消息预览 3.去掉暗号检测
@@ -28,7 +28,7 @@ public class ActivityLifeManager implements Application.ActivityLifecycleCallbac
|
|||||||
if (count == 0) {
|
if (count == 0) {
|
||||||
//应用回到前台了
|
//应用回到前台了
|
||||||
//这里进行暗号的判断
|
//这里进行暗号的判断
|
||||||
PwdCodeMgr.get().handlePopPwdCodeWindow(activity);
|
//PwdCodeMgr.get().handlePopPwdCodeWindow(activity);
|
||||||
if (AuthModel.get().isImLogin()) {
|
if (AuthModel.get().isImLogin()) {
|
||||||
//签到弹窗
|
//签到弹窗
|
||||||
// SignDialogTimeManager.checkSignDialog(activity, true);
|
// SignDialogTimeManager.checkSignDialog(activity, true);
|
||||||
|
@@ -39,7 +39,6 @@ import com.yizhuan.erban.ui.widget.higuide.TuTuGuideHelper;
|
|||||||
import com.yizhuan.xchat_android_core.UriProvider;
|
import com.yizhuan.xchat_android_core.UriProvider;
|
||||||
import com.yizhuan.xchat_android_core.auth.AuthModel;
|
import com.yizhuan.xchat_android_core.auth.AuthModel;
|
||||||
import com.yizhuan.xchat_android_core.certification.CertificationModel;
|
import com.yizhuan.xchat_android_core.certification.CertificationModel;
|
||||||
import com.yizhuan.xchat_android_core.customer_server.CustomerServerModel;
|
|
||||||
import com.yizhuan.xchat_android_core.decoration.headwear.bean.HeadWearInfo;
|
import com.yizhuan.xchat_android_core.decoration.headwear.bean.HeadWearInfo;
|
||||||
import com.yizhuan.xchat_android_core.home.bean.BannerInfo;
|
import com.yizhuan.xchat_android_core.home.bean.BannerInfo;
|
||||||
import com.yizhuan.xchat_android_core.home.bean.HomeConcernsInfo;
|
import com.yizhuan.xchat_android_core.home.bean.HomeConcernsInfo;
|
||||||
@@ -74,8 +73,6 @@ import java.util.Date;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
|
||||||
import io.reactivex.functions.BiConsumer;
|
|
||||||
|
|
||||||
import static com.yizhuan.xchat_android_core.certification.CertificationModel.CER_TYPE_FORCE;
|
import static com.yizhuan.xchat_android_core.certification.CertificationModel.CER_TYPE_FORCE;
|
||||||
import static com.yizhuan.xchat_android_core.certification.CertificationModel.CER_TYPE_GUIDE;
|
import static com.yizhuan.xchat_android_core.certification.CertificationModel.CER_TYPE_GUIDE;
|
||||||
import static com.yizhuan.xchat_android_core.certification.CertificationModel.CER_TYPE_NONE;
|
import static com.yizhuan.xchat_android_core.certification.CertificationModel.CER_TYPE_NONE;
|
||||||
@@ -96,8 +93,6 @@ public class MeFragment extends BaseMvpFragment<IMainFragmentView, MainFragmentP
|
|||||||
private UserInfo mUserInfo;
|
private UserInfo mUserInfo;
|
||||||
private FragmentMeBinding mBinding;
|
private FragmentMeBinding mBinding;
|
||||||
|
|
||||||
private ObservableScrollView scrollView;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getRootLayoutId() {
|
public int getRootLayoutId() {
|
||||||
return R.layout.fragment_me;
|
return R.layout.fragment_me;
|
||||||
@@ -114,24 +109,6 @@ public class MeFragment extends BaseMvpFragment<IMainFragmentView, MainFragmentP
|
|||||||
if (mBinding != null) {
|
if (mBinding != null) {
|
||||||
mBinding.setClick(this);
|
mBinding.setClick(this);
|
||||||
}
|
}
|
||||||
if (mBinding != null) {
|
|
||||||
scrollView = mBinding.scrollView;
|
|
||||||
scrollView.setScrollViewListener((view, scrollX, scrollY, oldScrollX, oldScrollY) -> {
|
|
||||||
if (scrollY == 0) {// 目前的(滑动后)的Y轴坐标
|
|
||||||
mBinding.tvCenterTitle.setAlpha(0);
|
|
||||||
mBinding.viewToolbarBg.setAlpha(0);
|
|
||||||
} else {
|
|
||||||
if (scrollY > 180) {
|
|
||||||
mBinding.tvCenterTitle.setAlpha(1);
|
|
||||||
mBinding.viewToolbarBg.setAlpha(1);
|
|
||||||
} else {
|
|
||||||
float alpha = scrollY / 180f;
|
|
||||||
mBinding.tvCenterTitle.setAlpha(alpha);
|
|
||||||
mBinding.viewToolbarBg.setAlpha(alpha);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -154,7 +131,6 @@ public class MeFragment extends BaseMvpFragment<IMainFragmentView, MainFragmentP
|
|||||||
requestUpdateUserInfo();
|
requestUpdateUserInfo();
|
||||||
} else if (second == CUSTOM_MESS_SUB_HADEXPIRE) {
|
} else if (second == CUSTOM_MESS_SUB_HADEXPIRE) {
|
||||||
mBinding.ivUserNobleLevel.setVisibility(View.GONE);
|
mBinding.ivUserNobleLevel.setVisibility(View.GONE);
|
||||||
// mBinding.tvNobleRemainTime.setVisibility(View.GONE);
|
|
||||||
mBinding.ivAvatarHeadWear.setVisibility(View.GONE);
|
mBinding.ivAvatarHeadWear.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -217,14 +193,6 @@ public class MeFragment extends BaseMvpFragment<IMainFragmentView, MainFragmentP
|
|||||||
mBinding.tvUserId.setText(String.format(Locale.getDefault(),
|
mBinding.tvUserId.setText(String.format(Locale.getDefault(),
|
||||||
getString(R.string.text_user_id), String.valueOf(mUserInfo.getErbanNo())));
|
getString(R.string.text_user_id), String.valueOf(mUserInfo.getErbanNo())));
|
||||||
|
|
||||||
// int nobleExpire = mUserInfo.getRemainDay();
|
|
||||||
// if (nobleExpire > -1) {
|
|
||||||
// mBinding.tvNobleRemainTime.setVisibility(View.VISIBLE);
|
|
||||||
// } else {
|
|
||||||
// mBinding.tvNobleRemainTime.setVisibility(View.GONE);
|
|
||||||
// }
|
|
||||||
// mBinding.tvNobleRemainTime.setText(getString(R.string.noble_remain_time, nobleExpire));
|
|
||||||
|
|
||||||
NobleInfo nobleInfo = mUserInfo.getNobleInfo();
|
NobleInfo nobleInfo = mUserInfo.getNobleInfo();
|
||||||
HeadWearInfo headWearInfo = mUserInfo.getUserHeadwear();
|
HeadWearInfo headWearInfo = mUserInfo.getUserHeadwear();
|
||||||
if (headWearInfo != null) {
|
if (headWearInfo != null) {
|
||||||
@@ -234,7 +202,6 @@ public class MeFragment extends BaseMvpFragment<IMainFragmentView, MainFragmentP
|
|||||||
NobleUtil.loadResource(NobleUtil.getBadgeByLevel(nobleInfo.getLevel()), mBinding.ivUserNobleLevel);
|
NobleUtil.loadResource(NobleUtil.getBadgeByLevel(nobleInfo.getLevel()), mBinding.ivUserNobleLevel);
|
||||||
} else {
|
} else {
|
||||||
mBinding.ivUserNobleLevel.setVisibility(View.GONE);
|
mBinding.ivUserNobleLevel.setVisibility(View.GONE);
|
||||||
// mBinding.tvNobleRemainTime.setVisibility(View.GONE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
NobleUtil.loadHeadWear(headWearInfo.getEffect() != null ? headWearInfo.getEffect() : headWearInfo.getPic(), mBinding.ivAvatarHeadWear);
|
NobleUtil.loadHeadWear(headWearInfo.getEffect() != null ? headWearInfo.getEffect() : headWearInfo.getPic(), mBinding.ivAvatarHeadWear);
|
||||||
@@ -246,7 +213,6 @@ public class MeFragment extends BaseMvpFragment<IMainFragmentView, MainFragmentP
|
|||||||
} else {
|
} else {
|
||||||
mBinding.ivAvatarHeadWear.setImageDrawable(null);
|
mBinding.ivAvatarHeadWear.setImageDrawable(null);
|
||||||
mBinding.ivUserNobleLevel.setVisibility(View.GONE);
|
mBinding.ivUserNobleLevel.setVisibility(View.GONE);
|
||||||
// mBinding.tvNobleRemainTime.setVisibility(View.GONE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String star = StarUtils.getConstellation(new Date(mUserInfo.getBirth()));
|
String star = StarUtils.getConstellation(new Date(mUserInfo.getBirth()));
|
||||||
@@ -357,29 +323,6 @@ public class MeFragment extends BaseMvpFragment<IMainFragmentView, MainFragmentP
|
|||||||
|
|
||||||
case R.id.me_item_invite:
|
case R.id.me_item_invite:
|
||||||
CommonWebViewActivity.start(mContext, UriProvider.getGameShareUrl());
|
CommonWebViewActivity.start(mContext, UriProvider.getGameShareUrl());
|
||||||
break;
|
|
||||||
case R.id.ll_kf:
|
|
||||||
getDialogManager().showOkCancelDialog("点击确认后将发起客户对话框,确认联系客服吗?",
|
|
||||||
new DialogManager.OkCancelDialogListener() {
|
|
||||||
@Override
|
|
||||||
public void onCancel() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onOk() {
|
|
||||||
CustomerServerModel.getInstance().contactCustomerServer("", "我的页面", null)
|
|
||||||
.subscribe(new BiConsumer<String, Throwable>() {
|
|
||||||
@Override
|
|
||||||
public void accept(String s, Throwable throwable) throws Exception {
|
|
||||||
if (throwable != null) {
|
|
||||||
toast(throwable.getMessage());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case R.id.match_mall:
|
case R.id.match_mall:
|
||||||
FlutterBoost.instance().open(RouterConstants.FLUTTER_PAGE_MALL, null);
|
FlutterBoost.instance().open(RouterConstants.FLUTTER_PAGE_MALL, null);
|
||||||
|
@@ -28,7 +28,7 @@ public class MsgViewHolderMatch extends MsgViewHolderBase {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int getContentResId() {
|
protected int getContentResId() {
|
||||||
return R.layout.im_customer_msg_text;
|
return R.layout.layout_msg_view_holder_match;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -42,16 +42,16 @@ public class MsgViewHolderMatch extends MsgViewHolderBase {
|
|||||||
MsgAttachment attachment = message.getAttachment();
|
MsgAttachment attachment = message.getAttachment();
|
||||||
if (attachment instanceof MatchAttachment) {
|
if (attachment instanceof MatchAttachment) {
|
||||||
matchAttachment = (MatchAttachment) attachment;
|
matchAttachment = (MatchAttachment) attachment;
|
||||||
text = matchAttachment.content;
|
text = matchAttachment.getContent();
|
||||||
}
|
}
|
||||||
mTvMsg.setText(text);
|
mTvMsg.setText(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onItemClick() {
|
protected void onItemClick() {
|
||||||
if (matchAttachment != null && matchAttachment.isNeedForwardToMatchDetail) {
|
if (matchAttachment != null && matchAttachment.isNeedForwardToMatchDetail()) {
|
||||||
HashMap<String, String> args = new HashMap();
|
HashMap<String, String> args = new HashMap<>();
|
||||||
args.put(RouterConstants.FLUTTER_PAGE_ARG_MATCH_ID, String.valueOf(matchAttachment.matchId));
|
args.put(RouterConstants.FLUTTER_PAGE_ARG_MATCH_ID, matchAttachment.getMatchId());
|
||||||
FlutterBoost.instance().open(RouterConstants.FLUTTER_PAGE_MATCH_DETAIL, args);
|
FlutterBoost.instance().open(RouterConstants.FLUTTER_PAGE_MATCH_DETAIL, args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -33,6 +33,7 @@ import com.yizhuan.erban.ui.im.recent.adapter.RecentContactAdapter;
|
|||||||
import com.yizhuan.xchat_android_core.im.custom.bean.AssistantAttachment;
|
import com.yizhuan.xchat_android_core.im.custom.bean.AssistantAttachment;
|
||||||
import com.yizhuan.xchat_android_core.im.custom.bean.CustomAttachment;
|
import com.yizhuan.xchat_android_core.im.custom.bean.CustomAttachment;
|
||||||
import com.yizhuan.xchat_android_core.im.custom.bean.ImTipAttachment;
|
import com.yizhuan.xchat_android_core.im.custom.bean.ImTipAttachment;
|
||||||
|
import com.yizhuan.xchat_android_core.im.custom.bean.MatchAttachment;
|
||||||
import com.yizhuan.xchat_android_core.im.custom.bean.NewbieHelloAttachment;
|
import com.yizhuan.xchat_android_core.im.custom.bean.NewbieHelloAttachment;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@@ -238,7 +239,7 @@ public abstract class RecentViewHolder extends RecyclerViewHolder<BaseQuickAdapt
|
|||||||
recent.getFromAccount(),
|
recent.getFromAccount(),
|
||||||
(NotificationAttachment) recent.getAttachment());
|
(NotificationAttachment) recent.getAttachment());
|
||||||
case robot:
|
case robot:
|
||||||
return "[机器人消息]";
|
return "你收到一条消息...";
|
||||||
case custom:
|
case custom:
|
||||||
if (attachment instanceof CustomAttachment) {
|
if (attachment instanceof CustomAttachment) {
|
||||||
CustomAttachment customAttachment = (CustomAttachment) attachment;
|
CustomAttachment customAttachment = (CustomAttachment) attachment;
|
||||||
@@ -260,11 +261,14 @@ public abstract class RecentViewHolder extends RecyclerViewHolder<BaseQuickAdapt
|
|||||||
case CustomAttachment.CUSTOM_MSG_NEWBIE:
|
case CustomAttachment.CUSTOM_MSG_NEWBIE:
|
||||||
NewbieHelloAttachment newbieHelloAttachment = (NewbieHelloAttachment) attachment;
|
NewbieHelloAttachment newbieHelloAttachment = (NewbieHelloAttachment) attachment;
|
||||||
return newbieHelloAttachment.getNewbieHelloInfo().message;
|
return newbieHelloAttachment.getNewbieHelloInfo().message;
|
||||||
|
case CustomAttachment.CUSTOM_MSG_MATCH:
|
||||||
|
MatchAttachment matchAttachment = (MatchAttachment) attachment;
|
||||||
|
return matchAttachment.getContent();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return "[自定义消息] ";
|
return "你收到一条消息...";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -84,7 +84,7 @@ public class UserModifyPhotosAdapter extends BaseAdapter{
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (position == 0) {
|
if (position == 0) {
|
||||||
holder.imageView.setImageResource(R.drawable.icon_add_photo);
|
holder.imageView.setImageResource(R.drawable.icon_dy_add_image);
|
||||||
holder.imageDelete.setVisibility(View.GONE);
|
holder.imageDelete.setVisibility(View.GONE);
|
||||||
} else {
|
} else {
|
||||||
UserPhoto userPhoto = photoUrls.get(position-1);
|
UserPhoto userPhoto = photoUrls.get(position-1);
|
||||||
|
BIN
app/src/main/res/drawable-xhdpi/arrow_right.png
Normal file
After Width: | Height: | Size: 222 B |
Before Width: | Height: | Size: 350 B |
Before Width: | Height: | Size: 200 B |
BIN
app/src/main/res/drawable-xhdpi/icon_erban_grid_empty.png
Normal file
After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 7.2 KiB |
@@ -50,7 +50,7 @@
|
|||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:src="@drawable/arrow_right_2" />
|
android:src="@drawable/arrow_right" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
@@ -87,7 +87,7 @@
|
|||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:src="@drawable/arrow_right_2" />
|
android:src="@drawable/arrow_right" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
|
@@ -127,7 +127,7 @@
|
|||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:onClick="@{click}"
|
android:onClick="@{click}"
|
||||||
android:text="忘记密码?"
|
android:text="忘记密码?"
|
||||||
android:textColor="@color/text_normal_c6c6e9"
|
android:textColor="@color/text_secondary_4f516a"
|
||||||
android:textSize="13sp" />
|
android:textSize="13sp" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
|
@@ -65,6 +65,6 @@
|
|||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:src="@drawable/arrow_right_2" />
|
android:src="@drawable/arrow_right" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
@@ -2,7 +2,8 @@
|
|||||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingTop="@dimen/dp_20"
|
android:paddingTop="@dimen/dp_10"
|
||||||
|
android:paddingBottom="10dp"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:paddingLeft="@dimen/dp_25"
|
android:paddingLeft="@dimen/dp_25"
|
||||||
@@ -11,6 +12,8 @@
|
|||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="@dimen/dp_40"
|
||||||
|
android:layout_gravity="center_vertical"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
@@ -27,7 +30,6 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="start|center_vertical"
|
android:gravity="start|center_vertical"
|
||||||
android:inputType="textPassword"
|
android:inputType="textPassword"
|
||||||
android:paddingBottom="20dp"
|
|
||||||
android:textColor="@color/color_333333"
|
android:textColor="@color/color_333333"
|
||||||
android:textColorHint="@color/color_b3b3b3"
|
android:textColorHint="@color/color_b3b3b3"
|
||||||
android:textSize="@dimen/dp_14"
|
android:textSize="@dimen/dp_14"
|
||||||
@@ -41,8 +43,7 @@
|
|||||||
android:id="@+id/iv_eyes"
|
android:id="@+id/iv_eyes"
|
||||||
android:layout_width="40dp"
|
android:layout_width="40dp"
|
||||||
android:layout_height="@dimen/dp_40"
|
android:layout_height="@dimen/dp_40"
|
||||||
android:layout_gravity="end|bottom"
|
android:layout_gravity="end|center_vertical"
|
||||||
android:layout_marginBottom="@dimen/dp_10"
|
|
||||||
android:scaleType="centerInside"
|
android:scaleType="centerInside"
|
||||||
android:src="@drawable/ic_eyes_close" />
|
android:src="@drawable/ic_eyes_close" />
|
||||||
</FrameLayout>
|
</FrameLayout>
|
11
app/src/main/res/layout/layout_msg_view_holder_match.xml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:id="@+id/tv_msg"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:maxWidth="215dp"
|
||||||
|
android:padding="@dimen/dp_5"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="14sp"
|
||||||
|
tools:text="恭喜您,获得抽奖机会,点我抽奖>>" />
|
@@ -18,12 +18,12 @@
|
|||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_photo_delete"
|
android:id="@+id/iv_photo_delete"
|
||||||
android:layout_width="24dp"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="24dp"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_marginTop="5dp"
|
android:layout_marginTop="5dp"
|
||||||
android:layout_marginRight="5dp"
|
android:layout_marginRight="5dp"
|
||||||
android:src="@drawable/icon_photo_delete" />
|
android:src="@drawable/ic_nick_delete" />
|
||||||
|
|
||||||
</com.yizhuan.erban.ui.widget.SquareLayout>
|
</com.yizhuan.erban.ui.widget.SquareLayout>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
@@ -1,10 +1,8 @@
|
|||||||
package com.yizhuan.erban.community.publish;
|
package com.yizhuan.erban.community.publish;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.widget.ImageView;
|
||||||
|
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
import android.view.ViewGroup;
|
|
||||||
import android.widget.ImageView;
|
|
||||||
|
|
||||||
import com.bumptech.glide.load.resource.bitmap.CenterCrop;
|
import com.bumptech.glide.load.resource.bitmap.CenterCrop;
|
||||||
import com.bumptech.glide.load.resource.bitmap.RoundedCorners;
|
import com.bumptech.glide.load.resource.bitmap.RoundedCorners;
|
||||||
@@ -14,43 +12,28 @@ import com.netease.nim.uikit.support.glide.GlideApp;
|
|||||||
import com.yizhuan.erban.R;
|
import com.yizhuan.erban.R;
|
||||||
import com.yizhuan.erban.ui.widget.magicindicator.buildins.UIUtil;
|
import com.yizhuan.erban.ui.widget.magicindicator.buildins.UIUtil;
|
||||||
import com.yizhuan.xchat_android_core.community.bean.PublishItem;
|
import com.yizhuan.xchat_android_core.community.bean.PublishItem;
|
||||||
import com.yizhuan.xchat_android_library.utils.config.BasicConfig;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class ImageAdapter extends BaseQuickAdapter<PublishItem, BaseViewHolder> {
|
public class ImageAdapter extends BaseQuickAdapter<PublishItem, BaseViewHolder> {
|
||||||
|
|
||||||
private final int itemHeight;
|
|
||||||
|
|
||||||
public ImageAdapter(int layoutResId, @Nullable List<PublishItem> data) {
|
public ImageAdapter(int layoutResId, @Nullable List<PublishItem> data) {
|
||||||
super(layoutResId, data);
|
super(layoutResId, data);
|
||||||
Context context = BasicConfig.INSTANCE.getAppContext();
|
|
||||||
itemHeight = (UIUtil.getScreenWidth(context) - UIUtil.dip2px(context, 40)) / 3;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void convert(BaseViewHolder helper, PublishItem item) {
|
protected void convert(BaseViewHolder helper, PublishItem item) {
|
||||||
helper.addOnClickListener(R.id.iv_delete);
|
helper.addOnClickListener(R.id.iv_delete);
|
||||||
helper.setVisible(R.id.iv_delete, !item.isAddItem());
|
helper.setVisible(R.id.iv_delete, !item.isAddItem());
|
||||||
ViewGroup.LayoutParams layoutParams = helper.itemView.getLayoutParams();
|
|
||||||
layoutParams.height = itemHeight;
|
|
||||||
helper.itemView.setLayoutParams(layoutParams);
|
|
||||||
ImageView ivPhoto = helper.getView(R.id.iv_photo);
|
ImageView ivPhoto = helper.getView(R.id.iv_photo);
|
||||||
if (item.getButtonType() == PublishItem.BUTTON_TYPE_ADD_ITEM) {
|
if (item.getButtonType() == PublishItem.BUTTON_TYPE_ADD_ITEM) {
|
||||||
GlideApp.with(ivPhoto.getContext())
|
ivPhoto.setImageResource(R.drawable.icon_dy_add_image);
|
||||||
.load(R.drawable.icon_dy_add_image)
|
|
||||||
.transforms(new CenterCrop(),
|
|
||||||
new RoundedCorners(UIUtil.dip2px(ivPhoto.getContext(), 8)))
|
|
||||||
.into(ivPhoto);
|
|
||||||
} else {
|
} else {
|
||||||
// RequestOptions option = new RequestOptions()
|
|
||||||
// .diskCacheStrategy(DiskCacheStrategy.NONE)
|
|
||||||
// .skipMemoryCache(true);
|
|
||||||
// ImageLoadUtilsV2.loadImage(ivPhoto, item.getPath(), false, 8, option);
|
|
||||||
GlideApp.with(ivPhoto.getContext())
|
GlideApp.with(ivPhoto.getContext())
|
||||||
.asBitmap()
|
.asBitmap()
|
||||||
.load(item.getPath())
|
.load(item.getPath())
|
||||||
.transforms(new CenterCrop(),
|
.transform(new CenterCrop(),
|
||||||
new RoundedCorners(UIUtil.dip2px(ivPhoto.getContext(), 8)))
|
new RoundedCorners(UIUtil.dip2px(ivPhoto.getContext(), 8)))
|
||||||
.placeholder(R.drawable.default_cover)
|
.placeholder(R.drawable.default_cover)
|
||||||
.error(R.drawable.default_cover)
|
.error(R.drawable.default_cover)
|
||||||
|
Before Width: | Height: | Size: 146 B After Width: | Height: | Size: 2.1 KiB |
@@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
|
<gradient
|
||||||
|
android:angle="180"
|
||||||
|
android:endColor="@color/color_218eff"
|
||||||
|
android:startColor="@color/color_7727e4"
|
||||||
|
android:type="linear"
|
||||||
|
android:useLevel="true" />
|
||||||
|
<corners
|
||||||
|
android:bottomLeftRadius="9dp"
|
||||||
|
android:bottomRightRadius="9dp"
|
||||||
|
android:topLeftRadius="9dp"
|
||||||
|
android:topRightRadius="4dp" />
|
||||||
|
|
||||||
|
|
||||||
|
</shape>
|
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<solid android:color="#3D3D53" />
|
<solid android:color="@color/bg_secondary_2a2a39" />
|
||||||
<corners android:radius="@dimen/dp_12" />
|
<corners android:radius="@dimen/dp_12" />
|
||||||
</shape>
|
</shape>
|
@@ -8,22 +8,22 @@
|
|||||||
|
|
||||||
<com.yizhuan.erban.base.TitleBar
|
<com.yizhuan.erban.base.TitleBar
|
||||||
android:id="@+id/title_bar"
|
android:id="@+id/title_bar"
|
||||||
android:layout_marginTop="25dp"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="25dp"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_publish"
|
android:id="@+id/tv_publish"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingEnd="@dimen/dp_20"
|
|
||||||
android:paddingStart="@dimen/dp_20"
|
|
||||||
android:paddingTop="5dp"
|
|
||||||
android:paddingBottom="5dp"
|
|
||||||
android:enabled="false"
|
android:enabled="false"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:maxLength="500"
|
android:maxLength="500"
|
||||||
|
android:paddingStart="@dimen/dp_20"
|
||||||
|
android:paddingTop="5dp"
|
||||||
|
android:paddingEnd="@dimen/dp_20"
|
||||||
|
android:paddingBottom="5dp"
|
||||||
android:text="@string/dy_publish"
|
android:text="@string/dy_publish"
|
||||||
android:textColor="@color/text_normal_c6c6e9"
|
android:textColor="@color/text_normal_c6c6e9"
|
||||||
android:textSize="@dimen/sp_13"
|
android:textSize="@dimen/sp_13"
|
||||||
@@ -38,14 +38,14 @@
|
|||||||
android:background="@color/transparent"
|
android:background="@color/transparent"
|
||||||
android:gravity="top"
|
android:gravity="top"
|
||||||
android:hint="@string/dy_say_something"
|
android:hint="@string/dy_say_something"
|
||||||
|
android:maxLength="500"
|
||||||
android:paddingStart="@dimen/dp_20"
|
android:paddingStart="@dimen/dp_20"
|
||||||
android:paddingTop="@dimen/dp_10"
|
android:paddingTop="@dimen/dp_10"
|
||||||
android:paddingEnd="@dimen/dp_20"
|
android:paddingEnd="@dimen/dp_20"
|
||||||
android:paddingBottom="@dimen/dp_10"
|
android:paddingBottom="@dimen/dp_10"
|
||||||
android:maxLength="500"
|
|
||||||
android:textSize="@dimen/sp_13"
|
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:textColorHint="@color/text_secondary_4f516a"
|
android:textColorHint="@color/text_secondary_4f516a"
|
||||||
|
android:textSize="@dimen/sp_13"
|
||||||
app:layout_constraintTop_toBottomOf="@id/title_bar" />
|
app:layout_constraintTop_toBottomOf="@id/title_bar" />
|
||||||
|
|
||||||
|
|
||||||
@@ -57,18 +57,18 @@
|
|||||||
android:text="0/500"
|
android:text="0/500"
|
||||||
android:textColor="@color/text_normal_c6c6e9"
|
android:textColor="@color/text_normal_c6c6e9"
|
||||||
android:textSize="@dimen/sp_13"
|
android:textSize="@dimen/sp_13"
|
||||||
app:layout_constraintTop_toBottomOf="@id/et_content"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"/>
|
app:layout_constraintTop_toBottomOf="@id/et_content" />
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:id="@+id/view"
|
android:id="@+id/view"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="1dp"
|
android:layout_height="1dp"
|
||||||
|
android:layout_marginStart="@dimen/dp_20"
|
||||||
|
android:layout_marginTop="10dp"
|
||||||
|
android:layout_marginEnd="@dimen/dp_20"
|
||||||
android:background="@color/line_353548"
|
android:background="@color/line_353548"
|
||||||
app:layout_constraintTop_toBottomOf="@id/tv_input_limit"
|
app:layout_constraintTop_toBottomOf="@id/tv_input_limit"
|
||||||
android:layout_marginStart="@dimen/dp_20"
|
|
||||||
android:layout_marginEnd="@dimen/dp_20"
|
|
||||||
android:layout_marginTop="10dp"
|
|
||||||
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@@ -79,10 +79,10 @@
|
|||||||
android:layout_marginStart="@dimen/dp_20"
|
android:layout_marginStart="@dimen/dp_20"
|
||||||
android:layout_marginEnd="@dimen/dp_20"
|
android:layout_marginEnd="@dimen/dp_20"
|
||||||
android:layout_marginBottom="@dimen/dp_25"
|
android:layout_marginBottom="@dimen/dp_25"
|
||||||
|
android:gravity="center"
|
||||||
android:text="@string/dy_publish_user_tips"
|
android:text="@string/dy_publish_user_tips"
|
||||||
android:textColor="@color/text_secondary_4f516a"
|
android:textColor="@color/text_secondary_4f516a"
|
||||||
android:textSize="@dimen/sp_11"
|
android:textSize="@dimen/sp_11"
|
||||||
android:gravity="center"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent" />
|
app:layout_constraintStart_toStartOf="parent" />
|
||||||
@@ -93,7 +93,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/tv_tips"
|
app:layout_constraintBottom_toTopOf="@+id/tv_tips"
|
||||||
app:layout_constraintTop_toBottomOf="@id/view" >
|
app:layout_constraintTop_toBottomOf="@id/view">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@@ -108,33 +108,32 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="17.5dp"
|
android:layout_marginTop="17.5dp"
|
||||||
android:layout_marginBottom="@dimen/dp_20"
|
android:layout_marginBottom="@dimen/dp_20"
|
||||||
android:overScrollMode="never"/>
|
android:overScrollMode="never" />
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/rl_choose_group"
|
android:id="@+id/rl_choose_group"
|
||||||
android:layout_marginTop="@dimen/dp_10"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/dp_25" >
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/dp_10">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/ll_miniworld"
|
android:id="@+id/ll_miniworld"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:background="@drawable/shape_bg_mini_world_added"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
|
android:orientation="horizontal"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
tools:visibility="visible"
|
tools:visibility="visible">
|
||||||
android:background="@drawable/shape_bg_mini_world_name"
|
|
||||||
>
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_mini_world_name"
|
android:id="@+id/tv_mini_world_name"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="@dimen/dp_18"
|
android:layout_height="@dimen/dp_18"
|
||||||
android:paddingStart="@dimen/dp_11"
|
|
||||||
android:paddingEnd="10dp"
|
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
|
android:paddingStart="@dimen/dp_10"
|
||||||
|
android:paddingEnd="@dimen/dp_10"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:textSize="@dimen/sp_12"
|
android:textSize="@dimen/sp_12"
|
||||||
tools:text="话题名称" />
|
tools:text="话题名称" />
|
||||||
@@ -142,30 +141,25 @@
|
|||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_close"
|
android:id="@+id/iv_close"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="18dp"
|
||||||
android:textSize="@dimen/dp_12"
|
android:layout_marginEnd="5dp"
|
||||||
android:paddingEnd="10dp"
|
|
||||||
android:paddingStart="0dp"
|
|
||||||
android:src="@drawable/ic_room_main_entrance_close"
|
android:src="@drawable/ic_room_main_entrance_close"
|
||||||
/>
|
android:textSize="@dimen/dp_12" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_choose"
|
android:id="@+id/tv_choose"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="18dp"
|
||||||
android:textColor="@color/white"
|
android:background="@drawable/shape_bg_mini_world_name"
|
||||||
android:textSize="12sp"
|
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:layout_marginEnd="20dp"
|
|
||||||
android:paddingStart="@dimen/dp_10"
|
android:paddingStart="@dimen/dp_10"
|
||||||
android:paddingEnd="@dimen/dp_10"
|
android:paddingEnd="@dimen/dp_10"
|
||||||
android:paddingTop="@dimen/dp_3"
|
android:text="添加话题"
|
||||||
android:paddingBottom="@dimen/dp_3"
|
android:textColor="@color/text_normal_c6c6e9"
|
||||||
tools:visibility="gone"
|
android:textSize="12sp"
|
||||||
android:background="@drawable/shape_bg_mini_world_name"
|
tools:visibility="gone" />
|
||||||
android:text="添加话题"/>
|
|
||||||
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
@@ -181,11 +175,11 @@
|
|||||||
android:id="@+id/tv_label_re_choose"
|
android:id="@+id/tv_label_re_choose"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textSize="13sp"
|
|
||||||
android:textColor="@color/color_999999"
|
|
||||||
android:layout_marginEnd="7.5dp"
|
android:layout_marginEnd="7.5dp"
|
||||||
android:visibility="gone"
|
android:text="重新选择"
|
||||||
android:text="重新选择"/>
|
android:textColor="@color/text_secondary_4f516a"
|
||||||
|
android:textSize="13sp"
|
||||||
|
android:visibility="gone" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
@@ -196,16 +190,16 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="10dp"
|
||||||
|
app:alignItems="flex_start"
|
||||||
|
app:dividerDrawable="@drawable/divider_flexlayout"
|
||||||
app:flexDirection="row"
|
app:flexDirection="row"
|
||||||
app:flexWrap="wrap"
|
app:flexWrap="wrap"
|
||||||
app:justifyContent="flex_start"
|
app:justifyContent="flex_start"
|
||||||
app:showDivider="end|middle"
|
app:showDivider="end|middle" />
|
||||||
app:alignItems="flex_start"
|
|
||||||
app:dividerDrawable="@drawable/divider_flexlayout"/>
|
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="40dp"/>
|
android:layout_height="40dp" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</androidx.core.widget.NestedScrollView>
|
</androidx.core.widget.NestedScrollView>
|
||||||
|
@@ -2,13 +2,15 @@
|
|||||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_photo"
|
android:id="@+id/iv_photo"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="0dp"
|
||||||
android:scaleType="centerCrop" />
|
android:scaleType="centerCrop"
|
||||||
|
app:layout_constraintDimensionRatio="1:1"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_delete"
|
android:id="@+id/iv_delete"
|
||||||
|
@@ -69,7 +69,7 @@ public class IncomeDetailActivity extends BaseMvpActivity<IIncomeDetailView, Inc
|
|||||||
setContentView(R.layout.activity_income_detail);
|
setContentView(R.layout.activity_income_detail);
|
||||||
ButterKnife.bind(this);
|
ButterKnife.bind(this);
|
||||||
|
|
||||||
initTitleBar("收入明细");
|
initWhiteTitleBar("收入明细");
|
||||||
mIncomeDetailAdapter = new IncomeDetailAdapter(null);
|
mIncomeDetailAdapter = new IncomeDetailAdapter(null);
|
||||||
|
|
||||||
recyclerView.setAdapter(mIncomeDetailAdapter);
|
recyclerView.setAdapter(mIncomeDetailAdapter);
|
||||||
|
@@ -38,8 +38,8 @@ public class IncomeDetailAdapter extends BaseQuickAdapter<IncomeGiftInfo, BaseVi
|
|||||||
private SpannableString formatGold(long total) {
|
private SpannableString formatGold(long total) {
|
||||||
|
|
||||||
SpannableString spannableString;
|
SpannableString spannableString;
|
||||||
ForegroundColorSpan first = new ForegroundColorSpan(ContextCompat.getColor(mContext, R.color.appColor));
|
ForegroundColorSpan first = new ForegroundColorSpan(ContextCompat.getColor(mContext, R.color.app_248cfe));
|
||||||
ForegroundColorSpan second = new ForegroundColorSpan(ContextCompat.getColor(mContext, R.color.color_999999));
|
ForegroundColorSpan second = new ForegroundColorSpan(ContextCompat.getColor(mContext, R.color.text_normal_c6c6e9));
|
||||||
|
|
||||||
if (total > 10000) {
|
if (total > 10000) {
|
||||||
double d = (double) total;
|
double d = (double) total;
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingStart="15dp"
|
android:paddingStart="15dp"
|
||||||
android:paddingEnd="15dp"
|
android:paddingEnd="15dp"
|
||||||
android:drawableEnd="@drawable/arrow_right_2"
|
android:drawableEnd="@drawable/arrow_right"
|
||||||
android:paddingTop="8dp"
|
android:paddingTop="8dp"
|
||||||
android:paddingBottom="8dp"
|
android:paddingBottom="8dp"
|
||||||
android:textColor="#ff333333"
|
android:textColor="#ff333333"
|
||||||
|
@@ -8,9 +8,9 @@ import com.alibaba.fastjson.JSONObject;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
public class MatchAttachment extends CustomAttachment {
|
public class MatchAttachment extends CustomAttachment {
|
||||||
public String content;
|
private String content;
|
||||||
public long matchId;
|
private String matchId;
|
||||||
public boolean isNeedForwardToMatchDetail;
|
private boolean isNeedForwardToMatchDetail;
|
||||||
|
|
||||||
public MatchAttachment(int second) {
|
public MatchAttachment(int second) {
|
||||||
super(CUSTOM_MSG_MATCH, second);
|
super(CUSTOM_MSG_MATCH, second);
|
||||||
@@ -24,7 +24,7 @@ public class MatchAttachment extends CustomAttachment {
|
|||||||
content = data.getString("content");
|
content = data.getString("content");
|
||||||
}
|
}
|
||||||
if (data.containsKey("matchId")) {
|
if (data.containsKey("matchId")) {
|
||||||
matchId = data.getLongValue("matchId");
|
matchId = data.getString("matchId");
|
||||||
}
|
}
|
||||||
if (data.containsKey("isNeedForwardToMatchDetail")) {
|
if (data.containsKey("isNeedForwardToMatchDetail")) {
|
||||||
isNeedForwardToMatchDetail = data.getBooleanValue("isNeedForwardToMatchDetail");
|
isNeedForwardToMatchDetail = data.getBooleanValue("isNeedForwardToMatchDetail");
|
||||||
@@ -40,4 +40,16 @@ public class MatchAttachment extends CustomAttachment {
|
|||||||
jsonObject.put("isNeedForwardToMatchDetail", isNeedForwardToMatchDetail);
|
jsonObject.put("isNeedForwardToMatchDetail", isNeedForwardToMatchDetail);
|
||||||
return jsonObject;
|
return jsonObject;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getContent() {
|
||||||
|
return content;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMatchId() {
|
||||||
|
return matchId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isNeedForwardToMatchDetail() {
|
||||||
|
return isNeedForwardToMatchDetail;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -7,6 +7,6 @@
|
|||||||
android:layout_marginBottom="3dip"
|
android:layout_marginBottom="3dip"
|
||||||
android:background="@color/transparent"
|
android:background="@color/transparent"
|
||||||
android:text="@string/readed"
|
android:text="@string/readed"
|
||||||
android:textColor="#666666"
|
android:textColor="@color/text_hint_555574"
|
||||||
android:textSize="12sp"
|
android:textSize="12sp"
|
||||||
android:visibility="gone"/>
|
android:visibility="gone"/>
|
||||||
|