I would use a layout to combine your Components. Define your layout in xml:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<NumberPicker
android:id="@+id/picker"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="1dip"
android:layout_marginRight="1dip"
/>
<ImageView
android:id="@+id/image"
android:layout_toRightOf="@id/picker"
android:src="..."
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="1dip"
android:layout_marginRight="1dip"
/>
<TextView
android:id="@+id/text"
android:text="some text"
android:layout_toRightOf="@id/image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="1dip"
android:layout_marginRight="1dip"
/>
</RelativeLayout>
: , BaseAdapter, getView :
@Override
public View getView(int position, View convertView, ViewGroup parent) {
View view = null;
if(convertView == null)
{
view = mInflater.inflate(R.layout.filebrowserrow, null);
}
else
{
view = convertView;
}
NumberPicker picker = (NumberPicker)view.findViewById(R.id.picker);
ImageView image = (ImageView)view.findViewById(R.id.image);
TextView text = (TextView)view.findViewById(R.id.text);
return view;
}