我正在为 android 开发一个游戏,它就像一个比赛游戏,它看起来像这样:
游戏完美运行,但问题是卡片的大小“图片中的小丑”没有改变我已经尝试了从改变图像大小到改变图像视图大小的所有方法,xml文件是Tablelayout 和每行表在第一行中包含一些内容,这是将显示卡片的图像视图,这是 xml 代码
<TableRow
android:id="@+id/Row01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal"
>
<LinearLayout
android:id="@+id/LinearLayout01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center">
<ImageView
android:id="@+id/ImageView1"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_gravity="bottom|center"
></ImageView>
</LinearLayout>
</TableRow>