登录
首页 » Android » 显示进度的按钮

显示进度的按钮

于 2022-03-20 发布 文件大小:14.39 MB
0 195
下载积分: 2 下载次数: 1

代码说明:

显示进度的按钮,可用于数据的提交,系统登录等,动画效果很棒,提高用户体验。1.按钮的几种状态初始状态 [0]加载中 [1-99]加载成功 [100]加载失败 [-1]通过调用此方法改变 CircularProgressButton.setProgress(int value)2.修改进度条样式修改加载进度的颜色 app:colorIndicator=”@color/blue”修改加载进度的背景色 app:colorIndicatorBackground=”@color/grey”修改中间圆形的颜色 app:colorProgress=”@color/white”3.其他属性失败时的文字 app:textError=”@string/Error”失败时的背景色 app:colorError=”@color/red”成功时的文字 app:textComplete=”@string/Complete”成功时的背景色 app:colorComplete=”@color/green”设置按钮圆角 app:cornerRadius=”48dp”设置成功时的图标 app:iconComplete=”@drawable/ic_action_accept”设置失败时的图标 app:iconError=”@drawable/ic_action_cancel”注意 :一行放置一个以上的按钮时需要注意一下,因为按钮点击后变为进度框时视图的宽度要发生改变,所以位置可能发生变化,需要注意下你的布局,可以放到按比例分开的线性布局,或放相对布局中定义宽度让它始终居中

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • RatingBarSample
    Android RatingBar投票条实例,玩Android手机的朋友可能就见到过,用手机访问门户网站经常会见到投票功能,投票之后用彩条来显示投票的结果,这个实例就是实现投票彩条,有兴趣的不妨下载源码一试。(The Android RatingBar Voting instance friends play Android phone may have seen, often using mobile phones to access the portal will see the voting function, after the voting, with the color bar to display the results of the vote, this instance is to achieve voting color bar, interested may wish to download the source code a try.)
    2013-04-09 19:08:54下载
    积分:1
  • Sensor Tag 遥控器
    这是一个安卓应用程序,利用TI的SensorTag无线多功能传感器来实现的遥控谷歌音乐播放器的播放音乐的一个演示程序。
    2022-02-18 16:46:33下载
    积分:1
  • newsApp
    Android高仿今日头条、网易新闻客户端源码.(High imitation headlines today, Netease news client source)
    2014-11-09 22:18:51下载
    积分:1
  • JAVA多线程下载例子
    提供了FTP多线程下载的例子,运行环境:Android实测好用!
    2022-06-18 09:57:43下载
    积分:1
  • 公交车管理,站点信息,用户登陆
    查询公交线路,站点信息,实现用户登陆,注册,管理员登陆,修改用户信息等
    2022-07-08 15:02:01下载
    积分:1
  • 4LU电机控制
    【实例简介】控制电机
    2021-09-12 00:31:01下载
    积分:1
  • Java-Android-Control
    android常用的系统控件源码集,包括一些常用的界面控件的源码,比如菜单,单选按钮、按钮文字和背景的设置、带动画的按钮、按钮事件监听的实现、checkbox进行监听、EditText编辑框、单项选择、多项选择、Menu菜单、WebView使用等。(Commonly used Android system controls the source code set, including some commonly used interface control source, such as menus, radio buttons, button text and the background settings, with animation button, button event listener implementation, checkbox monitor, EditText edit box, multiple choice, multiple choice, Menu menu, WebView use.)
    2012-02-10 13:38:19下载
    积分:1
  • darvds-RibbonMenu
    Android 导航菜单 RibbonMenu Android源码包,是不是看到了这个熟悉的界面?在Android机中,像RibbonMenu这种类似的菜单多之又多,对于想搞Android应用开发的来说,这算是基础的菜单制作技巧了,因此对于安卓开发初学者还是相当有价值参考的。(Android navigation menu RibbonMenu Android source packages, is not seeing this familiar interface? In Android machine, such as a similar menu RibbonMenu more than the addition, stir it for Android application development, which can be considered the foundation of menu making skills, so for Android development is still quite valuable reference for beginners.)
    2014-02-12 09:47:14下载
    积分:1
  • Call bloker
    2022-02-28 16:26:49下载
    积分:1
  • MediaPlayer_Service
    MP3音乐播放器代码,主要实现从sd卡中读取MP3文件,界面有播放暂停,上一首,下一首四个按钮(MP3 music player code, the main implementation MP3 files, read the sd card interface are suspended, a song, a four button)
    2020-09-29 09:37:43下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载