Why default flutter icon app is shown when clicking overview button? - android

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

Related

Icon to the edge

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/

The android studio changes the background of button

I have a problem with my Floating Action Button. I want to get the same "plus" button as in google design, however, when I import the "add_white" icon from material design studio and put it into project, it is redefined to have black background which completely distorts the effect.
I show on the attached picture how the problem looks like - the image in all possible dimensions is correctly inserted in the folder, however, the android studio reads it differently.
Thank you in advance,
Grzegorz
How to fix it/ or just get the proper "cross/plus" sign to the button?
I'd recommend you to download the icon in svg format from https://design.google.com/icons/#ic_add, you can add it to Android Studio by doing a right-click on the project and selecting Vector assets, you'll be able to remove your 5 ic_apps_white_48 pngs and use the one imported.

Floating action button android change icon

I followed a template on android studio to create a navigation drawer app. As you know it creates an initial activity with a floating action button and the email icon in it. I just want to change it to a plus sign. Here is the problem. It turns out there is no plus sign available as the ones I can see in every single example ( There is just one I can use but then the plus sign color is green, and I want it white! ).
I followed this steps how to download Material icons , I get the icon ic_plus, and I put every single file in its correspondent folder ( drawables, drawables-hdpi... ).
Problem is when I try to use it here:
The name turns red as it can't find it. As I said, I copied all files one by one to its correspondent drawable folder. I even tried this drawable importer
but the same happen.
What am I missing? And why plus sign icon it is not shipped as default icon, as for example the e-mail icon is, as I can see it in every single app using floating action button? I use Android Studio 1.5. Thank you!
EDITED
Looks like images are correctly placed in correspondent folders because if I try to use it on menu bar, I can find it through #drawables/ . Still don't know why I can't do the same for the floating action button. Ideas?
Put your image in the drawable folder.
Use the design editor and when you click on the FAB scroll down to the src and click that little square button with 3 dots on the right side to pull up all your options. You should be able to search for the name of the icon you uploaded and select it from here.
I tried to type in my file name using text editor and it couldn't find my image either.

How to change the app startup screen, in Android, when NavigationStyle is Slide

I have two questions for a Slide App StartUp, when executed in Android.
1 - Is there any way of changing the menu icon color?
2 - I am using a SplashScreen but, in Android, after the SplashScreen, a blank panel is presented to the user. Is there any way of filling this panel with an image? (Note: in iOS this startup panel is filled with the splashscreen image).
1_ Yes, this icon is copy of the system icon and change with the "Android Base Style". If you use "Dark" it will use one icon and if you use "Light" it will use other.
Also you can use a custom one if you override the file:
gx_drawer_icon_dark.png
in all the drawables folders:
Android\FlexibleClient\res\drawable-hdpi
Android\FlexibleClient\res\drawable-xhdpi
etc.
2_ You should use the Slide.Start event here.:
http://wiki.genexus.com/commwiki/servlet/hwiki?Slide.Start+Event,
and call an intro SDPanel

how can i set the application icon programmatically android

I know that we can set it through manifest file using android:icon attribute.But how can we set it in java code?
It doesn't make sense to set it programmatically, the launcher has to display the application icon when the application isn't active.
If you take a look at How to change an application icon programmatically in Android?, you will find a comment, which links to this sample code in the Android developer API demos: LaucherShortcuts.
It seams that the Activity can create a LauncherShortcut, which can have a different icon (see function setupShortcut()). If you want the user to select the Icon, you have to display a list of icons when creating the shortcut. But again, it is a shortcut. In the list of application the original icon appears.
I dont think the launcher icon can be set programatically.

Categories

Resources