android - Space between TextInputLayout and SoftKeyboard -
i have textinputedittext inside textinputlayout. inside appcompactdialog custom layout. have space between keyboard , edittext issue cant see live counter when user typing. counter hidden behind keyboard , not visible while user typing. want user see counter while typing.
note:
the linearlayout defined below @ bottom of dialog layout. dialog has flag adjust_pan set
paymentreasondialog.getwindow().setsoftinputmode(windowmanager.layoutparams.soft_input_adjust_pan);
here layout -
<linearlayout android:id="@+id/otherpaymentreasonlayout" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/divider3" android:layout_marginleft="20dp" android:layout_marginright="20dp" android:clickable="true" android:onclick="handleotherpaymentreasonclick" android:orientation="horizontal" android:paddingtop="@dimen/paddingbottomforselectablelayout" android:paddingbottom="10dp" android:layout_marginbottom="42dp" android:paddingleft="-6dp"> <android.support.v7.widget.appcompatradiobutton android:id="@+id/paymentotherreasonradiobutton" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_margintop="5dp" android:layout_weight="1" android:clickable="false" android:scalex="0.8" android:scaley="0.8" android:theme="@style/apptheme.myradiobutton" /> <android.support.design.widget.textinputlayout android:id="@+id/textpaymentreasonlayout" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="6" android:clickable="true" app:counterenabled="true" app:countermaxlength="40"> <android.support.design.widget.textinputedittext android:id="@+id/textpaymentreason" android:layout_width="match_parent" android:layout_height="wrap_content" android:imeoptions="actiondone" android:textsize="15sp" android:maxlength="40" android:inputtype="textnosuggestions" android:hint="@string/pay_other" android:paddingtop="5dp" android:paddingbottom="5dp" android:background="@android:color/transparent"/> </android.support.design.widget.textinputlayout> </linearlayout> here things i've tried.
1) i've tried setting paddingbottom of edittext 5dp or 10dp. increases space between edittext , soft keyboard counter still not visible.
Comments
Post a Comment