1、具體步驟

說下大概實現(xiàn)步驟,一般我們有兩種,一種是viewpager+作為游標(biāo)的點 。另外一種是重寫viewpager。
效果圖:
1.1 布局,直接viewpager+一個viewgroup就好。
<RelativeLayout 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"
tools:context="com.maxence.viewpager.MainActivity" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="220dp" >
<android.support.v4.view.ViewPager
android:id="@+id/vp_pager"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<!-- 作為viewgroup 動態(tài) add 游標(biāo) -->
<LinearLayout
android:id="@+id/ll_container"
android:layout_width="match_parent"
android:layout_height="30dp"
android:gravity="center"
android:orientation="horizontal"
android:layout_alignParentBottom="true"
></LinearLayout>
</RelativeLayout>
</RelativeLayout>
網(wǎng)頁標(biāo)題:Android使用viewpager實現(xiàn)自動無限輪播圖-創(chuàng)新互聯(lián)
文章網(wǎng)址:http://chinadenli.net/article28/eohjp.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供云服務(wù)器、網(wǎng)站維護(hù)、營銷型網(wǎng)站建設(shè)、定制網(wǎng)站、網(wǎng)站改版、微信公眾號
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)