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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:15:37+00:00 2026-05-28T00:15:37+00:00

I really don’t like asking about these little issues, but after diggin for hours,

  • 0

I really don’t like asking about these little issues, but after diggin for hours, it looks like a dead end.

I’m having a strage issue with a EditText in Android. It is very basic and no styles appplied to it.

The problem is that if I start typing on it, when it reaches the last maximum width, instead of adding a newline it “expands” the EditText width magically and lets me insert about 10 or 12 characters before actually adding a new line. Obviously all those 10-12 characters are “out of sight”. I really don’t know why this is happening, any help will be very welcome!

Here is my layout:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:gravity="center_horizontal"
    android:background="@drawable/fondo_localizacion">

    <TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal" 
        android:layout_margin="5dp"
        android:stretchColumns="1">

        <TableRow >
        <TextView
    android:id="@+id/locationNameLabel"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                style="@style/LabelLocalizacion"
                android:gravity="center_vertical"
                android:text="@string/nombre_label">
            </TextView>
            <EditText 
                android:id="@+id/locationName"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                >
            </EditText>     
        </TableRow>
        <!-- La segunda fila tiene el par desc y su valor -->
        <TableRow >
            <TextView
                android:id="@+id/locationDescLabel"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                style="@style/LabelLocalizacion"
                android:gravity="center_vertical"
                android:text="@string/desc_label">
            </TextView>
            <EditText 
                android:id="@+id/locationDesc"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                >
            </EditText>     
        </TableRow>

        <TableRow >
            <TextView
                android:id="@+id/locationPicLabel"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                style="@style/LabelLocalizacion"
                android:gravity="center_vertical"
                android:text="@string/imagen_label">
            </TextView>
        </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-05-28T00:15:38+00:00Added an answer on May 28, 2026 at 12:15 am

    Try to give height and width to Table Row tag remove android:stretchColumns=”1″ from tablelayout and put weight of edittext to 1 you can using this layout after modify

             <TableRow
             android:layout_width="fill_parent"
              android:layout_height="wrap_content" >
    
            <TextView
            android:id="@+id/locationNameLabel"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="center_vertical"
            android:text="gfg" >
            </TextView>
    
        <EditText
            android:id="@+id/locationName"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:hint="hjhj" >
           </EditText>
         </TableRow>
         <!-- La segunda fila tiene el par desc y su valor -->
    
           <TableRow
          android:layout_width="wrap_content"
           android:layout_height="wrap_content" >
    
           <TextView
            android:id="@+id/locationDescLabel"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="center_vertical"
            android:text="yuiuy" >
          </TextView>
    
        <EditText
            android:id="@+id/locationDesc"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1" >
        </EditText>
    </TableRow>
    
    <TableRow
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" >
    
        <TextView
            android:id="@+id/locationPicLabel"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="center_vertical"
            android:text="" >
        </TextView>
    </TableRow>
    

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

Sidebar

Related Questions

As a developer I really don't like writing documentation but when I have to
I know that the naming conventions really don't say anything about that, but I
Simple question: I really like the idea of encapsulation, but I really don't know
I really don't like the VS2008 Start Page. I don't need the RSS reader,
I really don't know how to describe it, but if you understood it and
I'm relatively new to Objective-C and really don't know much about it yet, so
I am re-designing an application for a ASP.NET CMS that I really don't like.
I really don't like the concept of opening my SQL server(s) to the internet
I really don't understand what I'm doing wrong, but according to Adobe, this is
I really don't like this style of formatting: Class AwesomeClass { private static void

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.