<android.support.v4.widget.DrawerLayout/>//头布局
//布局定义属性
android:choiceMode="singleChoice"//定义属性
android:layout_gravity="left"//必要属性
//关闭getSupportFragmentManager().beginTransaction().replace(R.id.frameLayout,mFragment).commit();
//关闭drawer drawerLayout.closeDrawer(lv);
//布局文件滑动<HorizontalScrollView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/horizon" android:scrollbars="none"//必要属性 >app:tabGravity="center"
app:tabIndicatorColor="@color/colorAccent"
app:tabMode="scrollable"
app:tabSelectedTextColor="@color/colorPrimaryDark"
app:tabTextColor="@color/colorPrimary"
drawerlayoutdemo2
最新推荐文章于 2020-02-26 11:16:49 发布