화면의 하단에 레이아웃의 다른 뷰 요소 아래에 두 개의 버튼이있는 TableRow를 배치하려고하지만 거기에 배치하면 TableRow가 사라집니다 화면의. 나는 정상이나 중간에 아무런 문제가 없다.TableLayout을 사용하여 화면/레이아웃의 하단에 뷰 배치
나는 layout_gravity, 중력 및 무게 조합을 많이 시도했지만 얻을 수 없습니다. 사전에
감사합니다.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:gravity="center_horizontal"
android:text="@string/traza"
android:layout_margin="10sp"/>
<TableRow
android:id="@+id/tableRow8"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="3sp"
android:gravity="center"
android:weightSum="2" >
<Button
android:id="@+id/reiniciar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_margin="5sp"
android:background="@drawable/bordebutton"
android:text="@string/reiniciar" />
<Button
android:id="@+id/comprobar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_margin="5sp"
android:background="@drawable/bordebutton"
android:text="@string/comprobar" />
</TableRow>
<android.gesture.GestureOverlayView
android:id="@+id/gestures"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fadeEnabled="true"
android:fadeOffset="3000"
android:gestureStrokeType="multiple"
android:eventsInterceptionEnabled="true"
android:orientation="vertical"/>
</LinearLayout>
작동하지 않습니다. (04-21 17 : 05 : 06.363 : E/AndroidRuntime (20964) : java.lang.RuntimeException : 활동을 시작할 수 없습니다. ComponentInfo {es.hsk.ap/es.hsk.ap .juega.Trazos} : java.lang.ClassCastException : android.gesture.GestureOverlayView – Pelanes
그런 다음 레이아웃에서'android.gesture.GestureOverlayView'를 제거하고 프로젝트를 지운 다음 실행하십시오. 실제로 ** GestureOverlayView **를 레이아웃 자신이 이미 레이아웃에 언급되어 있습니다. 충돌이 발생하면 어떻게 실행 했습니까? – waqaslam
처음에 말했던 것처럼 LineaLayout을 RelativeLayout으로 변경하면 충돌이 발생합니다.이 뷰를 제거 할 수 없습니다. 필요합니다. 그리고 문제는 그렇지 않습니다. 중간에 다른 레이아웃을 사용하면 이미지 뷰 – Pelanes