<org.kymjs.kjframe.widget.KJViewPager
android:id="@+id/scrollLayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:visibility="visible" >
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:background="@drawable/welcome_1" />
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/welcome_2" />
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/welcome_3" />
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/welcome_4" />
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/welcome_1" >
<Button
android:id="@+id/startBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="90.0dip"
android:background="@drawable/selector_btn_welcome"
android:text="开启音乐之旅"
android:textColor="#ffffff"
android:textSize="18sp" />
</RelativeLayout>
</org.kymjs.kjframe.widget.KJViewPager>
scrollLayout = (KJViewPager) findViewById(R.id.scrollLayout);
count = scrollLayout.getChildCount();
imgs = new ImageView[count];
for (int i = 0; i < count; i++) {
imgs[i] = (ImageView) pointLayout.getChildAt(i);
imgs[i].setEnabled(true);
imgs[i].setTag(i);
}
currentItem = 0;
imgs[currentItem].setEnabled(false);
scrollLayout.setOnViewChangeListener(this);
public class FirstInstallActivity extends KJActivity implements
OnViewChangeListener {}