Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/43.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
TableRow图像背景android_Android_Xml_Image - Fatal编程技术网

TableRow图像背景android

TableRow图像背景android,android,xml,image,Android,Xml,Image,在我的android布局中,我使用图像作为TableRow的背景,问题是图像太大,因此TableRow会被拉伸 有没有办法限制表格行的大小?使用固定大小的表格行或使用较小的图像。您的问题解决了吗?我尝试更改为android:layout\u height=“110dp”,但不起作用是的,不知道怎么可能。为了确定,我还将该值设置为10dp,但它仍然更大。您如何使用tableRow?如果正在膨胀,则布局参数可能会被系统更改

在我的android布局中,我使用图像作为
TableRow
的背景,问题是图像太大,因此
TableRow
会被拉伸


有没有办法限制
表格行的大小?

使用固定大小的
表格行
或使用较小的图像。

您的问题解决了吗?我尝试更改为
android:layout\u height=“110dp”
,但不起作用是的,不知道怎么可能。为了确定,我还将该值设置为10dp,但它仍然更大。您如何使用tableRow?如果正在膨胀,则布局参数可能会被系统更改