直播原始碼網站,選單欄的橫向滑動
阿新 • • 發佈:2021-12-20
直播原始碼網站,選單欄的橫向滑動實現的相關程式碼
<?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/drawer_layout" android:layout_width="match_parent" android:layout_height="match_parent"> <!-- 內容區 --> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="內容區" /> </LinearLayout> <!-- 左邊選單 android:layout_gravity="start" --> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="start" android:background="@android:color/holo_blue_bright" android:gravity="center"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="左邊選單" /> </LinearLayout> <!-- 右邊選單 android:layout_gravity="end" --> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="end" android:background="@android:color/holo_blue_bright" android:gravity="center"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="右邊選單" /> </LinearLayout> </android.support.v4.widget.DrawerLayout>
以上就是直播原始碼網站,選單欄的橫向滑動實現的相關程式碼, 更多內容歡迎關注之後的文章