I am a beginner in android development. I have set the progress bar to 0. The plan is whenever the user gets a question right, the progress bar increments to 2. I take the user data from back4app. I have set the max value for the progress bar to be 100. I just need a frame to work with or some kind of guidelines on how to implement this progress bar. Any example code would be nice. I have this in my fragment outside of my onViewCreated method:/
public void setProgress() {
userProgress.setProgress(0);
}
Use a counter variable, increment it when the user gets the question right, and then pass that counter variable to setProgress(int counter) function, and set it within userProgress.setProgress(counter); .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.