StackView的基本功能与用法
下面是我们要实现的效果 通过点击上下按钮将叠在一起的图片切换到最前,
首先将布局代码定义出来,一个简单的StackView和两个Button按钮
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<StackView
android:id="@+id/mStackView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:loopViews="true">