2010-12-04 10 views
0

gridview에 항목 목록이있는 Android 앱을 구축 중이며 사용자가 그 중 하나를 선택하고 싶습니다. 라디오 그룹/라디오를 사용하고 싶지는 않지만 아이콘 및 그 옆에있는 항목의 이름.Android 레이아웃 제안 필요

일단 사용자가 무언가를 선택하면 맨 아래, 뒤로, 취소 및 기본값으로 세 개의 버튼이 있습니다.

가로 모드와 세로 모드에서 문제가 발생하지 않도록 문제가 있습니다.

누군가 좋은 레이아웃 해골을 제안 할 수 있습니까?

여기에 상대 레이아웃을 사용하는 방법을 알 수있는 안드로이드 레이아웃 파일 내용



<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:id="@+id/widget30"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
>
<GridView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/GridView01"
android:layout_width="fill_parent"
android:layout_height="370dip"
android:numColumns="auto_fit"
android:stretchMode="columnWidth"
android:layout_alignParentTop="true"
android:gravity="center">
</GridView>

<Button
android:id="@+id/back"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=" Back "
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_below="@+id/GridView01"

>
</Button>

<Button
android:id="@+id/setDefault"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=" Set as Default "
android:layout_alignParentBottom="true"
android:layout_toLeftOf="@+id/cancel"
android:layout_below="@+id/GridView01"
>
</Button>
<Button
android:id="@+id/cancel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=" Cancel "
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_below="@+id/GridView01"
>
</Button>
</RelativeLayout>

답변

0

을 사용하여 상대 레이아웃, Click Here입니다.

+0

안녕하세요 상 카, 절대 레이아웃을 사용했습니다. 레이아웃 자체에 대해 더 많은 도움을 요청하십시오. – Rupin