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

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);

Related

How to modify androidmanifest.xml [duplicate]

This question already has answers here:
How can I change default dialog button text color in android 5
(18 answers)
Closed 26 days ago.
I have made an application by converting my web app to android app, these pink buttons are showing, how can I change this button's color ?
First image
Second image
I have tried by viewing androidmanifest.xml
Your question is not clear, but you can try this:
Try to find this color in the resources directory and modify it
Also you can see answers for this question:
Where can I find defined colors in android

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.

Actionbar like youtube [duplicate]

This question already has answers here:
Change Toolbar color in Appcompat 21
(11 answers)
Closed 7 years ago.
I have made an actionbar like this which is nested using the child Fragment Manager but i am unable to style it like the red color youtube has done. How do I style the actionbar for nested fragments. Please Help.
Follow this example, it uses all the latest libraries and is very easy to understand and copy/reuse for your project
https://github.com/chrisbanes/cheesesquare

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"

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

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.

Categories

Resources