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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:37:38+00:00 2026-06-11T00:37:38+00:00

I use a multi-column list-view to display data as like a grid, but I

  • 0

I use a multi-column list-view to display data as like a grid, but I want a list-view with user-defined columns and rows with borders. Suggestions?

main.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >

<ListView
    android:id="@+id/listView1"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" >
</ListView>

 </LinearLayout>

main1.xml

<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout android:orientation="horizontal" 
android:layout_height="wrap_content" 
android:layout_width="fill_parent" 
xmlns:android="http://schemas.android.com/apk/res/android">

<TextView
    android:id="@+id/cust"
    android:layout_width="70dp"
    android:layout_height="70dp"
    android:text="customer" />

<TextView
    android:id="@+id/order"
    android:layout_width="70dp"
    android:layout_height="70dp"
    android:text="order" />

<TextView
    android:id="@+id/freight"
    android:layout_width="70dp"
    android:layout_height="70dp"
    android:text="freight" />

<TextView
    android:id="@+id/station"
    android:layout_width="70dp"
    android:layout_height="70dp"
    android:text="station" />

</LinearLayout>
  • 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-11T00:37:40+00:00Added an answer on June 11, 2026 at 12:37 am

    Method one :

    1) implement a custom adapter

    2) in the getview() method, set a background (with border) to the view before returning it.

    Method two:

    use ArrayAdapter

    1) make an xml file which cointains a TextView with a background(which has a border)

    2) pass the reference to this xml to the ArrayAdapter

    Here’s a tutorial, in case you don’t know what i’m talking about.

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

Sidebar

Related Questions

I have a list view with multi columns... Want to change the background color
I would like to create a multi-column list of checkboxes, but here's the catch
I'd like to sort multi-column list without using a table. I know of solutions
I'm trying to use CSS3 multi-column column layout in my android application using WebView,
I use a QTreeWidget to display multicolumn items, and I want to have a
I'm working on an Android app in which I would like to use multi-touch.
A data structure that I use commonly in multi-threaded applications is a ConcurrentHashMap where
I'd like to fill a multi-column System.Windows.Forms.ListView with the items I've stored in a
I'm hoping to display a multi-valued column in a tabular UI format. By multi-valued
In my Lazarus/Free Pascal application I generate a large multi-column numerical matrix. I want

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.