2
この場所をタッチすると、EditTextでMy TextInputLayoutが減少しています。
私はこの同じサイズのEditTextが必要な場合は何を修正すべきか、スクリーン上にキーボードを追加する必要があるのか2つの質問があります。ユーザータッチでTextInputLayoutが減少しています
のxml:あなたの最初の質問のための
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="pl.xd.hello.WeatherActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="6"
android:orientation="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="horizontal">
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Podaj miejscowość" />
</android.support.design.widget.TextInputLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="4"
android:gravity="center"
android:orientation="horizontal">
<android.support.design.widget.FloatingActionButton
android:id="@+id/floatingActionButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:clickable="true"
app:backgroundTint="@android:color/holo_red_dark"
app:fabSize="mini"
app:srcCompat="@drawable/ic_check_circle_black_24dp" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="horizontal">
<ListView
android:id="@+id/weatherListView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
</LinearLayout>
wrap_contentへmatch_parentからの変更は、エディットテキストは、まだタッチした後に低下している何の助けを、なかった – philips
もし私が体重を変えたら、ちょうど場所がありますが、とにかくサイズが変わっています。 – philips
"体重"が増減しても差はありません。いつも変わってしまいます。( – philips