我想改變項目在我的應用程序的菜單中的方向。目前我有兩個按鈕,一個疊在另一個上。我怎樣才能把它並排放置?如何更改Android菜單按鈕的方向和佈局?
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/menu_settings"
android:orderInCategory="100"
android:title="@string/menu_settings"
android:actionLayout="@layout/main"/>
<item
android:id="@+id/menu_help"
android:title="@string/menu_help"
android:actionLayout="@layout/main"/>
</menu>
對不起格式不好,我是新來的堆棧溢出。
發佈xml文件將有所幫助。 –
我已經添加了XML文件。 – Rohaan
你的'main'佈局文件是什麼樣的?它被用作動作視圖。你有沒有試着解決這個問題? –