简体   繁体   中英

I cannot set drawable property from drawable located in drawable-hdpi in android?

I want to set an Alert Dialog with different background.

I created an inset drawable to be used in a style

<?xml version="1.0" encoding="utf-8"?>
<inset xmlns:android="http://schemas.android.com/apk/res/android"
   android:drawable="@drawable/frame.9"
   android:insetTop="14dp"
   android:insetLeft="14dp" />

my drawable is located in @drawable-hdpi, mdpi, xxhdpi etc

but I get I cannot resolve symbol @drawable/frame.9

What I am missing here? thank you

看来我需要将文件名键入@ drawable / frame而不带.9谢谢

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM