事情是......我想使用 PreferenceActivity 在我的自定义列表视图中添加一个新行。所以我的偏好活动将包括一些 EditTextPreferences、我的自定义 TimePickerPreference 和一系列 ListPreferences ......就像这样:http ://www.google.com/help/hc/images/android/android_ug/168567.5.png 。问题是他们如何在底部添加按钮?而且..是否可以使用 OnClickListener 来获取输入的值以及如何?谢谢!
问问题
3059 次
1 回答
4
APreferenceActivity
继承自ListActivity
。默认情况下,ListActivity
创建自己的ListView
,但您可以通过 提供自己的布局setContentView()
,只要您ListView
在布局中具有正确的android:id
. 这是警报活动的布局。
于 2011-01-18T15:31:15.477 回答