【发布时间】:2013-04-13 07:54:09
【问题描述】:
我需要使用具有不同内容的同一页面
例如:i have clicked Array[name] button it will show the couple of names in listview next when i will click the address array the same activity instead of name can we show the address!!
我已经搜索过,我发现了一些类似的东西
Intent intent = new Intent(context, CalledActivity.class);
intent.putExtra(key, value);
startActivity(intent);
这里他们使用 sqlite 数据库来获取内容。有人可以帮助我吗@Thanks
【问题讨论】:
-
您只想更改内容还是显示的视图(用户界面)?
-
@MehulJoisar yes..更改 ui 中的内容
-
那么您可以按照 j2emanue 的建议通过分配新适配器轻松更改内容。如果您还有任何疑问,请发布代码以便我们为您提供指导。
标签: android arraylist android-activity