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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T09:29:25+00:00 2026-06-16T09:29:25+00:00

As shown in the image i want to reduce the gap between two rows

  • 0

As shown in the image i want to reduce the gap between two rows (marked by red color) so that my edit text appears just below the text.

enter image description here

My code

<TableRow
    android:id="@+id/tableRow1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:padding="2dip" > 
      <TextView
          android:id="@+id/textView1"
          android:text="@string/projectName"
          android:textSize="16sp"
          android:textAppearance="@string/projectName" 
          android:textColor="@color/text_color"/>           
</TableRow>

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

     <EditText
         android:id="@+id/editText"
         android:layout_width="0dp"
         android:layout_height="35dp"
         android:inputType="text"            
         android:singleLine="true" 
         android:background="@drawable/editbox_background_normal"
         android:layout_weight="1"
         android:padding="5dip"
         />

</TableRow>  
      </TableLayout>
  • 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-16T09:29:26+00:00Added an answer on June 16, 2026 at 9:29 am

    Get rid of all those paddings

       android:padding="2dip"
       android:padding="5dip"
    

    You can use padding left and right instead.

    Try this

    <TableRow
        android:id="@+id/tableRow1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
     > 
          <TextView
              android:id="@+id/textView1"
              android:text="@string/projectName"
              android:textSize="16sp"
              android:textAppearance="@string/projectName" 
              android:textColor="@color/text_color"/>           
    </TableRow>
    
    <TableRow
        android:id="@+id/tableRow2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
    >        
    
         <EditText
             android:id="@+id/editText"
             android:layout_width="0dp"
             android:layout_height="35dp"
             android:inputType="text"            
             android:singleLine="true" 
             android:background="@drawable/editbox_background_normal"
             android:layout_weight="1"
             />
    
    </TableRow>  
          </TableLayout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

HA ii everybody,i want to customize the table-view cell like the image shown below,that
I defined two CSS classes that set the background to an image (shown below).
I want the output as shown in below image This is a Sikh holy
i can capture image using avfoundation.framework as shown in AVCam Demo but i want
I want to show the image that mobile phone's camera its taking on a
I want to show an image on my report if that image exists in
Hi I want to hit one URL that show an image in half page
I want to switch the image shown in an NSImageView , but I want
I'm developing a game in which I want my image to reduce in size
scenario: I want to do an ajax call to update the image shown. Example:

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.