Comments (6)
me too, are you solve?
from materialish-progress.
No, I just used the xml code
from materialish-progress.
i solve it, you must setLayoutParams with width and height
from materialish-progress.
I tried:
ProgressWheel loadingWheel = new ProgressWheel(this);
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(60, 60);
loadingWheel.setLayoutParams(layoutParams);
loadingWheel.setBarColor(Color.GREEN);
loadingWheel.spin();
but it still doesn't work for me.
from materialish-progress.
rajohns08 you have to add progresswheel to some view after that it can be visible.
RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.MATCH_PARENT);
params.addRule(RelativeLayout.CENTER_IN_PARENT, RelativeLayout.TRUE);
progressWheel = new ProgressWheel(this);
progressWheel.setBarColor(Color.GREEN);
progressWheel.setLayoutParams(params);
progressWheel.spin();
rootView.addView(progressWheel);
from materialish-progress.
as @gunhansancar said, you ahve to add the wheel somewhere.
from materialish-progress.
Related Issues (20)
- [bug] reset Indeterminate wheel HOT 1
- NOSUCHMETHODERROR : setBackground
- Set elevation HOT 1
- Sm-g360t1 HOT 1
- Sm-g360t1 des bloquear de binario HOT 1
- How to reduce progress outer ring width HOT 2
- Progress rotation speed very slow after a while. HOT 1
- progress does not show in yuLong Coolpad8297-t01(Android4.4.4) HOT 1
- Crash: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.pnikosis.materialishprogress.ProgressWheel$WheelSavedState HOT 3
- cant't understand "float distance =(float) Math.cos((timeStartGrowing / barSpinCycleTime + 1) * Math.PI) / 2 + 0.5f;"
- Add attribute/setter for Paint.Cap.ROUND for progress bar
- spin() does not work
- Error:No resource identifier found for attribute 'progressIndeterminate' in package ' HOT 2
- set value inside progressbar
- Spinning effect is not visible HOT 2
- a little helping with READ.me
- display the percentage in the middle of the circle
- 1531989
- Kotlin
- I am developing an OpenHarmony application with JavaScript language which used your library, will your library support OpenHarmony platform by JavaScript language? if so, I want to contribute to the OpenHarmony build of this library. Expecte foe your reply!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from materialish-progress.