没有合适的资源?快使用搜索试试~ 我知道了~
Android viewpager无限轮播获取网络图片功能
0 下载量 35 浏览量
2020-08-29
09:11:44
上传
评论
收藏 41KB PDF 举报
温馨提示
试读
3页
主要为大家详细介绍了Android viewpager无限轮播获取网络图片功能,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
资源推荐
资源详情
资源评论
Android viewpager无限轮播获取网络图片功能无限轮播获取网络图片功能
主要为大家详细介绍了Android viewpager无限轮播获取网络图片功能,具有一定的参考价值,感兴趣的小伙伴
们可以参考一下
本文实例为大家分享了viewpager无限轮播获取网络图片的具体代码,供大家参考,具体内容如下
话不多说直接上代码,你们都懂的
小圆点属性小圆点属性
dot_focused.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<solid android:color="#f00"/>
<corners android:radius="8dp"/>
</shape>
dot_normal.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<solid android:color="#88000000"/>
<corners android:radius="8dp"/>
</shape>
dot_layout.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<View
android:id="@+id/scrollView"
android:layout_width="8dp"
android:layout_height="8dp"
android:layout_margin="3dp"
android:background="@drawable/dot_normal"
/>
</LinearLayout>
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<android.support.v4.view.ViewPager
android:id="@+id/viewPager"
android:layout_width="match_parent"
android:layout_height="match_parent">
</android.support.v4.view.ViewPager>
<LinearLayout
android:id="@+id/ll"
android:layout_marginTop="450dp"
android:orientation="horizontal"
android:gravity="center"
android:layout_width="match_parent"
android:layout_height="20dp"/>
</RelativeLayout>
以上是布局
下面src代码
import android.content.Intent;
import android.os.AsyncTask;
资源评论
weixin_38610870
- 粉丝: 1
- 资源: 913
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功