1
Xoom Tablet의 레이아웃에 문제가 있습니다. 기본적으로, 하나의 조각 (ListView) 왼쪽 및 ListView 조각 바로 다른 조각 싶습니다. 그러나 이것에 대해 두 가지 문제가 있습니다.Xoom Tablet의 상대 레이아웃 문제
먼저, 200dip (아래 코드 참조)으로 설정된 listview 조각에 대해 android : layout_width를 하드 코딩하고 싶지 않습니다. wrap_content, fill_parent 시도했지만 그것은 나를 위해 일을 못했습니다.
둘째,이 UI는 전체 화면에 렌더링되지 않습니다. 그것만이 전체 태블릿 화면의 작은 부분을 캡처합니다. fill_parent에서 다른 값으로의 하드 코딩조차도 효과가 없습니다.
코드는 다음과 같습니다. 이 문제에 대한 도움을 주시면 감사하겠습니다.
~ 감사합니다.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" android:layout_width="match_parent"
android:layout_height="match_parent">
<fragment class="com.example.android.apis.app.FragmentLayout$TitlesFragment"
android:id="@+id/titles" android:layout_width="200dip"
android:layout_alignParentLeft="true"
android:layout_height="match_parent" />
<FrameLayout android:id="@+id/details"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
android:layout_toRightOf="@id/titles"
android:background="?android:attr/detailsElementBackground" />
</RelativeLayout>
답장을 부탁드립니다. – user720986