在可以在哪些方面選擇了我的應用程序的用戶,他將有NavigationView設置如何編程gravity_layout到NavigationView - Android電子
layout_gravity如何設置=「結束」編程?
<android.support.design.widget.NavigationView
android:id="@+id/main_navigation_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:background="#FFF"
>
<ListView
android:id="@+id/listView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/light_grey"
android:dividerHeight="0.5dp">
</ListView>
</android.support.design.widget.NavigationView>
你想從左邊或右邊打開抽屜? –
是的,當應用程序啓動時,它會詢問用戶,他想從哪邊打開導航 – Eugene