표시되지 않습니다안드로이드 : 이미지 뷰 나는이 레이아웃 사용하고
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="2"
android:textColor="#372c24" />
<View
android:id="@+id/space"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="5"
android:background="@android:color/transparent" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="4"
android:orientation="horizontal"
android:background="@drawable/shape_popup">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="2" />
<ImageView
android:contentDescription="@string/app_name"
android:id="@+id/rateStar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="2"
android:background="@drawable/image" />
</LinearLayout>
</LinearLayout>
을하지만 이미지가 표시되지 않는 이유는 무엇입니까? 그것은 몇 가지 소스가 그래서 당신은 무게를주는로 필요하지 않는 한이
android:src="@drawable/image"
은 또한 당신의 텍스트 뷰의 폭을 수정 사용 얻을 때까지
android : src = "@ drawable/image" –
@Matt Clark : 작동합니다, 감사합니다 :) –
문제 없습니다! 해피 코딩! :) <<< 나는 약간 더 자세한 설명으로 대답을 던졌다 : p –