Android Icon VS Logo

Android icon vs logo

The ActionBar will use the android:logo attribute of your manifest, if
one is provided. That lets you use separate drawable resources for the
icon (Launcher) and the logo (ActionBar, among other things).

Source: Android: How to change the ActionBar "Home" Icon to be something other than the app icon?


setDisplayUseLogoEnabled()
Enables the use of an alternative image (a "logo") in the Action
Bar, instead of the default application icon. A logo is often a wider,
more detailed image that represents the application. When this is
enabled, the system uses the logo image defined for the application
(or the individual activity) in the manifest file, with the
android:logo attribute. The logo will be resized as necessary to fit
the height of the Action Bar. (Best practice is to design the logo at
the same size as your application icon.)

Source: http://developer.android.com/guide/topics/ui/actionbar.html#Style


To replace the icon with a logo, specify your application logo in the
manifest file with the android:logo attribute, then call
setDisplayUseLogoEnabled(true) in your activity.

Source: http://developer.android.com/sdk/android-3.0.html#api

What is the difference between an Icon and an Image in Android Jetpack Compose?

Icon is part of Material design. So it has default size of 24.dp, as defined by Material guidelines, and should be used for displaying icons of this size. It'll use LocalContentColor value for image tint, and you can change it manually with tint parameter.

Most common usage is using it with predefined material icons, like this:

Icon(
Icons.Default.Hub,
contentDescription = "...",
tint = Color.Black
)

But you can create your own icons in code too, check out source code of any default icon for the reference. You can also use it for displaying a resource icon or drawable, they're gonna be scaled to fit.

Image is a Compose container for displaying images of any kind. It's much more flexible, like you can set contentScale, colorFilter, and alignment.

What Icon Type should I choose for normal images to be used in an Android app? How should I add these as ImageViews?

TO get images from clip art to be used in your app go to drawable>vector asset> select your clickart> click on finish.

The better way however is to go online and download .svg files for icons and then select local svg option in your vector asset creator to use it in your app.

Android app icon foreground defaulting to android logo

Just rename your desired mipmap icon's resource into any name different form ic_launcher
Also make sure you changed the icon name in AndroidManifest.xml

How do you change the launcher logo of an app in Android Studio?

Look in the application's AndroidManifest.xml file for the <application> tag.

This application tag has an android:icon attribute, which is usually @drawable/ic_launcher.
The value here is the name of the launcher icon file. If the value is @drawable/ic_launcher, then the name of the icon is ic_launcher.png.

Find this icon in your resource folders (res/mipmap-mdpi, res/mipmap-hdpi, etc.) and replace it.

A note on mipmap resources: If your launcher icon is currently in drawable folders such as res/drawable-hdpi, you should move them to the mipmap equivalents (e.g. res/mipmap-hdpi). Android will better preserve the resolution of drawables in the mipmap folder for display in launcher applications.

Android Studio note: If you are using Android Studio you can let studio place the drawables in the correct place for you. Simply right click on your application module and click New -> Image Asset.

For the icon type select either "Launcher Icons (Legacy Only)" for flat PNG files or "Launcher Icons (Adaptive and Legacy)" if you also want to generate an adaptive icon for API 26+ devices.

Is there a standard icon/logo to 'Choose Language' in Android?

In settings, the icon is this:
icon a or icon b

Sources: I have a few Android devices and they all have the same icon to change the language

and by looking at a search like this, you can see that this icon is consistent across devices and versions.

Edit:
It's not Android-specific, but it may be interesting to note that in 2008, Onur Mustak Cobanli designed a graphic to 'standardise the language selection icon'. In 2011 this was adapted by Farhat Datta, and looks like this:
icon 3

Source: www.languageicon.org



Related Topics



Leave a reply



Submit