Indeterminate ProgressBar like google now - Java for Android App Development

Hello guys,
Recently I figured out it may be nice to implement an horizontal indeterminate progress bar like the one currently in google now when it refreshes.
But I don't know how to implement the 4 colors that interchange. Is there any library to use or how can I implement this.
Thanks a lot!

alex-p690 said:
Hello guys,
Recently I figured out it may be nice to implement an horizontal indeterminate progress bar like the one currently in google now when it refreshes.
But I don't know how to implement the 4 colors that interchange. Is there any library to use or how can I implement this.
Thanks a lot!
Click to expand...
Click to collapse
There you go
Smooth Progress Bar

gh0stslayer said:
There you go
Smooth Progress Bar
Click to expand...
Click to collapse
Thanks! This library looks nice but in the end i used Google's support library for SwipeRefreshLayout.

Related

[APP / Widget] Smartq Z smartwatch Watchfaces [27-NOV-2013]

I got bored and desperate trying to crack the z watch and get root, .. so I decided its time to do something else and I created this lovely watchface (inspired by SiMi Clock) let me know what you think :fingers-crossed: and hit the "thank you" button
- Download
- adb install
- Reboot
- Enjoy
---------------------------
[Update]
- Six more colors added to both watch faces, colors can be changed by touching the "C" in the upper left corner of the watchface
- Progress effect added to the retro watch face
- Bug fix with retro watchface causing AM/PM being light up at same time
It is beautiful
Sent from my GT-I9295 using Tapatalk
Hey bud for some reason this watchface is staying 2 hours behind time for me any idea? Thanks for ur work
Sent from my SPH-L900 using xda app-developers app
Hmm try to reboot your watch, I haven't coded anything time zone related, it should take the time directly from the system.
Is your time set manually or automatically according to the Timezone?
Sent from my GT-I9300 using xda app-developers app
Thanks for watchfaces. How you do that?
primakolog said:
Thanks for watchfaces. How you do that?
Click to expand...
Click to collapse
If you know how to program in android you just need to download their sdk to see their sample codes on how to get time and date info, after that all you need to do is to stylize and colorize what you want (increase font size, change color, change positions, ... etc)
nice clock face
irkan said:
If you know how to program in android you just need to download their sdk to see their sample codes on how to get time and date info, after that all you need to do is to stylize and colorize what you want (increase font size, change color, change positions, ... etc)
Click to expand...
Click to collapse
thank you ..very nice watch faces !
Wanted to say thanks for such a nice watchface. Have a couple suggestions if you dont mind,
The colour options are great ..perhaps make the C more discreet somehow e.g. some pretty icon instead
And then if you could squeeze in a brief weather status in the lower section ...well then this would be perfect for me
zsha said:
Wanted to say thanks for such a nice watchface. Have a couple suggestions if you dont mind,
The colour options are great ..perhaps make the C more discreet somehow e.g. some pretty icon instead or even just a touch on the separator bar could be enough to change colours.
And then if you could squeeze in a brief weather status in the lower section ...well then this would be perfect for me
Click to expand...
Click to collapse
[QUERY] I am also getting that issue where these clock faces sometime start to lag ..and only fix is to reboot the watch, anyone know how to resolve this ...this is my favourite watch face !
I found out switching the color will bring it back up to correct time when it lags
Sent from my SPH-L900 using xda app-developers app
cool ...I'll give that a go. THX

[Q] Customization

Hi everyone,
I am trying to find for last few hours in the registry, where I can modify opacity of the start menu color. I want from that color to be a little transparent.
Have anyone found that?
Thanks.
Tonchi91 said:
Hi everyone,
I am trying to find for last few hours in the registry, where I can modify opacity of the start menu color. I want from that color to be a little transparent.
Have anyone found that?
Thanks.
Click to expand...
Click to collapse
I heard that the Start menu transparency will come on the next update, so you could just wait.
eokwuanga said:
I heard that the Start menu transparency will come on the next update, so you could just wait.
Click to expand...
Click to collapse
I will go mad if I will wait for a long time.
Tonchi91 said:
I will go mad if I will wait for a long time.
Click to expand...
Click to collapse
Better call the men in white coats then.
Tonchi91 said:
I will go mad if I will wait for a long time.
Click to expand...
Click to collapse
Visual changes usually happen later then sooner in TP and Beta Windows builds.

[Q] How put logo in ActionBar

