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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:38:13+00:00 2026-06-05T21:38:13+00:00

I have two questions. How can I get the spinner in the figure below

  • 0

I have two questions.

  1. How can I get the spinner in the figure below closer to the text?

enter image description here

I use the following xml layout

<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:weightSum="4">   

    <TextView
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:text="Check by" 
        android:layout_weight="1"
        android:textSize="20dp"/>

    <Spinner
        android:id="@+id/CheckBy"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:textSize="20dp" 
        android:enabled="false"/>

    <TextView
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:text="Outcome"
        android:layout_weight="1"
        android:textSize="20dp"/>

    <Spinner
        android:id="@+id/Outcome"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:textSize="20dp" 
        android:enabled="false"/>

</LinearLayout>
  1. How can I change the text of the enter button, as in the below figure, and assign an action to be performed when it is clicked?

enter image description here

  • 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-06-05T21:38:15+00:00Added an answer on June 5, 2026 at 9:38 pm

    1) For the layout design use below code –

    <LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        >
    
    
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Check by" 
            android:textSize="20dp"
    
    
            />
    
        <Spinner
            android:id="@+id/CheckBy"
            android:layout_marginLeft="5dp"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textSize="20dp" 
            android:enabled="false"
    
           />
    
        <TextView
            android:layout_width="wrap_content"
            android:layout_marginLeft="5dp"
            android:layout_height="wrap_content"
            android:text="Outcome"
            android:textSize="20dp" 
    
             />
    
        <Spinner
            android:id="@+id/Outcome"
            android:layout_marginLeft="5dp"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textSize="20dp" 
            android:enabled="false" 
    
           />
    
    
    </LinearLayout>
    

    Simply remove the weightsum and give the wrap_content as width.

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

Sidebar

Related Questions

I have two questions: How can I get current year (not date) in haskell
I have two questions: 1) How can I get the IP address, and any
I have two questions. How can I get the SQLite Db to store data?
I have two questions here. How can I show the header of the pop
I have two questions. Question1: How can we add a reference to a third-party
I have two questions. My first one is, that how can i put something
I have two questions on markup below: <Popup> <Button x:Name=button/> </Popup> Why does VisualTreeHelper.GetParent(button)
I develop my first application for WP7. I have two questions : How can
I am new to Object C, and I have two questions but I can
I have two questions regarding client-side validation in ASP, relating to the following setup:

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.