Android-- 抽屉式公告
16lz
2021-01-25
效果:
---->点击图标-->
实现:只要用SlidingDrawer控件就可以做出点击图标,显示或隐藏内容,不需要再MainActivity上写任何代码,可以参考官网文档https://developer.android.google.cn/reference/android/widget/SlidingDrawer做更多的事
main.xml:
android:id="@+id/drawer" android:layout_width="match_parent" android:layout_height="match_parent" android:handle="@+id/handle" android:content="@+id/content"> android:id="@id/handle" android:layout_width="88dip" android:layout_height="44dip" /> android:id="@id/content" android:layout_width="match_parent" android:layout_height="match_parent" />
更多相关文章
- android 5.0以上通知栏、状态栏图标变成白色
- Android(安卓)Canvas设置绘画时重叠部分的处理模式【含效果图】
- Android开发------------杂记
- Android(安卓)Vibrator震动效果
- linux下如何为刚安装好的Eclipse在桌面建一个启动图标???(QtCreator
- android:text文字添加阴影效果
- Android屏幕大小适配问题解决
- Android(安卓)常用开源库
- android 自定义组合控件并实现点击事件