When I created Xamarin.Android project in Visual Studio 2017 2 years ago in Resources folder I had drawable folder and drawable-hdpi, drawable-mdpi, drawable-xhdpi etc. folders. If I remember well I put the image I wanted to use in the application in drawable folder, and if the device the application was running on had big screen, it looked for the image in drawable-xhdpi or drawable-xxhdpi and if there was no image there it got the image from drawable folder. I installed Visual Studio 2017 some months ago and instead of drawable,drawable-hdpi, drawable-mdpi, drawable-xhdpi etc. I have mipmap-anydpi-v26, mipmap-hdpi, mipmap-mdpi, mipmap-xhdpi etc. folders. My question is do I proceed as before, if I want to put and image for all device screen sizes I put it in mipmap-anydpi-v26 and if I want to put an image for a specific device screen size I put it in drawable-xhdpi for example? Does anything change with the new folders?
Drawable folders replaced with mipmap folders in Xamarin.Android project in Visual Studio 2017?
1.9k Views Asked by Pirlo At
1
There are 1 best solutions below
Related Questions in XAMARIN.ANDROID
- Extracting Last 4 Digits from RPM Response in Xamarin Android (e.g., "41 0C") and Performing Decimal Conversion and Division by 4
- Xamarin android emulate usb PC Keyboard
- Java.Lang.IllegalStateException: 'Unable to parse composition' using Lottie in splashscreen xamarin forms (android)
- AzureDevops Pipeline Generate APK: Error XALNK7000: Mono.Linker.MarkException
- Unable to clear App cache in Xamarin.Forms Android
- Xamarin Android Memory Usage
- Failed to resolve SDK 'Microsoft.NET.Sdk'
- Why are there no results after clicking button even though event handler is initiated and button_click method created?
- How to perfectly localize DatePicker, TimePicker in Xamarin
- .Net Android (Maui) Writing external storage doesn't work until I restart the application in below 13 version
- Syncfusion/Xamarin Numeric Keyboard broken - 2 different characters within the same button
- Alarm manager does not trigger broadcast receiver when app is closed
- ExtendedListView not scrolling to correct position
- Can not resolve reference 'Package' referenced by 'Project.Android', when updating a new package in an existing project
- How to make a row in a list after clicking a buttom xaml
Related Questions in DRAWABLE
- Android - Why my app picks values on default folder (instead XXHDPI)
- Design Chat message background with tail in android xml
- How to give shape to view in adnroid
- problem converting a drawable to an image with JUCE
- Load API based drawable in Compose
- Picasso FileNotFoundException image from contacts in Jetpack compose
- How to change image dynamically in drawable folder in Android studio?
- android drawable border remove bottom line
- Convert SVG to drawable/canvas for GraphicsView in .NET MAUI app
- PNG image is deleted from drawable file but is still giving an error
- Set background to gradient animation drawable not work
- Button drawable background
- Some phones incorrectly setIcon to submenu
- Xamarin.Android Switch -Set colors of thumb and track drawables
- Changing color of android:drawable according to light mode or darkMode
Related Questions in SPECIAL-FOLDERS
- Android 12 AOSP: How to prevent creation of the media folders on external volumes?
- Changing the locations of shell folders from registry paths is not taking effect
- Install fails on Windows 11 with OneDrive
- How can Windows service running as System account get current user's \AppData\Local\ special-folder?
- Blocking public documents folder for write access?
- How do I create output folder for MSVC generated files in Visual Studio Code?
- Is there any way to get Environment.SpecialFolder from file path?
- Batchfile to delete all folders but the latest AND a special folder
- Parsing string containing Special Folder
- Change the paths to user folders(Shell Folders) with Powershell
- %USERPROFILE%/Desktop no longer valid after relocating Desktop folder to OneDrive
- How to store a special folder path in Settings.settings c#?
- Echo directory opened by shell:startup
- Execute Windows run dialog command in command prompt
- How to get the path to a file in the Local App Data folder created by ClickOnce
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The mipmap folders are for placing your app/launcher icons (which are shown on the homescreen) in only. Any other drawable assets you use should be placed in the relevant drawable folders as before.
According to the this article:
Using mipmaps for your launcher icon is described as best practice by the Android team. The advantage you get is that you can keep resources in the mipmap folders for all device densities and then strip out other resources from the drawable folders that are not relevant to the specific users device density.
It’s best practice to place your app icons in mipmap- folders (not the drawable- folders) because they are used at resolutions different from the device’s current density.
When referencing the mipmap- folders ensure you are using the following reference: