Android的增强版android.widget.ProgressBar
,带数字的水平滚动条(支持长方形、平行四边形及椭圆角矩形),继承自android.widget.ProgressBar
,因此用法和ProgressBar
完全一样。
allprojects {
repositories {
maven { url 'https://www.jitpack.io' }
}
}
dependencies {
implementation 'com.github.gzu-liyujiang:EnhancedProgressBar:<version>'
}
<com.github.gzuliyujiang.progressbar.EnhancedProgressBar
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:progress="50"
android:visibility="visible"
app:lyj_cut_corner="parallelogram"
app:lyj_reached_color="#00FBD0"
app:lyj_reached_height="10dp"
app:lyj_text_align="top"
app:lyj_text_bold="true"
app:lyj_text_color="#00FBD0"
app:lyj_text_offset="4dp"
app:lyj_text_size="12sp"
app:lyj_text_visible="true"
app:lyj_unreached_color="#E5E5E5"
app:lyj_unreached_height="8dp" />
Copyright (c) 2016-present 贵州纳雍穿青人李裕江<[email protected]>
The software is licensed under the Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
PURPOSE.
See the Mulan PSL v2 for more detail