TextView
이후에 에 Button
을 추가하려고하는데 표시되지 않습니다.버튼이 LinearLayout에 표시되지 않습니다.
여기 내 레이아웃 코드
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout01"
android:layout_width="fill_parent"
android:layout_height="45dip">
<TextView android:layout_width="fill_parent"
android:layout_height="45dip"
android:paddingLeft="5dip"
android:paddingRight="5dip"
android:textStyle="bold"
android:textSize="17dip"
android:gravity="center_vertical"
android:id="@+id/tvChild"
android:text="Children"
android:textColor="#ffCCCC22" />
<Button android:id="@+id/submit"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:text="Submit" />
</LinearLayout>
TextView
입니다 적절한 텍스트를 제대로 표시되지만 대신 Button
내가 3 ~ 4 줄의 길이의 큰 빈 공간을 얻고있다.
무엇이 누락 되었습니까?
변경 안드로이드의 : layout_width = "wrap_content" 또는 당신의 LinearLayout 태그에서 안드로이드를 추가를 : 텍스트 뷰는 안드로이드의 layout_width = "fill_parent" 방향 = "수직" –
고마워요. Kartik .. 작동했습니다. – Codemator