host.addTab(host.newTabSpec("Offers")
.setIndicator("Offers", getResources().getDrawable(R.drawable.icon_light))
.setContent(new Intent(this, List_Items.class)));
List_Items.class
public class List_Items extends Activity{
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.list_item);
} //oncreate
list_item.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView android:id="@+id/textItem"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:paddingTop="10dp"
android:background="#00000000"
android:textColor="#ffffffff"
android:textSize="22sp"
android:text="Find Car"
android:enabled="false"
>
</TextView>
<ListView android:id="@+id/android:list"
android:layout_width="fill_parent"
android:layout_height="0dp" android:layout_weight="5"></ListView>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="0dp" android:layout_weight="1.2">
<Button android:layout_height="fill_parent"
android:layout_width="wrap_content"
android:background="@drawable/btn_sync"
android:layout_alignParentRight="true"
android:layout_alignParentLeft="true">
</Button>
</RelativeLayout>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="0dp" android:layout_weight="0.8">
</RelativeLayout>
Итак, теперь я хочу изменить открытый класс List_Items, расширяющий Activity дорасширяет ListActivity, потому что я не вижу действия прокрутки на выходе.Как только я изменил на ListAcitivity, программа потерпела крах.в чем причина?