0.일반개발

Layout Center

StartGuide 2010. 10. 8. 15:52



갤럭시 S와 갤럭시 Tab의 화면 배치를 양쪽 모두를 만족 시키기....

해상도 / 양쪽 적용

문법을 맞추긴 보다는 핵심 부분만 강조 한겁니다. ( 실제 코딩시는 문법을 지켜서 하세요)

<RelativeLayout>
<TextView android:text="30" android:layout_toLeftOf="ccc"></TextView>

<TextView android:id="@+id/ccc"  android:text="/" android:layout_centerInParent="true"></TextView>

<TextView android:text="40" android:layout_toRightOf="ccc"></TextView>

</RelativeLayout>