Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3443856
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:50:33+00:00 2026-05-18T08:50:33+00:00

I am building an Android app in which there is a list of items

  • 0

I am building an Android app in which there is a list of items in a gridview, and I would like the user to select any of them.I do not want to use a radio group/radios, but an icon and a name of the item next to it.

Once the user has selected something, I have three buttons at the bottom, back, cancel and set as default.

The problem is arranging this stuff so that it appears fine on a landscape mode as well as portrait mode.

Can someone suggest a good layout skeleton?

Here is the Android layout file content



<?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>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T08:50:34+00:00Added an answer on May 18, 2026 at 8:50 am

    Use Relative Layout,Click Here to know how to use Relative Layout.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building an android app in which I need to show the list
I am building an Android app in which user are required to choose a
I'm building an android app which requires me to prompt the user for his
I´m currently building an Android app, which tracks the user´s location. My aim is
Problem: I am building Android app in Eclipse which uses shared lib libgstreamer-0.10.so (GStreamer-android
I'm building a fairly simple Android app (sdk revision 14: ICS) which allows users
It is my first time building an android app. Was wondering firstly, if there
I'm building an android app which has a login and logout option. How do
Just starting out on android developing. To start off, I'm building an app which
I am building an android app for which I need to check the sync

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.