From 8af231e526c656f827b00995ea9614fc5a6e5953 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Wed, 19 Jul 2023 13:07:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=A4=B4=E5=83=8F=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/common/utils/RouteUtil.java | 1 + .../activity/UserAvatarSelectActivity.java | 27 +++++++++++++++ .../main/adapter/UserAvatarSelectAdapter.java | 33 +++++++++++++++++++ .../layout/activity_user_select_avatar.xml | 22 +++++++++++++ .../res/layout/item_user_avatar_select.xml | 6 ++++ 5 files changed, 89 insertions(+) create mode 100644 main/src/main/java/com/yunbao/main/activity/UserAvatarSelectActivity.java create mode 100644 main/src/main/java/com/yunbao/main/adapter/UserAvatarSelectAdapter.java create mode 100644 main/src/main/res/layout/activity_user_select_avatar.xml create mode 100644 main/src/main/res/layout/item_user_avatar_select.xml diff --git a/common/src/main/java/com/yunbao/common/utils/RouteUtil.java b/common/src/main/java/com/yunbao/common/utils/RouteUtil.java index aaae75cc4..e62497908 100644 --- a/common/src/main/java/com/yunbao/common/utils/RouteUtil.java +++ b/common/src/main/java/com/yunbao/common/utils/RouteUtil.java @@ -43,6 +43,7 @@ public class RouteUtil { public static final String PATH_RED_PACKET_LIST = "/main/RedPacketListActivity"; public static final String PATH_RED_PACKET_INFO = "/main/RedPacketInfoActivity"; public static final String PATH_RED_PACKET_USER = "/main/RedPacketUsersActivity"; + public static final String PATH_SELECT_AVATAR="/main/UserAvatarSelectActivity"; public static void forwardFansActivity(String uid) { ARouter.getInstance().build(PATH_FANSACTIVITY) diff --git a/main/src/main/java/com/yunbao/main/activity/UserAvatarSelectActivity.java b/main/src/main/java/com/yunbao/main/activity/UserAvatarSelectActivity.java new file mode 100644 index 000000000..c2a0fc665 --- /dev/null +++ b/main/src/main/java/com/yunbao/main/activity/UserAvatarSelectActivity.java @@ -0,0 +1,27 @@ +package com.yunbao.main.activity; + +import android.os.Bundle; + +import androidx.annotation.Nullable; +import androidx.recyclerview.widget.RecyclerView; + +import com.alibaba.android.arouter.facade.annotation.Route; +import com.yunbao.common.activity.AbsActivity; +import com.yunbao.common.utils.RouteUtil; +import com.yunbao.main.R; + +@Route(path = RouteUtil.PATH_SELECT_AVATAR) +public class UserAvatarSelectActivity extends AbsActivity { + RecyclerView recyclerView; + + @Override + protected int getLayoutId() { + return R.layout.activity_user_select_avatar; + } + + @Override + protected void main() { + super.main(); + recyclerView = findViewById(R.id.recyclerView); + } +} diff --git a/main/src/main/java/com/yunbao/main/adapter/UserAvatarSelectAdapter.java b/main/src/main/java/com/yunbao/main/adapter/UserAvatarSelectAdapter.java new file mode 100644 index 000000000..336c7a2f0 --- /dev/null +++ b/main/src/main/java/com/yunbao/main/adapter/UserAvatarSelectAdapter.java @@ -0,0 +1,33 @@ +package com.yunbao.main.adapter; + +import android.view.View; +import android.view.ViewGroup; + +import androidx.annotation.NonNull; +import androidx.recyclerview.widget.RecyclerView; + +public class UserAvatarSelectAdapter extends RecyclerView.Adapter{ + @NonNull + @Override + public AvatarSelectViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { + return null; + } + + @Override + public void onBindViewHolder(@NonNull AvatarSelectViewHolder holder, int position) { + + } + + @Override + public int getItemCount() { + return 0; + } + + public class AvatarSelectViewHolder extends RecyclerView.ViewHolder{ + + public AvatarSelectViewHolder(@NonNull View itemView) { + super(itemView); + } + } + +} diff --git a/main/src/main/res/layout/activity_user_select_avatar.xml b/main/src/main/res/layout/activity_user_select_avatar.xml new file mode 100644 index 000000000..df22e97fa --- /dev/null +++ b/main/src/main/res/layout/activity_user_select_avatar.xml @@ -0,0 +1,22 @@ + + + + + + + \ No newline at end of file diff --git a/main/src/main/res/layout/item_user_avatar_select.xml b/main/src/main/res/layout/item_user_avatar_select.xml new file mode 100644 index 000000000..77d9ef65f --- /dev/null +++ b/main/src/main/res/layout/item_user_avatar_select.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file