eralpyucel / circleprogressview Goto Github PK
View Code? Open in Web Editor NEWAn Android component to show circle progress in percentage.
An Android component to show circle progress in percentage.
In Android Studio 2.3.3 MaOSX
Error:Execution failed for task ':app:processDebugManifest'.
Manifest merger failed with multiple errors, see logs
I couldn't understand why. But it emerges error while syncing gradle. Though ./gradlew seems to work ok.
repositories {
maven { url "https://jitpack.io" }
}
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "26.0.0"
defaultConfig {
applicationId "com.uralkemal.colormatic"
minSdkVersion 17
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:design:25.3.1'
compile 'com.github.eralpyucel:CircleProgressView:v1.1'
testCompile 'junit:junit:4.12'
}
I want to use gradient color in cpv_circle_color. Is it possible?
Apply prefix text as suffix text.
More than a problem is a query, is there any way to make the % symbol be a suffix of the text of the view or would it be necessary to recompile the library?
How to reset progress/animation?
Hi,
i use your component but i don't see the text into circle progress view.
This is the xml
<com.eralp.circleprogressview.CircleProgressView
android:id="@+id/circle_progress_view"
android:layout_width="0dp"
android:layout_weight=".2"
android:layout_height="50sp"
android:layout_gravity="center"
android:layout_margin="3sp"
app:cpv_circle_color="@color/White"
app:cpv_circle_width="2dp"
app:cpv_background_circle_width="1dp"
app:cpv_background_circle_color="#5b253048"
app:cpv_text_suffix="xp"
app:cpv_text_size="15"
app:cpv_text_color="@color/White"/>
This is the code
holder.mCircleProgressView.setTextEnabled(true);
holder.mCircleProgressView.setInterpolator(new AccelerateDecelerateInterpolator());
holder.mCircleProgressView.setStartAngle(45);
holder.mCircleProgressView.setProgressWithAnimation(Float.parseFloat(((ProfiloBEAN) lst.get(position)).getPercentuale()), 3000);
holder.mCircleProgressView.addAnimationListener(new ProgressAnimationListener() {
@Override
public void onValueChanged(float value) {
}
@Override
public void onAnimationEnd() {
}
});
Can you help me?
Thanks in advance
@eralpyucel Would it be possible to raise a value of progress greater than 100? Without changing the appearance and component of circle progress!
Thanks!
@eralpyucel Is there a way to set the prefix & suffix text style as bold?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.