android-progressbar

How to implement android intermediate progressbar accessibility

ぐ巨炮叔叔 提交于 2021-02-10 14:47:51
问题 I would like to announce the loading text on an android intermediate progressbar. I want to output something like this for disabled people who are using talkback service on the Android device when an intermediate progressbar is loading. File is loading. File is fetching. File is converting. File is loaded. I checked around google and found that I could use: 1) announceForAccessibility on progressbar view. (Not working in my case, only works when I load it with a Handler) My code override fun

How to implement android intermediate progressbar accessibility

喜欢而已 提交于 2021-02-10 14:47:12
问题 I would like to announce the loading text on an android intermediate progressbar. I want to output something like this for disabled people who are using talkback service on the Android device when an intermediate progressbar is loading. File is loading. File is fetching. File is converting. File is loaded. I checked around google and found that I could use: 1) announceForAccessibility on progressbar view. (Not working in my case, only works when I load it with a Handler) My code override fun

Mirror (flip) a View / ProgressBar

邮差的信 提交于 2021-02-08 13:16:19
问题 I have a custom built circular progress bar used for a seconds counter on a clock, which I'd like to flip, so that the clock is counting counter-clockwise. Searching here for a solution, I found this: Right to Left ProgressBar? Which obviously works for a horizontal progress bar, but I can't simply rotate it 180 degrees, since that will just move the clock 180 degrees and it will still be ticking clockwise. Is there any other way to mirror a ProgressBar, or any View? Edit: Just found "android

Creating Pie chart / progressbar like arc in andorid

馋奶兔 提交于 2021-02-08 07:32:08
问题 I am working on a project where I want to show a pie chart like the image added. Already have searched google and other posts in stackoverflow, but could not find a solution. any solution is appreciated. Note: suggestions of third-party library are also welcome. Also please do not suggest MPAndroidChart as I think my query can be implemented using simpler method. 回答1: You can use the library https://github.com/PhilJay/MPAndroidChart to achieve this. Add below in xml: <com.github.mikephil

TextView as a progressbar with textcolor minipulation?

♀尐吖头ヾ 提交于 2021-02-07 18:16:59
问题 I'm working on improving my app's UI. And in the design I'm using I have a TextView that will act as a progress bar at certain time. The ruslt should look like this : The thing is that parts of text will change their color while the progress is changing I looked into spannablestring in android it would work if I can find the letters that are covered by the progress ( but I don't think this would be easy/accurate) What I'm planning todo now is to use the following: FrameLayout with :

TextView as a progressbar with textcolor minipulation?

时光毁灭记忆、已成空白 提交于 2021-02-07 18:14:54
问题 I'm working on improving my app's UI. And in the design I'm using I have a TextView that will act as a progress bar at certain time. The ruslt should look like this : The thing is that parts of text will change their color while the progress is changing I looked into spannablestring in android it would work if I can find the letters that are covered by the progress ( but I don't think this would be easy/accurate) What I'm planning todo now is to use the following: FrameLayout with :

How to draw a vertical line in “android Horizontal Progress bar”

蹲街弑〆低调 提交于 2021-02-04 13:59:23
问题 I need to make a custom horizontal progress bar like the image given below. And I have designed the the progress bar like the image below using layer-list in drawable: I want to draw a vertical line when progress is greater than 25 like the image that I need. I wrote this code but it didn't work. myProgressBar = (ProgressBar) findViewById(R.id.progress); Canvas canvas = new Canvas(); Paint p = new Paint(); p.setStrokeWidth(2); p.setColor(Color.WHITE); canvas.drawLine(a, b, c, d, p); if

Infinite Progress bar using JSON and Recycler view Android?

一个人想着一个人 提交于 2021-01-29 07:06:33
问题 I want implement load more progress bar after 10 image or position in my recycler-view. Here is some screenshot which give you more ideas I am fetching data from JSON. Here is example of my code [{ "name": "Thick Wallpaper", "url":{ "small": "https://i.pinimg.com/originals/b1/99/57/b19957de05529750cf4d8270441d5f95.jpg", "medium": "https://i.pinimg.com/originals/b1/99/57/b19957de05529750cf4d8270441d5f95.jpg", "large": "https://i.pinimg.com/originals/b1/99/57/b19957de05529750cf4d8270441d5f95

Android custom circular ProgressBar direction

青春壹個敷衍的年華 提交于 2021-01-27 04:01:52
问题 I have a custom Circular Progressbar. This is the drawable I have for it to be determinate: <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@android:id/secondaryProgress"> <shape android:innerRadiusRatio="6" android:shape="ring" android:thicknessRatio="20.0" android:useLevel="true"> <gradient android:centerColor="#999999" android:endColor="#999999" android:startColor="#999999" android:type="sweep" /> </shape> <

How to make round corners for a ring shape in Android drawable

三世轮回 提交于 2021-01-27 02:26:08
问题 I have a custom progress bar that looks like this: Here's the .xml code I've used to create it: background_drawable.xml <?xml version="1.0" encoding="UTF-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:innerRadius="@dimen/progress_bar_radial_inner_radius" android:thickness="@dimen/progress_bar_radial_thickness" android:shape="ring" android:useLevel="false" > <solid android:color="@color/main_color_alpha"/> </shape> progress_drawable.xml <?xml version="1.0"