4
I have an activity with a EditText
to enter values. Whenever the keyboard appears, the editText
(the keyboard hides the EditText
).
I tried to put in the Manifest
in the relevant activity the following command:
android:windowSoftInputMode="adjustPan|adjustResize"
However the keyboard when it appears continues to hide the EditText
and I can’t see what’s written. The EditText
is this:
<EditText android:id="@+id/EditTextMeta1"
android:layout_height="70dp"
android:background="@drawable/edit_text_plafond2"
android:textSize="14dp"
android:paddingTop="30dp"
android:inputType="number"
android:layout_width="60dp"
android:gravity="right"
android:maxLength="4"/>
Anyone can help?
You tried to put inside
ScrollView
?– Vale
@Rodolfo only works if you’re inside a Scrollview?
– porthfind
I think so, because with
ScrollView
has as you see theEditText
– Vale
@porthfind try to remove
android:windowSoftInputMode="adjustPan|adjustResize"
from your manifesto and try again. I tested here and it worked (PS: I’m not usingScrollView
)– rsicarelli
@sicachester, works the first time I try to write, if for some reason I put the cursor to rewrite no longer scrolls "the screen", this is not normal because no?
– porthfind
You do not have a screenshot, or the code of the entire layout?
– Bruno Romualdo