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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T18:47:30+00:00 2026-05-29T18:47:30+00:00

I am a new newbie to android. Just wanna know how could we create

  • 0

I am a new newbie to android. Just wanna know how could we create the UI layout as similar to the image attached below. I have knowledge of creating basic layouts, please guide me with some sample code examples or any references that might help me.

I have label in the left side of each row and Spinner at right side. The number of rows to be present on the screen is to be decided dynamically as per the server response. So i cannot hard code the complete view in XML.

Any kind of help on this is highly appreciated. Thanks in advance.

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-05-29T18:47:33+00:00Added an answer on May 29, 2026 at 6:47 pm

    create your layouts as follows:

    <LinearLayout android:layout_width="fill_parent"
        android:layout_height="fill_parent">
        <LinearLayout android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:id="@+id/llTitle"
               android:background="#ffffff"
               android:gravity="center">
               <TextView android:layout_width="wrap_content"
                         android:layout_height="wrap_content"
                         android:text="Title">
         </LinearLayout>
         <LinearLayout android:layout_width="fill_parent"
                       android:layout_height="fill_parent"
                       android:background="#FF00FF">
                       <LinearLayout android:layout_width="fill_parent"
                                     android:layout_height="wrap_content"
                                     android:background="@drawable/customshape"
                                     amdroid:id="@+id/llContainer"/>
    
                       <Button android:layout_width="wrap_content"
                               android:layout_height="wrap_content"
                               android:text="button"
                               android:id/button1"/>
                 </LinearLayout>
    
         </LinearLayout>
    

    customshape.xml:

    <?xml version="1.0" encoding="UTF-8"?> 
    <shape xmlns:android="http://schemas.android.com/apk/res/android" 
         android:shape="rectangle"> 
         <gradient android:startColor="#SomeGradientBeginColor" android:endColor="#SomeGradientEndColor" 
                android:angle="270"/> 
    
        <corners android:bottomRightRadius="7dp" android:bottomLeftRadius="7dp" 
         android:topLeftRadius="7dp" android:topRightRadius="7dp"/> 
    </shape> 
    

    row.xml
    //create rox.xml to contain a textview and a spinner.

    in your activity loop to add views to llContainer

    LinearLayout llContainer=(LinearLayout)findViewById(R.id.llContainer);
    for(int i0;i<list.size();i++)
    {
          LinearLayout llView=inflater.inflate(R.layout.row, null);
          //set attributes of textview and spinner
          llContainer.addView(llView);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am newbie to android don't know much about it. I have imported a
I'm a newbie Android App Developer, also new with xml. I was just wondering
Extreme Android developer newbie here...well, new to Android development, not development in general. I
I'm new to Magento so sry if it's a newbie question. I have a
I'm brand new to SQL Server 2008, and have some newbie questions about the
I'm new in Android development and I have been making a tutorial for a
I am a newbie in Android and I'm just trying to permanently store a
My Google-Fu is failing this Android newbie today. Does anybody know of a good
I am a newbie in android world. I tired to create a android project
I am new to android first of all so think of any newbie mistakes

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.