2014-09-11 38 views

回答

1

在你的XML佈局文件,讓你的抽屜重力的引力:權重力或重力結束,而不是:啓動

例如

<ListView 
    android:id="@+id/drawer" 
    android:layout_width="240dp" 
    android:layout_height="match_parent" 
    android:layout_gravity="end" //or you can use right also. 
    android:choiceMode="singleChoice" 

    /> 
+0

謝謝..,我會盡力的。 – 2014-09-11 08:35:33

+0

我不是指listview。列表視圖(抽屜)已經形成正確。我想知道的是菜單圖標。即使抽屜來自右側,它仍然停留在右側。 – 2014-09-11 09:54:07

+0

好的,您必須爲操作欄定義一個自定義視圖。看到這篇文章http://stackoverflow.com/questions/17838955/set-actionbar-home-button-to-right-side – ZInj 2014-09-12 04:01:10