0
아래 레이아웃에 대 한 XML을 설계해야합니다.안 드 로이드 UI에 대 한 XML을 디자인하는 방법
내가 디자인하는 RelativeLayout의를 사용하려고하지만 RelativeLayout의에서 imageVivew3을 조정하는 방법을
을 모른다.
누구나 XML 조정 방법을 가르쳐 주시겠습니까?
또는이 레이아웃에 대한 멋진 xml 디자인을 가지고 계신가요?
대단히 감사합니다.
내 XML은 다음과 같습니다 :
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/relative_bg"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView1"
android:layout_centerHorizontal="true"
android:visibility="visible"
android:layout_margin="0dp"/>
<ImageView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView2"
android:visibility="visible"
android:layout_centerVertical="true"
android:layout_marginLeft="10dp"/>
<ImageView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView3"
android:visibility="visible"
android:layout_centerVertical="true"
android:layout_below="@+id/imageView3"
android:layout_alignParentRight="true"
/>
<ImageView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView4"
android:layout_alignTop="@+id/textView1"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignParentBottom="true"/>
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="txt1"
android:id="@+id/textView1"
android:textColor="@color/white"
android:textSize="@dimen/common_size_large"
android:layout_below="@+id/imageView3"
android:layout_alignParentRight="true"/>
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="txt2"
android:id="@+id/textView2"
android:textColor="@color/white"
android:layout_below="@+id/textView1"
android:layout_alignParentRight="true"
/>
</RelativeLayout>
나는,있는 LinearLayout을 사용 해달라고, 그래서 나는 – dickfala
그 RelativeLayout의 ... @dickfala –
미안 해요, 내가 의미하는 이미지가 화면 짧은 WRO 겹쳐 보인다되지를 사용하는 생각 imageview2와 imageview 3 가로가 겹쳐 있습니다. 이미지 뷰 1, 2, 3에는 수직으로 오버레이가 있습니다. – dickfala