我一直在对我的应用程序进行材料设计检修。我很好奇你将如何改变activity_main xml代码来让导航抽屉滑动打开而不覆盖包含那个华丽的新切换按钮的工具栏。任何想法我怎么能做到这一点?获取导航抽屉滑动工具栏/操作栏下方
activity_main:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?attr/actionBarSize"
android:background="?attr/colorPrimary" />
<FrameLayout
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
<RelativeLayout
android:id="@+id/drawerView"
android:layout_width="250dp"
android:layout_height="wrap_content"
android:layout_gravity="start" >
<ListView
android:id="@+id/drawerList"
android:layout_width="250dp"
android:layout_height="match_parent"
android:layout_gravity="left"
android:background="@drawable/nav_border"
android:divider="@null" />
</RelativeLayout>
<!--
<fragment
android:id="@+id/fragment1"
android:name="com.shamu11.madlibsportable.MadlibsSelect"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
-->
</android.support.v4.widget.DrawerLayout>
我真的很喜欢他们与谷歌做了,尽管不一致玩。我认为这对我的抽屉会很好。任何这样做? – sanic 2014-11-08 20:14:30
我会建议不要使用它。但是,如果您想要,请查看此答案。希望能帮助到你!^_^http://goo.gl/28XzLa 我也看到这个github项目,做同样的事情。 https://github.com/ikimuhendis/LDrawer – Atish 2014-11-08 21:03:39
谢谢!欣赏它! – sanic 2014-11-08 21:42:19