Hello Guys,
My english is not very good, i'm sorry for that.
I'm developing an app and now i want to have an icon in my actionbar.
i cannot give an example (security from XDA) but de usual icon top left most apps have. Now i only have the title, but on the left side of the title i want the icon.
I tried this:
getActionBar().setIcon(R.drawable.my_icon);
And i tried with android manifest to add: Android:icon and Android:logo to the activity and many other things But none of them works for me.
If i watch videos it looks like the icon should be there by default, but not in my case.
I hope somebody can help me.
Thanks in advance.
meijeringw said:
Hello Guys,
My english is not very good, i'm sorry for that.
I'm developing an app and now i want to have an icon in my actionbar.
i cannot give an example (security from XDA) but de usual icon top left most apps have. Now i only have the title, but on the left side of the title i want the icon.
I tried this:
getActionBar().setIcon(R.drawable.my_icon);
And i tried with android manifest to add: Android:icon and Android:logo to the activity and many other things But none of them works for me.
If i watch videos it looks like the icon should be there by default, but not in my case.
I hope somebody can help me.
Thanks in advance.
Click to expand...
Click to collapse
Are you using the new Toolbar API?
Thats what i think. I'm not sure, how can i check that?
Do you mean AppCombat?
You need to add the android:icon attribute under the application element, not under the activity
Also the design guidelines state that the icon shouldn't be used if you are using the Toolbar API - there are other ways to get your apps branding across to the user.
Thanks for the answers.
But i tried to add the android:icon attribute to the application element instead of the activity element. (And i tried both)
But in none of this situations the icon will appear.
If i look on Google and Youtube i see many people creating a actionbar and have an icon by default. Strange that i don't have this.
I hope that you can help me, thanks.
meijeringw said:
Thanks for the answers.
But i tried to add the android:icon attribute to the application element instead of the activity element. (And i tried both)
But in none of this situations the icon will appear.
If i look on Google and Youtube i see many people creating a actionbar and have an icon by default. Strange that i don't have this.
I hope that you can help me, thanks.
Click to expand...
Click to collapse
ActionBar != Toolbar. By default the new Toolbar API does not have an icon - this is due to the new design spec (Material Design) that the Toolbar was created for.
You need to find out if you are using the new Toolbar API or the old ActionBar API.
If you're using the Toolbar API then as I already said, it goes against the guidelines to have an icon in the Toolbar now as the primary function of it used to be to get the app branding across to the user which there are now other ways to do using material design (using a custom color palette etc).
If you are really stubborn and insist on going against the guidelines you have to use the below code to set an icon on the Toolbar:
Code:
toolbar.setLogo(R.drawable.ic_launcher);
Thanks for your answer, it helped me.
Now i use:
PHP:
getSupportActionBar().setIcon(R.drawable.ic_launcher);
Now i want the left arrow on the left side of the icon, and using:
PHP:
getSupportActionBar().setDisplayShowHomeEnabled(true);
But it won't work. Can you help me with that?
Thanks!
meijeringw said:
Thanks for your answer, it helped me.
Now i use:
PHP:
getSupportActionBar().setIcon(R.drawable.ic_launcher);
Now i want the left arrow on the left side of the icon, and using:
PHP:
getSupportActionBar().setDisplayShowHomeEnabled(true);
But it won't work. Can you help me with that?
Thanks!
Click to expand...
Click to collapse
Add this to your code:
Code:
getSupportActionBar().setDisplayHomeAsUpEnabled(true);

Comments on Android O!

* Why we don't have the nav bar customization available in the system tuner!
* the Power Optimizer app? Is not included as well!
* the old ugly dialer is still here and we didn't get the least one from the XZ1.
* still having the black thumbnails on the recent menu when you have the 4K resolution active all the time, also the dialer is not working as well when you have the 4K.
So far my complaints are those. How about you guys? And if anyone has found a solution to my problems please share the solution with me.
Downloadable fonts...where are they?!
I really wanna change the nav buttons cause I don't like the oreo ones.
Phat-T said:
Downloadable fonts...where are they?!
Click to expand...
Click to collapse
Yeah I totally forgot about that
chesterr said:
I really wanna change the nav buttons cause I don't like the oreo ones.
Click to expand...
Click to collapse
Also all of the old themes aren't compatible with the phone nor, you can install them but the navigation Bar will be odd

Android 10 black bar issue

I updated to the new Android 10 and it's really good so far with the new animations and quirks here and there . But for some annoying reason Samsung decided to add this white/black bar underneath the keyboard and it's really uncomfortable and takes so much screen estate . Tried uninstalling and reinstalling Gboard but it's still there and there's no option to disable it . Any ideas on how to get rid of it ?
I think you can find it somewhere inside the Display > Navigation Bar > and the one that has something to do with they keyboard option (I'm sorry I don't have my phone with me right now)
Thats strange. I dont have that black bar under keyboard
Myxter99 said:
I updated to the new Android 10 and it's really good so far with the new animations and quirks here and there . But for some annoying reason Samsung decided to add this white/black bar underneath the keyboard and it's really uncomfortable and takes so much screen estate . Tried uninstalling and reinstalling Gboard but it's still there and there's no option to disable it . Any ideas on how to get rid of it ?
Click to expand...
Click to collapse
I was plagued by the same thing. This may help,
https://forum.xda-developers.com/ga...0-unlocked-t4017955/post81473191#post81473191
Namolas said:
I was plagued by the same thing. This may help,
https://forum.xda-developers.com/ga...0-unlocked-t4017955/post81473191#post81473191
Click to expand...
Click to collapse
Do you have the option for having hide button on keyboard or something like that? It's a toggle under the options for gestures.
Namolas said:
I was plagued by the same thing. This may help,
https://forum.xda-developers.com/ga...0-unlocked-t4017955/post81473191#post81473191
Click to expand...
Click to collapse
This toggle. Turn it off and see what happens.
Jammol said:
This toggle. Turn it off and see what happens.
Click to expand...
Click to collapse
Is that a Hitman theme? Looks fantastic
GunnerGeezer said:
Is that a Hitman theme? Looks fantastic
Click to expand...
Click to collapse
Technically I guess. It's call [Invaser]Faceless in the Samsung Themes store.
It's in display settings
Turn off show hide keyboard button.

Categories

Resources