Where can I find Android's default icons? [duplicate] - android

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Standard Android menu icons, for example refresh
Where can I find the name of the default Android menu icons (like refresh or compose)?
The code below has an error stating that the resource is not public
<item
android:id="#+id/preference"
android:icon="#android:drawable/ic_menu_refresh"
android:showAsAction="ifRoom" />

\path-to-your-android-sdk-folder\platforms\android-xx\data\res

you can use
android.R.drawable.xxx
(use autocomplete to see whats in there)
Or download the stuff from http://developer.android.com/design/downloads/index.html

You can find the default Android menu icons here - link is broken now.
Update:
You can find Material Design icons here.

Related

How to create a navigation menu like this in android studio? [duplicate]

This question already has answers here:
Transition in navigation drawer android
(2 answers)
Closed 4 years ago.
How can I create a navigation menu like this for my app in android studio.
Create a navigation Drawer (with menu items), you can access full code here
https://developer.android.com/training/implementing-navigation/nav-drawer
Implementing that navigation bar from scratch will be bit difficult. What I suggest instead is to use a library for that purpose.
Here is a library that gives the same UI as you want, read this readme. It is called Duo-Navigation-drawer
https://github.com/PSD-Company/duo-navigation-drawer/blob/master/README.md
This readme file contains all the necessary steps to implement it on your app.
Give it a read.
While there are many other libraries too.
Here is a screenshot of the navigation bar.
Click here to view

The app icon is missing on preview at android studio [duplicate]

This question already has answers here:
No App Icon on ActionBar
(6 answers)
Closed 6 years ago.
i create a new project without change and the icon is missing.i find some similar question but it not like me.
enter image description here
Android Studio uses the AppCompat theme by default, which no longer uses an icon. You can add one by adding the following to your onCreate() but it is no longer the norm/recommended to have a logo in your app bar.
ActionBar actionBar = getSupportActionBar();
actionBar.setLogo(R.drawable.my_logo);

How to chage the color of actionbar in android [duplicate]

This question already has answers here:
How do I change the background color of the ActionBar of an ActionBarActivity using XML?
(21 answers)
Closed 6 years ago.
I am newbie to android and i am working on a demo related to actionbar and fragments,I have done with it but now i want to change the colour of my actionbar,I have tried below link which gives me exception,
Change Color of Actionbar in Android
So,Can anybuddy helps me to do it?
Thanks in advance,Dont close it as i couldnt find any solution so far.So i request you to guide rather than close the question.
I think that this answer will fit all your requirements - change-color-of-actionbar-in-android.
You simply need to modify your Theme.

Using Private Styles in Android [duplicate]

This question already has an answer here:
Android: Using default styles
(1 answer)
Closed 8 years ago.
Okay this is the third time I am asking this question. It would be appreciative if someone gave me a concrete answer with an appropriate example..
While styling my Android UI, I needed to change the look and feel of my ALertDialog. However, I tried import the alert dialog default style using the following
style name="alertDialogStyle" parent="#android:style/AlertDialog"
While doing the above I get an error saying something like "parent resource not found". As far as I heard from others it seems that its a private style and cannot be used.
So is there anyway that it can be used that I am nit aware of?
I think you are supposed to use a Theme as your parent instead of a Style.
For AlertDialog, the default theme is #android:style/Theme.Holo.Dialog.Alert for Honeycomb and later, and #android:style/Theme.Dialog.Alert for older versions.
You can see the theme declaration in [ANDROID_SDK]/platforms/android-19/data/res/values/themes.xml. There are several variations you might be interested into.

ActionBarSherlock: Creating the View as shown below [duplicate]

This question already has answers here:
Force overflow menu in ActionBarSherlock
(4 answers)
Closed 9 years ago.
I have implemented ActionBarSherlock in my project, which is supposed to run on android 2.2 and above. What i need is the functionality shown in red contour in below image. I had a hard time finding what that functionality is called. can some one please point me at the right direction ?
In you XML for your menu items, add this to every menu-item:
android:showAsAction="never"

Categories

Resources