나는 this을 시도했습니다. 나는 이런 식으로 할 계획 :레이아웃 무게로 작업하는 것이 더 나은 방법
을하지만이 방법으로 보여주는 :
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<TextView
android:id="@+id/tvHiragana"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hiragana"
android:layout_weight="2"
android:textSize="22sp" />
<TextView
android:id="@+id/tvKanji"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Kanji"
android:textColor="@color/redColor"
android:layout_weight="1"
android:textSize="20sp" />
</LinearLayout>
나는이 글은 올바른 작동하도록해야 할 일 layout_weight의 조건? TextView에서 새로운 줄을 만드는 것을 피하는 방법?
먼저 가로 레이아웃으로 가중치를 사용하는 경우 너비는 0dp이어야합니다. –
레이아웃 또는 텍스트 뷰에 0dp를 넣어야하는 위치는 어디입니까? –
'TextView'에는 각각 'android : layout_width = "0dp"가 있어야합니다. – codeMagic