![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android自定义控件
cr_lotus1412
不积跬步无以至千里
展开
-
下拉式菜单popupwindow类
步骤一:实例化一个popupwindow View inflate = LayoutInflater.from(getActivity()).inflate(R.layout.popup_menu, null); PopupWindow popupWindow = new PopupWindow(inflate, 100, 100); 三个参数:分别表示要显示的View,宽转载 2016-11-15 19:14:10 · 314 阅读 · 0 评论 -
底部导航之TabLayout+ViewPager
这里简单记录一下通过TabLayout+ViewPager来实现Android底部导航栏。 布局 RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-au转载 2017-03-08 15:37:07 · 329 阅读 · 0 评论 -
底部导航之TextView+LinearLayout+Fragment
这里简单记录下通过TextView+LinearLayout+Fragment来实现Android底部导航栏。 布局 LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"转载 2017-03-08 15:34:54 · 558 阅读 · 0 评论 -
底部导航之RadioGroup
这里简单记录一下Android底部导航栏通过RadioGroup+Fragment的实现。 布局: RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"原创 2017-03-08 15:31:09 · 227 阅读 · 0 评论 -
底部导航之BottomNavigationBar
BottomNavigationBar的使用参考:http://blog.csdn.net/hebin320320/article/details/51461611 初始化及相关设置: mBottomNavigationBar = (BottomNavigationBar) view.findViewById(R.id.bottom_navigation_bar转载 2017-03-08 15:25:19 · 486 阅读 · 0 评论