use of android.widget.SimpleAdapter in project android_frameworks_base by DirtyUnicorns.
the class VectorDrawableTest method onCreate.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Intent intent = getIntent();
String path = intent.getStringExtra("com.android.test.hwui.Path");
if (path == null) {
path = "";
}
setListAdapter(new SimpleAdapter(this, getData(path), android.R.layout.simple_list_item_1, new String[] { "title" }, new int[] { android.R.id.text1 }));
getListView().setTextFilterEnabled(true);
}
use of android.widget.SimpleAdapter in project ABPlayer by winkstu.
the class VitamioListActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (!LibsChecker.checkVitamioLibs(this))
return;
setListAdapter(new SimpleAdapter(this, getData(), android.R.layout.simple_list_item_1, new String[] { "title" }, new int[] { android.R.id.text1 }));
}
use of android.widget.SimpleAdapter in project spring-data-document-examples by spring-projects.
the class RestListingActivity method onCreate.
//***************************************
// Activity methods
//***************************************
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
List<Map<String, String>> events = fetchRests();
SimpleAdapter adapter = new SimpleAdapter(this, events, R.layout.rests_list_item, new String[] { "name", "city" }, new int[] { R.id.title, R.id.subtitle });
this.setListAdapter(adapter);
}
use of android.widget.SimpleAdapter in project android_frameworks_base by crdroidandroid.
the class BiDiTestActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
mList = (ListView) findViewById(R.id.testlist);
mList.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
mList.setFocusableInTouchMode(true);
final SimpleAdapter adapter = new SimpleAdapter(this, getTests(), R.layout.custom_list_item, new String[] { "title" }, new int[] { android.R.id.text1 });
mList.setAdapter(adapter);
mList.setOnItemClickListener(mOnClickListener);
}
use of android.widget.SimpleAdapter in project ByakuGallery by diegocarloslima.
the class MainActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setListAdapter(new SimpleAdapter(this, createData(), android.R.layout.simple_list_item_2, new String[] { "title", "subtitle" }, new int[] { android.R.id.text1, android.R.id.text2 }));
}
Aggregations