亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

如何更改抽屜標題?

如何更改抽屜標題?

一只甜甜圈 2021-12-30 17:21:14
我是 Android 新手,正在開發一個應用程序。我正在嘗試開發一個具有抽屜布局的應用程序。一切都很好,但我無法更改屏幕截圖上標記的抽屜菜單的標題。
查看完整描述

2 回答

?
一只名叫tom的貓

TA貢獻1906條經驗 獲得超3個贊

查看完整回答
反對 回復 2021-12-30
?
拉莫斯之舞

TA貢獻1820條經驗 獲得超10個贊

更多定制

如果您想為您的抽屜進行更多定制。您可以為 Drawer 創建一個布局并將其包含在android.support.design.widget.NavigationView

Like this 中


</android.support.v4.widget.DrawerLayout>    


     ...........

                 <!- Drawer >


     <android.support.design.widget.NavigationView

        android:id="@+id/nav_view"

        android:layout_width="150dp"

        android:layout_height="match_parent"

        android:fitsSystemWindows="true"

        android:layout_gravity="left"

        >

           <!--- Your custom layout >

          <include layout="@layout/custom_drawer_layout"

              android:id="@+id/filterDrawer"

              android:layout_height="match_parent"

              android:layout_width="match_parent"

              android:layout_gravity="end"

           />


    </android.support.design.widget.NavigationView>



 </android.support.v4.widget.DrawerLayout>

然后你可以創建一個布局 custom_drawer_layout


custom_drawer_layout.xml


<RelativeLayout>

     <spinner/>

     <button/>

     <whatever/>

</RelativeLayout>

希望你能明白。

你可以在這里看到一個相關的項目


查看完整回答
反對 回復 2021-12-30
  • 2 回答
  • 0 關注
  • 250 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號