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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:29:28+00:00 2026-05-19T02:29:28+00:00

How can I use any layout in .xml files. Let I want to use

  • 0

How can I use any layout in .xml files. Let I want to use Tablelayout, so I dragged it on Graphical Layout of an xml file, and then I want that layout should be in two columns ( if I want add “Name : ” in first column and “EditText” in another column.) but I am anable to do it.I am using Graphical layout. I want do like

Name : EditText (A textbox for Name entry)
Age  : EditText (A textbox for Age entry)

              Button (to save user entry)

How to design it.

  • 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-19T02:29:28+00:00Added an answer on May 19, 2026 at 2:29 am
    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:isScrollContainer="true"
    >
    
        <EditText
            android:id="@+id/et_name"
            android:layout_height="wrap_content"
            android:layout_width="fill_parent"
    
            android:visibility="visible"
            android:maxLines="1"
            android:nextFocusDown="@+id/mark"/>
    
        <EditText
            android:id="@+id/et_age"
            android:layout_height="wrap_content"
            android:layout_width="fill_parent"
            android:inputType="numberDecimal"
    
            android:visibility="visible"
            android:maxLength="3"
            android:maxLines="1"/>
    
        <Button
            android:id="@+id/btn_save"
            android:text="@string/save"
            android:layout_width="fill_parent"
            android:onClick="onButtonClick"
            android:layout_height="wrap_content"
            android:enabled="false" />
    
    </LinearLayout>
    

    Put this into your XML
    There you go 😉

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

Sidebar

Related Questions

Is there any way that I can use C# to load and then render
I'm building a website that requires very basic markup capabilities. I can't use any
What regular expression can I use (if any) to validate that a given string
Is there any magic tools i can use to scan source code that was
Are there any free tools that I can use to convert a PDF document
Is there any way I can use a KMZ file in Google Maps? My
I have a custom xml file for my listview and then I use an
I think I can use any object to be synchronized as block such as:
I have a streaming input which has repeated values. I can use any data
Can i use any joomla plugin like visg in my component ? if yes

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.