Skip to main content

r/AndroidStudio

members
online

Launcher icon questions Launcher icon questions
Launcher icon questions

I'm developing an Android app with minSdk=26, and I have a few questions about launcher icons.

  1. Asset Studio puts the primary icon definition xml files in mipmap-anydpi-26, but the Android Studio linter then wants them in mipmap-anydpi since I'm targeting SDK 26. Is there a way to make Asset Studio put them there directly?

  2. Given that I'm targeting SDK 26, do I actually need the images in the various density-specific mipmap-*dpi directories?

  3. Importing an SVG to serve as a monochrome icon requires using Asset Studio, which creates the ic_launcher_monochrome_foreground.xml file to plug into the monochrome elements of my icon definitions (regular and round). But it also generates a seemingly unused (and useless) ic_launcher_monochrome_background.xml file, a similarly questionable monochrome icon definition file referencing the monochrome foreground and background, and by default versions of the monochrome icon in all the density-specific mipmap-*dpi directories. Can I delete everything but ic_launcher_monochrome_foreground.xml? Is there a way to import SVG as a launcher icon element without all these other pointless files, assuming that they truly are pointless?

Thanks in advance for any answers to these questions.

upvotes

Spring forecast: six weeks of free lawn care from TruGreen. Start today and get a golf course quality lawn this year.
Image Spring forecast: six weeks of free lawn care from TruGreen. Start today and get a golf course quality lawn this year.



Android Studio - auto indentation not working...why Android Studio - auto indentation not working...why
Android Studio - auto indentation not working...why

Can anyone tell me why Android Studio is not turning this code shown below into a nested block of indented code?

I have ticked set the auto indent on save property in Flutter in the settings.

But for some reason the editor indents this single line of code and does not make multiple lines of nested indented code as it should be.

void main() {
  runApp(MaterialApp(home: Center(child: Text('hello world'))));
}