本文实例为大家分享了Android SeekBar实现滑动条效果的具体代码,供大家参考,具体内容如下
SeekBar是ProgressBar的一个子类,下面我们用一个可以改变并显示当前进度的拖动条例子来演示一下它的使用:
1、main.xml
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <SeekBar android:id="@+id/SeekBar01" android:layout_width="245px" android:layout_height="25px" android:paddingLeft="16px" android:paddingRight="15px" android:paddingTop="5px" android:paddingBottom="5px" android:progress="0" android:max="0" android:secondaryProgress="0" /> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" android:id="@+id/TextView01" /> </LinearLayout>
分享标题:AndroidSeekBar实现滑动条效果-创新互联
URL链接:https://www.cdcxhl.com/article10/cegcgo.html
成都网站建设公司_创新互联,为您提供外贸网站建设、网站改版、自适应网站、微信小程序、全网营销推广、网站设计
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联