2012-08-03 49 views

回答

-1

U可以創建一個XML作爲烏拉圭回合的心願..然後在對話框膨脹佈局..

LayoutInflater factory2 = LayoutInflater.from(this); 
    final View coloredChangedView= factory2.inflate(R.layout.my_layout, null); 
//do other things... 
.setView(coloredChangedView); 

這樣ü可以定製UR對話框..

+0

我會試試這個謝謝。 – dilaraates 2012-08-03 10:16:18

0

你可以嘗試擴展默認主題並在您的活動中使用它。您需要擴展Theme.Dialog樣式。查找示例here

+0

我現在這個網站,但再次感謝... – dilaraates 2012-08-03 10:14:14

0

如果使用AlertDialog,則可以使用setCustomTitle(View)函數(也可在Builder中使用)。

+0

我的應用程序需要對話框不alertDialog框但感謝:D – dilaraates 2012-08-03 10:15:55

相關問題