EditText type Whatsapp

1

When entering text in the Edittext of whatsapp the keyboard is always positioned below Edittext , without covering what you type and this edittext increase in size depending on how much text is enter Does anyone have any idea how to do this?

I have an Edittext and a Button but basic

 <android.support.design.widget.FloatingActionButton
    android:id="@+id/fab"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="bottom|end"
    android:layout_alignParentBottom="true"
    android:layout_alignParentRight="true"
    android:layout_alignParentEnd="true"
    app:srcCompat="@android:drawable/ic_menu_send" />

<EditText
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:inputType="textPersonName"
    android:ems="10"
    android:layout_alignTop="@+id/fab"
    android:layout_toLeftOf="@+id/fab"
    android:layout_marginRight="17dp"
    android:layout_marginEnd="17dp"
    android:id="@+id/editText2" />
    
asked by Ashley G. 03.01.2017 в 20:11
source

1 answer

0

Example XML code:

<EditText
    android:id="@+id/edtInput"
    android:layout_width="0dip"
    android:layout_height="wrap_content"
    android:layout_weight="1"
    android:hint="@string/compose_hint"
    android:inputType="textCapSentences|textMultiLine"
    android:maxLength="2000"
    android:maxLines="4" />
    
answered by 04.01.2017 / 14:22
source