<androidx.wear.widget.drawer.WearableDrawerView
android:id="@+id/wearableDrawerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="bottom"
android:background="#ff0000"
app:drawerContent="@+id/drawer_content"
app:peekView="@+id/peek_view">
<!--拉出来后的导航界面-->
<FrameLayout
android:id="@id/drawer_content"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ScrollView
android:id="@+id/content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:nestedScrollingEnabled="true">
<LinearLayout
android:id="@+id/linear_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="left"
android:id="@+id/txtQty"
android:text="11 "/>
<Button
android:background="#0000ff"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/btnSure"
android:text="@string/str_Sure"
/>
</LinearLayout>
</ScrollView>
</FrameLayout>
<!--微微露出的界面-->
<LinearLayout
android:id="@id/peek_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:orientation="horizontal"
android:paddingTop="8dp"
android:paddingBottom="8dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="底部导航栏" />
</LinearLayout>
</androidx.wear.widget.drawer.WearableDrawerView>
|