مشکل نمایش لیست ویو در تب هاست در برنامه نویسی اندروید(فقط فیلد اول را نمایش می دهد)

باسلام و تشکر از پاسخگویی عالیتان

من یک تب هاست دارم که داخل تب دومش یک لیست ویو قار داره که اطلاعات را از دیتابیس می گیره و در لیست ویو نمایش می ده.حالا مشکل من این است که حتی اگر در لیست ویو 100 تا فیلد هم وجود داشته باشد فقط یکی اش را نشان می دهد و باید با بردن دست خود بر روی اولین فیلد و کشاندن آن به طرف بالا بقیه فیلدها رو مشاهده کرد که خیلی سخت است ولی زمانی که لیست ویو را از تب هاست بیرون می آورم لیست ویو درست کار می کند و تمام صفحه می شود.

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">

    <ScrollView
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">
    <RelativeLayout
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">

    <TabHost
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:id="@+id/tabHost"
        android:layout_alignParentTop="true"
        android:layout_centerHorizontal="true">

    <RelativeLayout
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="vertical">

    <TabWidget
        android:id="@android:id/tabs"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:focusableInTouchMode="false"></TabWidget>

    <FrameLayout
        android:id="@android:id/tabcontent"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_below="@android:id/tabs">

    //   tab 1

    <RelativeLayout
        android:id="@+id/tab1"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">

        <Button
            android:id="@+id/retrieve_location_button"
            android:text="تازه سازی"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:textStyle="normal|bold"
            android:textSize="17dp"
            android:background="@drawable/shadow"
            android:layout_below="@+id/txt_showlocation"
            android:layout_centerHorizontal="true"
            android:layout_marginLeft="7dp"
            android:layout_marginTop="7dp"
            android:layout_marginRight="7dp"
            android:layout_marginBottom="7dp"
            android:visibility="invisible" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="طول : "
            android:id="@+id/txt_Longitude"
            android:layout_alignParentTop="true"
            android:layout_alignParentRight="true"
            android:layout_alignParentEnd="true"
            android:textSize="15dp"
            android:textStyle="normal|bold"
            android:layout_margin="7dp"/>

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="عرض : "
            android:id="@+id/txt_Latitude"
            android:layout_below="@+id/txt_Longitude"
            android:layout_alignParentRight="true"
            android:layout_alignParentEnd="true"
            android:layout_margin="7dp"
            android:layout_marginLeft="7dp"
            android:layout_marginRight="7dp"
            android:layout_marginBottom="7dp"
            android:textStyle="normal|bold"
            android:textSize="15dp" />

        <EditText
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:id="@+id/edt_name_sendlocation"
            android:hint="توضیحات : سلام!من اینجام"
            android:layout_below="@+id/textView14"
            android:layout_alignParentLeft="true"
            android:layout_alignParentStart="true"
            android:layout_marginBottom="7dp"
            android:layout_marginRight="7dp"
            android:layout_marginLeft="7dp" />

        <EditText
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:inputType="phone"
            android:id="@+id/edt_sendlocation"
            android:layout_below="@+id/edt_name_sendlocation"
            android:layout_alignParentLeft="true"
            android:layout_alignParentStart="true"
            android:layout_marginLeft="7dp"
            android:layout_marginRight="7dp"
            android:hint="ارسال به شماره : 09186****16"
            android:maxLength="11"
            android:layout_marginBottom="7dp" />

        <Button
            android:id="@+id/btn_sendlocation"
            android:text="ارسال موقعیت"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:textStyle="normal|bold"
            android:textSize="17dp"
            android:background="@drawable/shadow"
            android:layout_alignTop="@+id/btn_savelocation"
            android:layout_alignLeft="@+id/edt_sendlocation"
            android:layout_alignStart="@+id/edt_sendlocation" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/txt_showlocation"
            android:textStyle="normal|bold"
            android:textSize="15dp"
            android:autoLink="web"
            android:layout_below="@+id/txt_Latitude"
            android:layout_alignLeft="@+id/edt_sendlocation"
            android:layout_alignStart="@+id/edt_sendlocation"
            android:layout_marginLeft="7dp"
            android:layout_marginRight="7dp" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="به ازای جابجایی به شعاع هر دو متر از محل قبلیتان موقعیت جغرافیایی شما بروز می شود."
            android:id="@+id/textView14"
            android:layout_below="@+id/txt_showlocation"
            android:layout_centerHorizontal="true"
            android:textSize="15sp"
            android:textStyle="normal"
            android:layout_marginLeft="7dp"
            android:layout_marginRight="7dp"
            android:layout_marginBottom="7dp" />

        <Button
            android:id="@+id/btn_savelocation"
            android:text="ذخیره مکان"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:textStyle="normal|bold"
            android:textSize="17dp"
            android:background="@drawable/shadow"
            android:layout_below="@+id/edt_sendlocation"
            android:layout_alignRight="@+id/edt_sendlocation"
            android:layout_alignEnd="@+id/edt_sendlocation" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/textView16"
            android:layout_alignBottom="@+id/txt_Latitude"
            android:layout_toRightOf="@+id/retrieve_location_button"
            android:layout_toEndOf="@+id/retrieve_location_button"
            android:visibility="invisible" />

    </RelativeLayout>

    // tab 2

        <RelativeLayout
            android:id="@+id/tab2"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:longClickable="false">

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="موقعیت مکانی های ذخیره شده : "
                android:id="@+id/textView15"
                android:layout_alignParentTop="true"
                android:layout_centerHorizontal="true"
                android:layout_margin="7dp"
                android:textSize="17dp"
                android:textStyle="normal|bold" />
// لیست ویویی که مشکل دارد
            <ListView
                android:id="@+id/listView1"
                android:layout_width="match_parent"
                android:layout_height="fill_parent"
                android:layout_below="@+id/textView15"
                android:layout_alignParentLeft="true"
                android:layout_alignParentStart="true"
                android:layout_marginLeft="7dp"
                android:layout_marginRight="7dp"
                android:layout_marginBottom="7dp">
            </ListView>


        </RelativeLayout>

    </FrameLayout>
    </RelativeLayout>
    </TabHost>
    </RelativeLayout>
    </ScrollView>

    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/btn_go_refresh_showlocation"
        android:background="@drawable/refresh"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true" />

</RelativeLayout>

ممنون می شوم راهنمایی ام کنید

پاسخ ها

sokanacademy forum
کاربر سکان آکادمی 8 سال پیش

ممنون می شوم راهنمایی ام کنید

sokanacademy forum
کاربر سکان آکادمی 8 سال پیش

سلام ببخشید به خاطر تاخیر

تمام مراحل این دوتا اموزش را رفته اید

http://joshclemm.com/blog/?p=59

http://www.edumobile.org/android/tab-control/

online-support-icon