2012-07-24 28 views

回答

2

要創建此彈出窗口,您需要這樣做。

1) create an activity as like your displaying popup 

2) add below section to the manifest file 

    <activity android:name=".popupActivity" 
       android:label="@string/app_name" 
       android:theme="@android:style/Theme.Dialog">//====> this makes the activity to display like pop up when call make to this activity 
當你調用意​​圖通過這個活動它看起來像您所需要的

..

0

請使用自定義對話框,並添加一些滾動型和線性佈局進去。然後把你的實際文本放進去。

0

您可以使用此android popup library與您的自定義佈局。在您的活動中使用一行代碼非常簡單。

Pop.on(this).with() 
       .title(R.string.title) //you can skip if you don't need title 
       .layout(R.layout.license).show();