ANicholasson
ANicholasson

Reputation: 477

Android: App icon is different inside "App Info"

So I have this Xamarin app that I'm working on. On iOS the icon(s) are displayed correctly, but on Android the icon is only correct when viewing in the application launcher. When holding down the app icon and pressing "App info" the icon displayed is this one:

Any help is appreciated :)

Upvotes: 0

Views: 415

Answers (1)

ColeX
ColeX

Reputation: 14475

  • Add Icon = "@drawable/dogg" attribute in MainActivity .

    
     [Activity(Label = "FormsApp", Icon = "@drawable/dogg", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize )]
     public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
    
  • Set icon and roundIcon in application tag in AndroidManifest.xml.

      <application 
      android:label="FormsApp.Android" 
      android:theme="@style/MainTheme" 
      android:icon="@drawable/dogg" 
      android:roundIcon="@drawable/dogg">
    

enter image description here

Upvotes: 1

Related Questions