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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:36:37+00:00 2026-05-18T01:36:37+00:00

i am doing an xml layout file, and i want to have my spinner

  • 0

i am doing an xml layout file, and i want to have my spinner in the right of a textview, but i am having problems… when i test the layout, my spinner is not in the correct possition, it’s a little more down and it haves very small lenght, is not 180px as i said in the layout.

there is the xml:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">

<TextView
    android:id="@+id/PermissionLabel"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/perlabel"
    android:layout_marginLeft="15dip"
    android:layout_below="@id/salto3"/>
<Spinner 
    android:id="@+id/Permission"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:prompt="@string/perlabel"
    android:layout_alignBaseline="@id/PermissionLabel"
    android:layout_alignParentRight="true"
    android:width="180px"
    android:layout_marginRight="20dip"/>
<TextView 
    android:id="@+id/salto4"
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="@string/saltodelinea2"
    android:layout_below="@id/PermissionLabel"/>
<TextView
    android:id="@+id/HoursRangeLabel"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/hoursrangelabel"
    android:layout_below="@id/salto4"
    android:layout_marginLeft="15dip"/>
<EditText
    android:id="@+id/From"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text=""
    android:layout_alignBaseline="@id/HoursRangeLabel"
    android:width="70px"
    android:layout_alignLeft="@id/Email"
    android:layout_marginRight="20dip"/>
<TextView
    android:id="@+id/ToLabel"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/tolabel"
    android:layout_alignBaseline="@id/From"
    android:layout_toRightOf="@id/From"
    android:layout_marginLeft="-10px"/>
<EditText
    android:id="@+id/To"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text=""
    android:layout_alignBaseline="@id/From"
    android:width="70px"
    android:layout_marginRight="20dip"
    android:layout_alignParentRight="true"/>

  • 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-18T01:36:38+00:00Added an answer on May 18, 2026 at 1:36 am

    Is it really necessary that all items in your layout are “Relative” to each other? It sure doesn’t appear that way from the properties you set on each item.

    I would recommend trying something like a LinearLayout, and then if it is critical a certain item is Relative to another item, use a RelativeLayout inside the LinearLayout for those particular items.

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

Sidebar

Related Questions

I have an xml layout file which contains a few widgets including a Spinner
I'm having difficulty doing this seemingly simple task. I want to load XML files
I've created a layout.xml file with the following XML, but I can't get the
We have to compare responses (XML) of two different but they are doing the
I want to inflate a XML-Layout-File in a custom ViewGroup Class, my Problem is
I have dialog layout xml file which stores button, and I have set android:onClick=doSomething
I have a few EditText fields in the same XML layout file, I'm using
I will be doing an occiasional import from XML into core data. I have
I am doing a test project to learn about XML serialization of an object,
I have the following code in my XML file: <LinearLayout android:layout_width=fill_parent android:layout_height=60dip android:layout_marginLeft=13dp android:layout_marginRight=13dp

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.