안드로이드 개발 질문/답변
(글 수 45,052)
제가 지금 독학으로 공부중인데요 레이아웃에 문제가 생겨서 이렇게 글 올립니다ㅠ
아이디가 b인곳에 텍스트가 길어질수록 아이디c도 같이 밀려버리거든요..
저는 아이디가 c인것을 항상 맨 오른쪽에 붙겠끔 만들고 싶어요 b의 내용이 길어져도요
(아주 붙는정도는 아니고 맨 오른쪽에서 벽에서 약간 왼쪽으로요)
어떻게 해야할까요? ㅠ
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="3"
android:orientation="vertical" >
<TextView
android:id="@+id/a"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5dip"
android:textSize="20dip"
android:textStyle="bold" />
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5dip" >
<TextView
android:id="@+id/b"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="15dip"
android:textStyle="bold" />
</RelativeLayout>
</LinearLayout>
<TextView
android:id="@+id/c"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_marginTop="15dip"
android:layout_marginLeft="150dip"
android:textSize="25dip"
android:text="good"
/>
</LinearLayout>




리니어레이아웃 보단 릴레이티브 레이아웃으로 쓰시면 될것 같아요.