android 侧滑菜单DrawerLayout
2015-03-25 15:58
441 查看
一:最简单的侧滑菜单
二:改变滑动灵敏度
两种方式:
反射修改滑动区域,重载dispatchTouchEvent
http://stackoverflow.com/questions/17699869/how-to-show-the-drawerlayout-when-sliding-from-left-to-right-no-matter-where http://blog.csdn.net/lmj623565791/article/details/41531475 http://blog.csdn.net/crazy1235/article/details/41696291 http://www.kwstu.com/ArticleView/kwstu_201408210609378926
<?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/id_drawerlayout2" android:layout_width="match_parent" android:layout_height="match_parent" > <FrameLayout android:id="@+id/id_framelayout2" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#cd9a5b" > </FrameLayout> <LinearLayout android:id="@+id/id_linearlayout2" android:layout_width="240dp" android:layout_height="match_parent" android:layout_gravity="start" android:background="#45b97c" android:orientation="vertical" > <ListView android:id="@+id/id_lv" android:layout_width="wrap_content" android:layout_height="wrap_content" android:divider="#CD853F" android:dividerHeight="2dp" > </ListView> </LinearLayout> </android.support.v4.widget.DrawerLayout>
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.mydrawer); }
二:改变滑动灵敏度
两种方式:
反射修改滑动区域,重载dispatchTouchEvent
http://stackoverflow.com/questions/17699869/how-to-show-the-drawerlayout-when-sliding-from-left-to-right-no-matter-where http://blog.csdn.net/lmj623565791/article/details/41531475 http://blog.csdn.net/crazy1235/article/details/41696291 http://www.kwstu.com/ArticleView/kwstu_201408210609378926
相关文章推荐
- android DrawerLayout实现仿QQ侧滑菜单
- Android DrawerLayout 高仿QQ5.2双向侧滑菜单
- Android笔记——Drawerlayout创建侧滑出菜单
- [Android基础知识] 之二十: 侧滑菜单DrawerLayout(抽屉布局)实现
- Android笔记——Drawerlayout创建侧滑出菜单
- android官方侧滑菜单DrawerLayout详解
- Android侧滑菜单DrawerLayout的使用
- Android DrawerLayout 高仿QQ5.2双向侧滑菜单
- Android-- 高仿QQ5.2双向侧滑菜单 使用DrawerLayout
- (4.1.34)Android侧滑菜单DrawerLayout的使用
- Android DrawerLayout 高仿QQ5.2双向侧滑菜单
- Android DrawerLayout 高仿QQ5.2双向侧滑菜单
- Android DrawerLayout 高仿QQ5.2双向侧滑菜单
- Android:UI控件DrawerLayout、Fragment、SlidingLayout、侧滑菜单 推荐
- android 使用drawerLayout实现侧滑菜单
- Android DrawerLayout 高仿QQ5.2双向侧滑菜单
- android组件之DrawerLayout(抽屉导航)-- 侧滑菜单效果
- Android DrawerLayout 高仿QQ5.2双向侧滑菜单
- google 原生态 抽屉式侧滑菜单 Android DrawerLayout 布局的使用介绍
- android官方侧滑菜单DrawerLayout详解