나는 을 가로로두기 위해 LinearLayout
을 사용하고 있습니다. ImageView
에 이미지가 있습니다. 이제 이미지 위에 작은 이미지를 ImageView
에 추가해야합니다. 나는 많은 게시물을 보았지만 모두 Relativelayout
또는 Framelayout
을 다룹니다. 다음은 내가 사용한 XML 코드 부분입니다.Android : ImageView의 이미지 위에 이미지 표시
<LinearLayout
android:id="@+id/relativeLayout2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dip"
android:orientation="horizontal" >
<ImageView
android:id="@+id/imgmode31"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="10dp"
android:adjustViewBounds="true"
android:maxHeight="180dp"
android:maxWidth="140dp"
android:scaleType="fitXY"
android:src="@drawable/i5" >
</ImageView>
<ImageView
android:id="@+id/imgmode32"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:longClickable="false"
android:maxHeight="180dp"
android:maxWidth="280dp"
android:scaleType="fitXY"
android:src="@drawable/i1" >
</ImageView>
</LinearLayout>
모든 도움을 주실 수 있습니다.
-1은 못생긴 포맷이지만 +1은 정답입니다. 나는 0시에 너를 떠날거야! – Justin
@Justin조차도 내가 형식이 잘못된 코드를 붙여 놓았다는 사실을 알지 못했기 때문에 내 formating을 지적 해 주셔서 감사합니다. 내 모바일에서 해냈을 수도 있습니다. – Siddhesh