Mike Szczys · May 30, 2013 at 10:30 pm

Doing More with the ActionBar

I love the look and functionality of the ActionBar. I find my thumb has more dexterity at the top of the screen than it does at the bottom when I’m holding my phone with one hand. And so I’m happy to see that the interface is evolving while retaining that valued real estate. Play Music is one app that show off that evolution. The app allows you to see the background at the top of the page, but then fades the ActionBar background color in as you scroll down the page, becoming opaque after you’ve scrolled past the Artist artwork. This image shows that. No, I don’t have any artist artwork, but you can see that the Action bar is clear to start, then becomes orange as I scroll down. It’s a pretty neat animation trick which you can use in your own apps.

Cyril Mottier wrote a guide back in November that shows how you can animate the ActionBar. In his demonstration he makes the background fade through several ranges of color (see the video below). Once you know how it’s done, you can make it do a lot more. Play Music is simply mating the alpha with the scroll location, which I would assume is very easy on the processor. Cyril saw this demonstrated at IOIO and wrote a follow-up article that augments his earlier explanation. But I also like the idea from a comment in the November article mentioning it would be technically possible to turn the ActionBar into a progress indicator. I suppose this could be as easy as resizing a bounding box to match a percentage, but I’ll let you work out all the details.

[via Reddit]


_________
Want something on the XDA Portal? Send us a tip!

Mike Szczys

szczys is an editor on XDA-Developers, the largest community for Android users. Mike Szczys is a professional musician but spends all his free time working with hobby electronics. As Contributing Editor for Hackaday.com he became interested in Android as some of the early hardware hacks started popping up on the Internet. What followed was a gradually rising addiction to all things Android. View szczys's posts and articles here.
Emil Kako · Jul 1, 2015 at 04:24 pm · 2 comments

What Features Do You Look for in a Gallery App?

With so many different options to choose from, finding the right Gallery app may be a tough thing to do. Google Photos is the latest cloud service/gallery app to attempt to meet all your needs, but is it the best? Let us know what features you look for in a Gallery app, and which one is your favorite in the comments.

DISCUSS
Jack Jennings · Jul 1, 2015 at 03:34 pm · 2 comments

Google Photos ‘Unlimited’ Storage Reportedly Being Capped

When Google Photos was announced, many of us thought very highly of the idea. It seemed like Google had taken what they learned from G+ Photos and added some extra touches to polish the experience, making it something that more people were likely to actually utilize. Now however, the much-lauded 'Unlimited Storage' element may not be quite what it seemed. Here's what we can gather so far...   Reports have come in from multiple G+ and Reddit users who have attempted to back up a...

XDA NEWS
Faiz Malkani · Jul 1, 2015 at 02:22 pm · 4 comments

Sprint Moves to Lift Video Streaming Limit for All-In

Yesterday, Sprint announced a new unlimited scheme that offered customers an $80 bundle, which included a $60 plan for unlimited talk, text and high speed data and a $20 payments towards towards a 24 month phone lease, However, a footnote in the plan stated that video streaming would be limited to 600Kbps for users, and this revelation created a flurry of indignation. In a bid to save face in light of the scores of agitated customers, Sprint published a blog post...

XDA NEWS
Share This