[android-developers] howto dynamically change the "html content" of a listview?
Hi everybody,
have you idea how to "dynamically" change the content of listview
intents using position and only one webview container?
Example:
lv.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View view,
int position, long id) {
if ("1. title".equals(array[position].toString())){
// I have to create a Container
"webview" class where to load html1.html or html2.html (ecc)
Intent i = new Intent(this, Container.class);
startActivity(i);
}
}
I found a simple solution using Html1.java, Html2.java but I would to
use only one class.
Any idea?
Thanks in advance and have a nice day
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home