この小さな問題について質問するのは本当に好きではありませんが、数時間digginした後は枯れてしまいます。新しい行を追加する前にEditTextに文字が入力されていない
AndroidのEditTextに問題があります。それは非常に基本的であり、スタイルはそれに適用されません。
問題があるのは、最後の最大幅に達したときに改行を追加するのではなく、EditTextの幅を魔法のように「拡大」して、実際に新しいライン。明らかに、それらの10〜12文字はすべて「見えない」。私は本当になぜこれが起こっているのかわからない、どんな助けも大歓迎!ここで
は私のレイアウトです:
<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>
どのEditTextに問題がありますか? – Ian
私は両方のためにそれを持っていた、残念なことに、@ loksのソリューションは素晴らしい仕事、とにかく尋ねてくれてありがとう:) – AlejandroVK