<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <FrameLayout android:id="@+id/operation_volume_brightness" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:background="#00000000" android:orientation="horizontal" android:padding="0dip" android:visibility="invisible" > <ImageView android:id="@+id/operation_bg" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:src="@drawable/video_volumn_bg" /> <FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|center_horizontal" android:paddingBottom="25dip" > <ImageView android:id="@+id/operation_full" android:layout_width="94dip" android:layout_height="wrap_content" android:layout_gravity="left" android:src="@drawable/video_num_bg" /> <ImageView android:id="@+id/operation_percent" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_gravity="left" android:scaleType="matrix" android:src="@drawable/video_num_front" /> </FrameLayout> </FrameLayout> </RelativeLayout> // 变更进度条 ViewGroup.LayoutParams lp = mOperationPercent.getLayoutParams(); lp.width = findViewById(R.id.operation_full).getLayoutParams().width * index / mMaxVolume; mOperationPercent.setLayoutParams(lp);
相关推荐
大量C#的自定义进度条,圆滑的,多边形的。有控件,有实例。
可以自定义进度条的背景颜色 帖子地址:https://blog.csdn.net/qq_38693757/article/details/125424168
iPhone之实现自定义进度条Progress
使用Quick2进行自定义进度条 动画控制进度条移动 封装自定义进度条
用html5 javascript实现的视频自定义进度条。可以直接用到开发视频监控回放的进度条。纯javascript css html 实现。本资源已完成了视频播放的开始,暂停,调节进度等功能。
Android自定义进度条集合(源码):固定进度条,可拖动进度条、Seekbar进度条、装逼炫酷进度条、气泡进度条、梅花进度条、IOS进度条、圆形进度条,吃豆豆进度条....,等等27个自定义进度条。源码直接解压可用。也可...
自定义进度条Swift实现
用QT写的进度条demo 主要是界面比较好看
简单的自定义样式的进度条,和大家分享 有横着的,有竖着的。
HTML5+CSS3源码_漂亮的CSS3动画进度条 可自定义进度条颜色.rar.rar
通过自定义类设置所需的进度条
自定义IOS 进度条,根据自己的需求改变进度条的颜色,大小,很容易融合项目
自定义进度条对话框,可直接导入的项目中使用。
C#带文字进度条 C#文字进度条 C#带字进度条 C#自定义进度条 C#带文字进度条 C#文字进度条 C#带字进度条 C#自定义进度条
Android跑马进度条,普通进度条,自定义进度条
自定义进度条,自定义逐帧动画进度条,让自己的进度条更美观大方。.rar,太多无法一一验证是否可用,程序如果跑不起来需要自调,部分代码功能进行参考学习。
使用ProgressBar实现进度条,设置进度条显示风格。以及自定义进度条样式