Back to project page reactive-android-demo.
The source code is released under:
Apache License
If you think the Android project reactive-android-demo listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.example.listviewdemo; /*from ww w.ja va 2 s . com*/ import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.widget.ListView; public class MainActivity extends Activity { public static String TAG = MLog.tag(MainActivity.class); private ListView mListView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); SearchResultAdapter listAdapter = new SearchResultAdapter(this); mListView = (ListView) findViewById(R.id.main_listview); mListView.setAdapter(listAdapter); listAdapter.doSearch("Australia"); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; } }