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

  • Home
  • SEARCH
  • 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 8331161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:19:59+00:00 2026-06-09T02:19:59+00:00

how can i highlight the border of the tablelayout… im using roundshape.xml which has

  • 0

how can i highlight the border of the tablelayout…
im using roundshape.xml which has shape as a background there must be some way by which i can give the border around your tablelayout…

roundshape.xml

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle" >

    <corners android:radius="5dip" />

    <gradient
        android:angle="270"
        android:endColor="@color/WhiteSmoke"
        android:startColor="@color/WhiteSmoke"
        android:type="linear" />

</shape>

WhiteSmoke =#F5F5F5

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" >

    <TableLayout
        android:layout_width="400dp"
        android:layout_height="400dp"
        android:background="@drawable/roundshape"
         >

        <TableRow
            android:id="@+id/tableRow1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" >

        </TableRow>

        <TableRow
            android:id="@+id/tableRow2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" >
        </TableRow>

        <TableRow
            android:id="@+id/tableRow3"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" >
        </TableRow>

        <TableRow
            android:id="@+id/tableRow4"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" >
        </TableRow>
    </TableLayout>

</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-09T02:20:00+00:00Added an answer on June 9, 2026 at 2:20 am

    i think this might help u.. go through code u will figure out the trick

    <?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" >
    
        <TableLayout
            android:layout_width="400dp"
            android:layout_height="400dp"
            android:background="@drawable/roundshape" >
    
            <TableRow
                android:layout_width="fill_parent"
                android:layout_height="1px"
                android:background="#ff9" >
    
                <TextView
                    android:layout_width="fill_parent"
                    android:layout_height="1px"
                    android:text="" />
            </TableRow>
    
            <TableRow
                android:id="@+id/tableRow1"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" >
    
                <TextView
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:text="this is amazing" />
            </TableRow>
    
            <TableRow
                android:layout_width="fill_parent"
                android:layout_height="1px"
                android:background="#ff9" >
    
                <TextView
                    android:layout_width="fill_parent"
                    android:layout_height="1px"
                    android:text="" />
            </TableRow>
    
            <TableRow
                android:id="@+id/tableRow2"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" >
    
                <TextView
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:text="this is amazing" />
            </TableRow>
    
            <TableRow
                android:layout_width="fill_parent"
                android:layout_height="1px"
                android:background="#ff9" >
    
                <TextView
                    android:layout_width="fill_parent"
                    android:layout_height="1px"
                    android:text="" />
            </TableRow>
    
            <TableRow
                android:id="@+id/tableRow3"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" >
    
                <TextView
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:text="this is amazing" />
            </TableRow>
    
            <TableRow
                android:layout_width="fill_parent"
                android:layout_height="1px"
                android:background="#ff9" >
    
                <TextView
                    android:layout_width="fill_parent"
                    android:layout_height="1px"
                    android:text="" />
            </TableRow>
    
            <TableRow
                android:id="@+id/tableRow4"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" >
    
                <TextView
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:text="this is amazing" />
            </TableRow>
    
            <TableRow
                android:layout_width="fill_parent"
                android:layout_height="1px"
                android:background="#ff9" >
    
                <TextView
                    android:layout_width="fill_parent"
                    android:layout_height="1px"
                    android:text="" />
            </TableRow>
        </TableLayout>
    
    </LinearLayout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using miglayout to create a form in which there are JTextFields (short
I am using Django's modelform and its really good. How can I highlight the
I want to know how I can make a row highlight using html, css,
I have a JTable where I want to highlight some rows using a custom
Can anyone enlighten me to a way I can Highlight the content of an
I know you can highlight an entire row or a word, but I am
I'm trying to write a Google chrome extension so that I can highlight text
How can I highlight exactly one item (particularly a line on the x axis)
Google Maps itself can sort of Highlight areas, when you are searching for example
I want to make a uiview that can be aware of highlight status, like

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.