UI 디자인을 하는데요.

제가 여러 장비를 호환시키려고 UI를 짜다보니 어려움이 많네요.

 

제가 첨부한 파일중 그림1 이 현재 구현되어 있는 UI 입니다.

 

가운데는 Scrollview 가 있으며 화면의 오른쪽에는 TextView 가 있습니다.

 

ScrollView는 항상 화면의 가운데에 있어야 하기에

android:layout_centerHorizontal

옵셥을 주었습니다.

 

그리고 TextView는 항상 화면의 오른편에 있어야 하기 때문에

android:layout_alignParentRight="true"

옵션을 주었습니다.

 

그런데 그림1 은 화면이 큰 장비에서의 화면이라 저렇게 원하는대로 다 표현이 되는데

화면이 작은 장비에서 띄어보면 그림2 와 같이 ScrollView가 TextView를 가려 버리게 됩니다.

 

제가 원하던 모양은 그림3과 같은 모양인데요.

가운데는 ScrollView는 어차피 화면이 넘어가도 Scroll 이 되니 상관이 없어서 ScrollView를 밀리게 하고 싶은데

 

그게 안되네요.....

어떻게 UI를 구성해야 할지 모르겠습니다.

 

 

 <HorizontalScrollView
            android:id="@+id/horizontalScrollView1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:layout_centerHorizontal="true"
           
            android:layout_marginBottom="-2dp"
            android:background="#a0000000"
            android:scrollbars="none">

 

<TextView
            android:id="@+id/xcoor"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_above="@+id/ycoor"
            android:layout_alignParentRight="true"
            android:layout_alignRight="@+id/horizontalScrollView1"
            android:text="X : " >
         </TextView>