i am creating a chat app like whatsapp on my chatting screen i have edittext where user can enter his message. i want to expand its height to max 4 line then if text exceed to 5th line the edittext have to scroll down showing new line. sometimes it work but sometimes edit text doesnot scroll down.
<com.vanniktech.emoji.EmojiEditText
android:id="@+id/enter_msg_txt"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="9.2"
android:background="@null"
android:hint="@string/type_message"
android:maxHeight="100dp"
android:minHeight="30dp"
android:singleLine="false"
android:textSize="@dimen/btn_text" />
i had already search alot and check with these properties
android:inputType="textMultiLine"
android:editable="true"
android:enabled="true"
android:minLines="1"
android:maxLines="6"
android:isScrollContainer="true"
but still no luck. i think there is may be some rendering issue