【发布时间】:2016-05-16 20:19:26
【问题描述】:
我创建了一个 FrameLayout 类型的新布局,并添加了图像视图的四个元素我想以编程方式将第一个图像视图带到最后
简而言之,以编程方式重新排列框架布局的元素。假设我们这样做是听按钮 clickListener
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/framelayout">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@mipmap/a20141008_091817"
android:id="@+id/i1"/>
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@mipmap/a20141008_091819"
android:id="@+id/i2"/>
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@mipmap/a20141008_091821"
android:id="@+id/i3"/>
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@mipmap/a20141008_091823"
android:id="@+id/i4"/>
</FrameLayout>
感谢任何帮助。
【问题讨论】:
标签: android