我正在用希伯來語(這是rtl)編寫一個應用程序。 當我設置我的標題爲它出現在左邊的對話框片段。 我試圖使它顯示在右側做:設置對話框片段標題從右邊顯示
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState)
{
//set's up the title for this dialog fragment
getDialog().getWindow().setGravity(Gravity.RIGHT);
getDialog().setTitle(R.string.find_Address_text);
但它不會影響冠軍的位置。 我怎麼能做到這一點? TNX
我用這個方法:http://stackoverflow.com/questions/14439538/how-can-i-change-the-color-of-alertdialog-title-and-the-color-of-the-line-/23278774#23278774 –