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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:47:15+00:00 2026-05-26T17:47:15+00:00

I need to create a very small ListView. Each row could have a different

  • 0

I need to create a very small ListView. Each row could have a different element floated on the right. For example, the top row will have a checkbox and the last row will have a disclosure arrow. It’s pretty similar to the ListView that the Settings app has, where each row has a different accessory.

Row 1     []
-------------
Row 2    123
-------------
Row 3    abc
-------------
Row 4      >

I don’t think I can use a ListAdapter because it forces the rows to be homogenous. And since I’m only gong to have 4 rows, I’d rather just manually write the XML for each row. I couldn’t find out what the child rows of ListViews are called. On iPhone, the UITableViewCell is the child of UITableView. On Android, I did not find such a ListViewCell or ListViewRow.

  • 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-26T17:47:15+00:00Added an answer on May 26, 2026 at 5:47 pm

    You can use TableLayout..

         <TableLayout 
         android:layout_width="fill_parent" 
         android:layout_height="fill_parent" 
         xmlns:android="http://schemas.android.com/apk/res/android">
        <TableRow>
        <Button 
            android:id="@+id/backbutton"
            android:text="Back"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />
               <View
               android:layout_height="2dip"
               android:background="#FF909090" />//this view will help you to draw line so table layout will look like listview
    
    </TableRow>
    <TableRow>
        <TextView
            android:text="First Name"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_column="1" />
            <EditText
            android:width="100px"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />
               <View
                android:layout_height="2dip"
                android:background="#FF909090" />
    </TableRow>
    <TableRow>
        <TextView
            android:text="Last Name"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_column="1" />
            <EditText
            android:width="100px"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" /> 
                <View
                android:layout_height="2dip"
                android:background="#FF909090" />
    </TableRow>
    

    Instead of EditText you can use component like checkbox. with the id of corresponding checkbox you can perform process according to you.. I think it may help you..

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

Sidebar

Related Questions

i have very simple problem. I need to create model, that represent element of
I need a very simple and clear example of how to create an OCX
I need to create a very small add-in for MS Word 2007 which needs
I need to create a super small web interface which I could use to
Sometimes you need to create a very simple single file application in Qt4. However
I'm very new at this, but I need to create new tables from existing
I need to create an XML schema that looks something like this: <xs:element name=wrapperElement>
I need to implement a very small plugin architecture.I am new to MEF so
I have a table in MS Access database and need to create a query
I going through a simple tutorial to create a very small android app in

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.