If you want your view to display only image and text, why not create a specific layout in your XML file and use it setContentViewto display the view?
If this is what you were looking for, I think this is the easiest approach. XML example coming soon.
, , , , , TextView ImageView.
dblist.xml res/layout.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#FFFFFF">
<ListView android:id="@+id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:textColor="#000000"/>
</LinearLayout>
Spinner
, :
setContentView(R.layout.dblist);
, ,
setContentView(R.layout.main);
EDIT:
findViewById , . dblist.xml, , ListView list. :
ListView myList = (ListView) findViewById(R.id.list);
, , - XML , myList .
, .