android-UI框架
villen_t
这个作者很懒,什么都没留下…
展开
-
首页Tab+Fragment
方式一:RadioGroup + RadioButton + Fragment方式二:RadioGroup + RadioButton + ViewPager + Fragment方式三:Navigation + Fragment原创 2021-09-04 21:52:08 · 231 阅读 · 0 评论 -
UI基础实现(header + divider + footer)
layout_divider_horizontal.xml<?xml version="1.0" encoding="utf-8"?><View xmlns:android=&原创 2018-07-23 10:28:39 · 306 阅读 · 0 评论 -
UI基础实现(header + divider + footer)
header:Toolbarfooter:RadioGroup + RadioButton原创 2018-07-23 10:32:03 · 236 阅读 · 0 评论 -
UI基础实现
代码实现activity_main.xml<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android&am原创 2018-07-23 10:38:05 · 482 阅读 · 0 评论 -
侧边栏:DrawerLayout 实现
//activity_main.xml<?xml version="1.0" encoding="utf-8"?><android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmln原创 2018-11-04 00:24:27 · 1938 阅读 · 0 评论 -
ViewPager + PagerSlidingTab + Fragment 的用法
添加 PagerSlidingTab 类,及其自定义属性地址:https://blog.csdn.net/qq_34801506/article/details/83715591在 strings.xml 中添加 tabs 的集合<resources> <string-array name="tab_names"> <item>...原创 2018-11-04 14:41:12 · 229 阅读 · 0 评论 -
MyApplication
public class MyApplication extends Application { public static Context context; public static Handler handler; @Override public void onCreate() { super.onCreate(); c...原创 2018-11-04 14:46:44 · 4528 阅读 · 1 评论