Hi,
So I am using AutosizeEditText library https://github.com/txusballesteros/AutosizeEditText/issues/2 in my app and for some reason this library does not work with return (enter) key on SwiftKey. It works on Google Standard. I've added an issue to the library, but it seems quite dead.
Is this something you possibly can look into, or maybe someone else who has any input on this?
After logging keyEvent for KEYCODE_ENTER it seems to trigger on SwitftKey, as on standard, but it does not create a new line, so the issue lies in the library somehow, but it shouldn't affect the result as same key event is triggered so it should have the same result.
Glad for input on this.
mMsgET.setOnKeyListener(new View.OnKeyListener() {
@Override
public boolean onKey(View v, int keyCode, KeyEvent event) {
if (event.getAction() == KeyEvent.ACTION_UP && keyCode == KeyEvent.KEYCODE_ENTER) {
Timber.v("TRIGGER EVENT CREATE NEW ROW");
return true;
}
return false;
}
});
xml
<com.txusballesteros.AutoscaleEditText
android:id="@+id/upload_msg_label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/upload_recycler_bottom_divider"
android:layout_marginEnd="@dimen/upload_label_margin"
android:layout_marginLeft="@dimen/upload_label_margin"
android:layout_marginRight="@dimen/upload_label_margin"
android:layout_marginStart="@dimen/upload_label_margin"
android:layout_marginTop="@dimen/activity_vertical_margin"
android:capitalize="sentences"
android:hint="@string/upload_add_msg"
android:imeActionLabel="@string/tyra_next"
android:imeOptions="actionNext"
android:textColor="@android:color/black"
android:textCursorDrawable="@null"
android:textSize="@dimen/upload_msg_text_size"
app:animationDuration="200"
app:linesLimit="@integer/upload_lines_limit"
app:textScale="0.90" />