In the Android list of R.drawables (http://developer.android.com/reference/android/R.drawable.html) I can find the ic_menu_zoom button, which have a little plus sign inside.
Does anyone know about a similar menu button, but with a minus sign? I can't seem to find anything in the reference.
Thanks.
You are looking for the wrong kind of icon. It clearly says that it is a menu icon ic_menu_zoom.
What you are really looking for is the btn_plus_ and btn_minus_ icons. Note that I've omitted the states. You'd actually want all button states to combine them into a StateListDrawable.
Alternatively you can take a look at the btn_zoom_ icons.
Maybe try btn_minus_default and btn_plus_default.
Edit:
Or check out this link.
Related
How can i make the ActionBar Epic as this one ?
Also normally in Google Apps, when we swipe down the action bar actually get shrinked down in size with a beautiful effect, is that effect available for developers? or we have to do it on our own ? And how can we do it?
In this image overhere, there's icon and text above the image, and also a rounded button, i wonder if this sample is documented and i'm missing it, hope guys you'll point that out!
Also how can they add text to the ActionBar??
Hope you'll help! Thanks!
This is all from the new Materials Theme that is going to be available in the next version of Android. You can find out more at the Android L Developer Preview site.
You may use this project available on github to implement your epic actionbar.
Regarding icons/buttons, simply use drawables or 9-patch to get it done.
In android, I want to create a dropdown menu like the following:
I've seen some examples where there are just buttons, and no text (like QuickActionView), but none like this. If someone could direct me to some open source code, that'd be great, or point me in the correct direction.
Thank You in advance.
Android's ActionBar does exactly this. Unfortunately, it is only available for 3.0 and up. However, you could use ActionBarSherlock.
I have googled this, most of the solutions are using:
1.TabHost with customized style which would cover the separate line between each tab to archive the requirement.
2.On the android developers website, there is a article is using Merge layout to put 2 buttons on top of the background image kind of archive what I want.(http://developer.android.com/resources/articles/layout-tricks-merge.html)
3.What about using button but style the looking like the example below? I don't need the selection, cause each item in the menu will be a button, which takes the user to another page.
I am wondering is there any other solutions apart from these two?
This is something want:
I don't need the menu likes a tab which has selected and unselected, they are better like a button always displaying in certain screen(activity).
Thank you.
You can use simple buttons, and provide any custom background for it. For such simple form as on your screenshot look for this link.
But #Janne write right thing - you should be very careful with transplanting controls from another platforms.
I'm trying to cope with some problem in finding good idea. I would like to make interesting menu like in games on Android (eg. ANngry Birds or here: http://www.youtube.com/watch?v=Q3g6SdTODY4) In this panda game I supose that first menu are simply 3 color buttons, but what about this sliding menu later with stages description - this same as in angry birds? Telling the truth I have got no idea what object it can be?
I will be glad if someone can tell me that. Or the best to give some tutorials about it. I cant google any.
Well, it seems that this sliding stage description is implemented with some simple layout placed to HorizontalScrollView and some animation applied to the buttons.
It can be your custom view provided with your translation animations and handling its visibility on the click of the default menu button (via onKeyDown()) on Android.
There are similar questions:
Custom options menu in Android
Android: customize application's menu (e.g background color)
I'm finding lots of discussion about how to replace the default group icons in an ExpandableListView, but I'm not coming up with anything on how to get the defaults to display in the first place.
The defaults (as shown here, if that's what they look like [new to Android, this is my first ExpandableListView]) will be fine with me, if I can get them to show.
I'm using the sample code from the article; I have no need for the embedded CheckBoxes at this time.
Any assistance is appreciated.
--EDIT--
Also, does anyone have any theories as to why the default icons show in the article (again, if that's what they look like--if someone could confirm that'd be great) but don't show for me?
If you are using custom layouts for your group rows the default icons are overridden by your layout. You'll need to add them to your layout in order for them to display.
you can changed default icon with your own icon as below.
android:groupIndicator="#drawable/image"