Android Material Design 史上最全的材料设计控件大全

Android Material Design 史上最全的材料设计控件大全主要内容 本文将要介绍 Material design 和 Support library 控件 主要包括 TextInputLay SwitchCompat SnackBar FloatingActi Shadows Ripples TabLayout RecyclerView Card NavigationVi BottomSheet

大家好,我是讯享网,很高兴认识大家。

先来看下效果吧。


讯享网

这里写图片描述

1. TextInputLayout:

TextInputLayout是用来增强EditText的,使用的时候也是在EditText包裹一层布局,如:

<android.support.design.widget.TextInputLayout android:id="@+id/til_username" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="10dp"> <EditText android:id="@+id/et_name" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="UserName"/> </android.support.design.widget.TextInputLayout> 
 
   
 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12

讯享网
小讯
上一篇 2025-01-12 09:06
下一篇 2025-03-15 13:52

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/72820.html