团队作业(4)

继续做我的界面,

在搜索了良久之后,发现这样的demo,他引用了一个自己制作的包来实现,需要在build.gradle中导入包

implementation 'com.leon:lsettingviewlibrary:1.3.0'
implementation 'de.hdodenhof:circleimageview:2.1.0'
<com.leon.lib.settingview.LSettingItem
android:id="@+id/item_one"
android:layout_width="match_parent"
android:layout_height="wrap_content"
leon:leftIcon="@drawable/icon_cartfill_press"
leon:leftText="我的购物车" />
<com.leon.lib.settingview.LSettingItem
android:layout_width="match_parent"
android:layout_height="wrap_content"
leon:leftIcon="@drawable/d4"
leon:leftText="钱包" />

<com.leon.lib.settingview.LSettingItem
android:layout_width="match_parent"
android:layout_height="wrap_content"
leon:leftText="退出登录"
leon:leftIcon="@drawable/bl_gb"
android:id="@+id/item_tuichu"
leon:rightStyle="iconHide"/>

具体效果如下:

 

 可以当成一个个按钮,可以实现单独的点击事件。

 

 

再此之后开始考虑商城首页如何制作,苦于他的复杂,找到相应的资料,用recleyerview来显示个显示控件实现复杂的商城首页。明天进行具体的实现。

posted @ 2021-05-05 21:36  不咬牙  阅读(79)  评论(0编辑  收藏  举报