error: Error: No resource found that matches the given name (at 'src' with value [email protected]/
ic_launcher').
adt报错,之前是用的@@drawable/icon',都不行。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="?android:attr/listPreferredItemHeight"
android:padding="6dip" >
<ImageView
android:id="@+id/rowicon"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_marginRight="6dip"
android:src="@drawable-hdpi/ic_launcher" />
<LinearLayout
android:orientation="vertical"
android:layout_width="0dip"
android:layout_weight="1"
android:layout_height="fill_parent">
------解决方案--------------------
android:src="@drawable-hdpi/ic_launcher"
=>
android:src="@drawable/ic_launcher"
------解决方案--------------------
是的 不需要带hdpi
------解决方案--------------------
android:src="@drawable-hdpi/ic_launcher"
这个是错误的. 楼上的这个说法是对的android:src="@drawable/ic_launcher".
你把apk安装到手机上面之后,他会自己去适配的.像hdpi xdpi xxdpi 这些是和手机的屏有关系的.