zoukankan      html  css  js  c++  java
  • 团队作业(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来显示个显示控件实现复杂的商城首页。明天进行具体的实现。

  • 相关阅读:
    第六章 条件处理
    VS2019配置MKL教程(Windows)
    攻防世界--srm-50
    攻防世界--The_Maya_Society
    攻防世界--re1-100
    BUUCTF--findit
    凯撒加密与解密实现
    BUUCTF--rsa
    正则表达式
    PyQuery详解
  • 原文地址:https://www.cnblogs.com/buyaoya-pingdao/p/14752867.html
Copyright © 2011-2022 走看看