布局在android中未正确显示
!![在此输入图像描述][1]我正在使用custome listview并为每个列表项使用xml文件,但它没有按照我的要求提供输出我的列表项xml文件如下布局在android中未正确显示,android,android-layout,android-listview,Android,Android Layout,Android Listview,!![在此输入图像描述][1]我正在使用custome listview并为每个列表项使用xml文件,但它没有按照我的要求提供输出我的列表项xml文件如下 <?xml version="1.0" encoding="utf-8"?> <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent"
<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:height="150dp"
android:background="@drawable/bar_bg_thin"
android:paddingTop="0dip" android:layout_gravity="top"
>
<TableRow android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="10dp"
android:paddingTop="5dp"
android:paddingBottom="5dp"
>
<ImageView
android:layout_gravity="left|top"
android:scaleType="centerCrop"
android:id="@+id/image"
android:src="@drawable/stub"
android:layout_width="100dp"
android:layout_height="fill_parent"
/>
</LinearLayout>
<TableLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingTop="0dip" android:layout_gravity="top"
>
<TableRow>
<TextView
android:id="@+id/text"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_weight="1" android:layout_gravity="left|center_vertical"
android:textSize="14sp"
android:layout_marginLeft="10dip"
android:layout_marginTop="2dip"
android:textColor="#000000"
android:layout_span="1"
/>
</TableRow>
<TableRow>
<TextView
android:text=""
android:id="@+id/text1"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_weight="1"
android:layout_gravity="left|center_vertical"
android:textSize="11sp"
android:textColor="#000000"
android:layout_marginLeft="10dip"
android:layout_marginTop="4dip"
android:gravity="left"/>
</TableRow>
</TableLayout>
</TableRow>
</TableLayout>
它并没有在全视图上显示图像我正在从服务器加载图像运行时我希望图像显示在全视图中而不是一半,我还想增加此列表项的高度
我希望图像以全尺寸显示,还希望增加listview每个项目的大小
<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="150dp"
android:layout_gravity="top"
android:paddingTop="0dip" >
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/holo_blue_light" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="5dp"
android:paddingLeft="10dp"
android:paddingTop="5dp" >
<ImageView
android:id="@+id/image"
android:layout_width="100dp"
android:layout_height="match_parent"
android:layout_gravity="left|top"
android:scaleType="fitXY"
android:src="@drawable/ic_launcher" />
</LinearLayout>
<TableLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:paddingTop="0dip" >
<TableRow>
<TextView
android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left|center_vertical"
android:layout_marginLeft="10dip"
android:layout_marginTop="2dip"
android:layout_span="1"
android:layout_weight="1"
android:textColor="#000000"
android:textSize="14sp" />
</TableRow>
<TableRow>
<TextView
android:id="@+id/text1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left|center_vertical"
android:layout_marginLeft="10dip"
android:layout_marginTop="4dip"
android:layout_weight="1"
android:gravity="left"
android:text=""
android:textColor="#000000"
android:textSize="11sp" />
</TableRow>
</TableLayout>
</TableRow>
</TableLayout>
请提供您想要的布局截图给我您的电子邮件我将在此处向您发送图像它不允许我上传图像我已向您发送布局截图这两个链接可能有助于您使用它们,但它们的行大小在我希望更改生效时不会增加,但仍不会增加行的大小android:layout\u width=“100dp”和place android:layout\u width=“wrap\u content”