mirror of
https://github.com/Estom/notes.git
synced 2026-07-05 21:26:20 +08:00
Android&PHP
This commit is contained in:
16
Android/Dialog.md
Normal file
16
Android/Dialog.md
Normal file
@@ -0,0 +1,16 @@
|
||||
**\>对话框**
|
||||
|
||||
- AlertDialog
|
||||
|
||||
1. 组成:包括图标区、标题区、内容区、按钮区
|
||||
|
||||
2. 使用步骤:定义对象-\>设定标题-\>设定图标-\>设定对话框的内容-\>设置按钮-\>创建对象
|
||||
|
||||
3. 相关方法:setTitle();setCustomTitle();setIcon();setPositiveButton();setNegativeButton;setNeutralButton();setMessage();setItems();setSingelChoiceItems();setAdapter();setView()
|
||||
|
||||
遇到的问题:
|
||||
|
||||
android:theme=”@android:style/Theme.Material.Dialog.Alert在manifest.xml中修改视图的主题失败,导致软件不能启动
|
||||
|
||||
View root =
|
||||
this.getLayoutInflater().inflate(R.layout.popup,null);这句话的具体意图没有搞明白,似乎是把某个视图声明为子视图。
|
||||
Reference in New Issue
Block a user