This example produces the following xml fragment: Īnd I have created a new app and put my icon( testicon.png) in folder drawable, just use the following code, it just works properly. For example: [Activity (Label="My App", MainLauncher=true, class MyActivity : Activity If you click here, document states that if you use custom attribute, it causes xml fragment to be added to AndroidManifest.xml at compile time.Ĭlick here to see that how the attribute helps to produce icon in xml fragment. Icon = we have an icon activity definition in MainActivity and then try to change icon from manifest file, icon would not change because icon activity definition in Main Activity overrides the manifest. You could open the existing picture, create new layers on top, then use the original image as a guide to trace/redraw the shapes on those new layers. I am sorry ,it's my fault, I have ignored the code of MainActivity. I think what you are trying to describe is redrawing the icon, using image editing software - Krita will certainly work for this, as would Inkscape, or Illustrator, etc.
0 Comments
Leave a Reply. |