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 6598531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:21:43+00:00 2026-05-25T18:21:43+00:00

I am having issues with layout for Xoom Tablet. Basically, I want one fragment

  • 0

I am having issues with layout for Xoom Tablet. Basically, I want one fragment (ListView) on the left side and the other fragment right to the ListView Fragment. But, I am having two issues on this.

Firstly, I dont want to hard code the android:layout_width for the listview fragment which is set to 200dip (Refer code below). I tried wrap_content, fill_parent but it didnt work for me.

Secondly, this UI is not rendered on the whole screen. Its only capturing a small portion of the whole tablet screen. Even hard coding from fill_parent to other values din’t have any effect.

The code is as shown below. I would really appreciate any sort of help on this problem.

~Thank you !!

<?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>
  • 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-25T18:21:43+00:00Added an answer on May 25, 2026 at 6:21 pm

    instead of hardcoding you can set the layout weight of each framelayout. ie

    <?xml version="1.0" encoding="utf-8"?>
        <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="horizontal"
        android:layout_width="match_parent" 
        android:layout_height="match_parent">
    
       <FrameLayout 
        android:id="@+id/items_layout" 
        android:layout_weight="1"
          android:layout_width="0px" 
          android:layout_height="match_parent"
          android:background="?android:attr/detailsElementBackground" />
    
       <FrameLayout 
        android:id="@+id/details_layout" 
        android:layout_weight="2"
          android:layout_width="0px" 
          android:layout_height="match_parent"
          android:background="?android:attr/detailsElementBackground" />
    

    Not sure why your UI isn’t taking up the entire screen. Are you supporting largeScreens, there is a setting in the manifest.

    <supports-screens 
        android:resizeable="true" 
        android:smallScreens="true" 
        android:normalScreens="true" 
        android:largeScreens="true"  
        android:anyDensity="true">
    </supports-screens>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to layout a web site but right away am having issues
I'm trying to put together this layout... ... but I'm having issues with the
http://www.goodshow.tv I'm having issues with the background image. The layout looks right if the
Having CSS layout issues with Internet Explorer 7 (big surprise). Upon using the Developer
I am having some serious issues trying to tweak my layout in a table.
I'm having some issues with this layout and having a link that displays on
I'm having issues centering a floating button between two other floating buttons. It looks
I am designing an Android app and I'm having a couple of layout issues.
I'm having issues getting the customer.xml layout file to work properly for the customer's
IE6 is giving me issues of course. I'm having problems with my layout using

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.