I have already made a horizontal progress bar and it works perfectly. I would like to display a textview or something similar right in the middle of it showing a countdown as the bar is loading. Keep in mind its not a progress dialog, progress bar resides inside an activity and shows a countdown timer. Can anyone help me out, whats the best way to do this and how can I accomplish this?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
that is what worked for me:
Source tutorial
In Activity we can Show and Dismiss ProgressBar using the following methods
Check other
You can use a FrameLayout to display the TextView over the ProgressBar:
This is what I used to display progress text above a spinner centered on a web view:
If your
ProgressBar
andTextView
are inside aRelativeLayout
you can give theProgressBar
an id, and then align theTextView
with theProgressBar
using that. It should then show on top of theProgressBar
. Make sure the background is transparent so that you can still see theProgressBar
For example: