【发布时间】:2016-04-10 03:58:10
【问题描述】:
我在 xml 中有 2 个布局。
XML:
<TableLayout
android:id="@+id/table"
android:layout_width="fill_parent"
android:layout_height="470dp"
android:layout_alignParentBottom="true"
android:layout_marginBottom="35dp"
android:layout_marginLeft="35dp"
android:layout_marginRight="35dp">
</TableLayout>
<FrameLayout
android:id="@+id/imageLayout"
android:layout_width="fill_parent"
android:layout_height="470dp"
android:layout_alignParentBottom="true"
android:layout_marginBottom="35dp"
android:layout_marginLeft="35dp"
android:layout_marginRight="45dp"
android:layout_marginTop="45dp">
</FrameLayout>
表格布局用于创建 10X4 单元格--http://i.stack.imgur.com/hYPLT.png FrameLayout 用于在 10X4 单元格上显示图像。现在正在做拖放图像,如何在 TableLaout 的哪个单元格中找到图像?
【问题讨论】:
标签: android android-layout android-xml android-design-library