Alternative to Android Action Bar using buttons or radio group - android

I would like to create an simple menu type Action Bar along the top. I like using buttons, but need the color or image to change and hold when on selected link. Or else, could a radio button be used as an alternative to Action Bar? I would like it to look like the menu tabs on this screenshot link: view link hereThank you!

Related

Android: Action Bar with Different Action Buttons

I am using Android Tab Navigation using Combat Action Bar. I have implemented Custom Action Bar.
Now i want to add different buttons to Action Bar According to tabs. i want some thing like that.
In some fragment i need this button, while in other i need different button.
Any Help Will be Appreciated.
Thanks
you can use custom action bar to add number of buttons.
Try This:-
Link Here: http://www.djbp.co.uk/android-actionbar-adding-buttons/

create custom layout for sub menu in action bar

I want to create a custom menu like Google play book. in fact I want when I click on a menu item in action bar show a custom layout that show somethings different from sub menu. I may put some object like seek bars or switches.
this is what I want:
http://www.andriman.com/media/other/Screenshot_2014-01-20-17-31-16.png
how can I do like that?

The best way to customize a action bar menu?

I'm new in android programming, I want to create the GUI of my app, when making that the action bar must be customized to looks like :
here i have "three" things:
the button shape in the non-clicking state.
the button shape in the clicking state.
the buttons separator shape.
while searching i found somethings like Android-actionbar and ActionBar-Sherlock and i'm also familiar with how to customize the action bar and how to add buttons imagess and change it upon clicking, NOW, i don't know if there's is possibility to achieve my work using any of these methods, OR IF NOT, what's the best way.
You should take a look at both these links.
PagerTabStrip
ViewPagerIndicator

Android clickable Custom Action Provider

I'm using ActionBarSherlock and creating a custom ActionProvider. When clicking on the custom action provider, I've managed to make the topmost LinearLayout clickable and set a custom selector on it.
The problem is that compared to simple menu item with an icon, the custom action provider doesn't use the selector to highlight the action bar entirely from top to bottom. A few pixels on top and bottom are not being highlighted.
There is probably an elegant solution to make the entire custom action provider behave like a simple clickable menu item with an icon. Any help will be greatly appreciated.
I figured it out. Instead of using an Action Provider, I used the actionLayout for the menu item and made it clickable as shown in this post.

Android Contextual Action Bar - Select all / Deselect all

I'm looking for a way to implement a drop down on a contextual action bar, that shows the number of items selected, then has a drop down for either Select all or Deselect all. The standard Gallery app has this.
Is the only way to do it, to create a custom view to replace the title, or is there a simpler way? If you need to call
setCustomView
and replace the title, what's the best way of doing this. Would a Popup Menu be suitable. I want it to follow the same style as the contextual action bar for things like touch feedback, colours and the small arrow indicating their are more options.
Thanks.

Categories

Resources