0
我开发Android游戏,它就像一个匹配游戏,它看起来就像是:在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>
你不应该使用静态值,使用wrap_content并使用min_width – L7ColWinters 2012-04-11 18:36:11