I am new to xamarin and android dev. I have created my own app icon. On device install, the icon gets underlaid by a white circle and my icon gets smaller. I use romannurik homepage, here is a screenshot from my homescreen:
I want my icon to be like the icons marked in green. My icon gets like the ones marked in red.
My question is: how can i create an icon like the ones marked in green
SushiHangover is correct, but the better way to do it is to use adaptive icons. The easiest way to deal with Android icons is to download Android Studio. Once that is done, then create a new project. It doesn't matter what the project is.
After it loads and Gradle does it's initial build, in the left hand menu then right click on "res" and select New -> Image Asset. This will launch a new window.
At the top specify the "Icon Type" as "Launcher Icons (Adaptive and Legacy). Then specify a foreground layer and a background layer and hit next. Android studio will generate all the various icons you need for every version of android.
Last step is to transfer all the mipmap folders into your xamarin project and get them added through visual studio.
You should still specify the RoundIcon like SushiHangover mentioned, but if the app is installed on Android 8.0 or greater it will us the adaptive icon to match the look and feel of whatever phone it is installed on.
You are looking for "Round Launcher Icons" available in Android 7.1 and above.
1) You will need to create the various icons and place them in your mipmap-XXXX resource folders
2) Then you need to assign the RoundIcon property either directly in the manifest or via the ActivityAttribute:
[Activity(Label = "Scoreboard",
Icon = "#mipmap/ic_launcher",
RoundIcon="#mipmap/ic_round_launcher",
Theme = "#style/SplashTheme",
MainLauncher = true)]
public class SplashActivity : AppCompatActivity
{
~~~
}
See the blog post for the details:
Blog post: https://devblogs.microsoft.com/xamarin/round-launcher-icons-in-android-7-1/
Related
On my phone "desktop" I can see the custom icon I have set up for my app (by placing the images inside the mipmap folders and referencing them inside AndroidManifest).
However when I click the overview button, I still see the default flutter icon associated with my app.
How can I change that?
I Suggest flutter_launcher_icons package for changing Flutter application icon.
As you have to define an icon for different resolutions.
But when using flutter_launcher_icons , you just define/update your icon app once.it's easy to use just follow the guide :
https://pub.dev/packages/flutter_launcher_icons#book-guide
I've created a simple icon using Image Asset (only changing the background color and the object using clip art) but it won't show on device. I've checked all the places where I store the icon (mipmap, android manifest) and they all show the icon I want. The icon type is adaptive and legacy and I checked the mipmap-anydpi-v26 folder it looks alright.
I've also tried on a new project changing the icon and it worked, but I want to change the icon of the current project I'm working on.
What could be the problem??
mipmap-anydpi-v26
android manifest file
ic_launcher.png
The launch icon is not display well on devices with OS 8.0/8.1 Oreo.
I make everything like here Launcher Icon is not Shown in Oreo 8.0/8.1, but the result is that:
Can someone help with that?
After nougat there are two layers for an icon one is foreground and one is background What you need to do is Right click on the app icon then go to new -> image asset -> choose launcher icons -> then there you can choose background and foreground layer then finish the process and in manifest as follows -
android:icon="#mipmap/ic_launcher"
android:roundIcon="#mipmap/ic_launcher_round"
you will find both the icons in mipmap folder in your resources
May be the resolution of the icon is not proper. You can generate icon with proper resolution and other properties try this. Here you can choose and edit app icons as per android icon specifications.
The solution was just to upload a svg file for the foreground layer and put some color for the background layer.
Now the launch icon is shown correct.
Hope this can help to someone else ;)
This wizard appears when creating new android projects.
I would like to change the app icon of an android project.
Editing my new-version icon image into different density manually is kinda inefficient, therefore I want to open this wizard in eclipse again.
How am I supposed to do it?
the image of the wizard:
Right click on your project.
Select New and then other.
In the type filter text section type in android icon set.
Select Android Icon Set from the result and click on Next.
You can create your launcher icon again there!
Icon creation wizard
Select your project
Ctrl+n
Android Icon Set
So I am editing a go launcher template theme and i saw there were some parts i wanted to change that wasn't included in the template. For example the little icons on top of the apps when you want to delete (kill.png kill_light.png etc.) I added this code
<AppIcon text_color="#FFFFFFFF" text_bg_color="#ff3f3f3f" delete_app="kill"
delete_app_highlight="kill_light" new_app_icon="new_install_app"
update_icon="appfunc_app_update" locker_icon="promanage_lock_icon"
close_app_icon="promanage_close_normal" close_app_light="promanage_close_light"/>
With png's with the right names in the drawable hdpi folder but they don't show up when I test it out. Am I missing something? I was able change the media management icons in the app drawer by adding this
<SwitchButtonBean button_galleryicon="appfunc_mediamanagement_switch _button_gallery"
button_gallerylighticon="appfunc_mediamanagement_s witch_button_gallery_light"
button_musicicon="appfunc_mediamanagement_switch_b utton_music"
button_musiclighticon="appfunc_mediamanagement_swi tch_button_music_light"
button_videoicon="appfunc_mediamanagement_switch_b utton_video"
button_videolighticon="appfunc_mediamanagement_swi tch_button_video_light"
button_appicon="appfunc_mediamanagement_switch_but ton_app"
button_appiconlight="appfunc_mediamanagement_switc h_button_app_light"/>
But it didn't work for the other part (the smaller versions of those same icons in the media management menu).
What am I missing?