新增部分跳转协议和我的页面new角标
This commit is contained in:
@@ -16,10 +16,11 @@ class MeCenterAdapter :
|
||||
|
||||
helper.getView<ImageView>(R.id.iv_pic).load(item.centerPic)
|
||||
helper.setText(R.id.tv_name, item.centerName)
|
||||
helper.setGone(R.id.iv_new,!item.centerBadge.isNullOrEmpty())
|
||||
helper.getView<ImageView>(R.id.iv_new).load(item.centerBadge)
|
||||
helper.itemView.setOnClickListener {
|
||||
RouterHandler.handle(mContext, item.skipType, item.centerUrl)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
@@ -90,6 +90,7 @@ public class RouterHandler {
|
||||
return false;
|
||||
}
|
||||
lastClickTime = System.currentTimeMillis();
|
||||
int intRouterValue = JavaUtil.str2int(routerValue);
|
||||
DialogManagerInterface dmi;
|
||||
switch (routerType) {
|
||||
case RouterType.ROOM:
|
||||
@@ -347,6 +348,18 @@ public class RouterHandler {
|
||||
//粉丝团列表
|
||||
FansTeamListActivity.start(context);
|
||||
break;
|
||||
case RouterType.DECORATION_STORE:
|
||||
if (intRouterValue < 0 || intRouterValue > 4) {
|
||||
intRouterValue = 0;
|
||||
}
|
||||
DecorationStoreActivity.start(context, AuthModel.get().getCurrentUid(), intRouterValue);
|
||||
break;
|
||||
case RouterType.MY_DECORATION:
|
||||
if (intRouterValue < 0 || intRouterValue > 4) {
|
||||
intRouterValue = 0;
|
||||
}
|
||||
MyDecorationActivity.start(context, intRouterValue);
|
||||
break;
|
||||
default:
|
||||
SingleToastUtil.showToast("暂不支持哟!");
|
||||
return false;
|
||||
|
BIN
app/src/main/res/drawable-xhdpi/ic_me_new.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/ic_me_new.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.0 KiB |
@@ -507,7 +507,7 @@
|
||||
android:id="@+id/view_pager_entrance"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_height="150dp" />
|
||||
android:layout_height="146dp" />
|
||||
|
||||
<com.yizhuan.erban.home.widget.MePageIndicatorView
|
||||
android:id="@+id/magic_indicator_entrance"
|
||||
|
@@ -1,23 +1,34 @@
|
||||
<LinearLayout 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:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="6dp"
|
||||
android:layout_marginEnd="6dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.makeramen.roundedimageview.RoundedImageView
|
||||
android:id="@+id/iv_pic"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:src="@drawable/default_cover"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:riv_corner_radius="8dp" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_new"
|
||||
android:layout_width="21dp"
|
||||
android:layout_height="12dp"
|
||||
android:layout_marginStart="20dp"
|
||||
android:layout_marginBottom="25dp"
|
||||
android:src="@drawable/ic_me_new"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@id/iv_pic"
|
||||
app:layout_constraintStart_toStartOf="@id/iv_pic"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_name"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -29,7 +40,10 @@
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="10dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/iv_pic"
|
||||
tools:text="余生点余生点" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
Reference in New Issue
Block a user