2
I have the following layout for color, set in background
of LinearLayout
:
background.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="270"
android:centerColor="#7cf1db"
android:endColor="#831f51"
android:startColor="#038068"
android:type="linear" />
</shape>
Upshot:
But when you select an Edittext and the keyboard triggered, the background color "goes up":
I would like to leave this background fixed, without this "resizing" when opening the keyboard.
It worked ! Just complementing, would have to put in all
<activity>
manifest or there is a way that aggregates in all ?– rbz
You can put the same code between the tags
<application>
. Something like that:<application android:windowSoftInputMode="adjustPan" </application>
– Zulian
In the
<application>
didn’t work no.– rbz
Really, looking at the possible tag flags
<application>
, towindowSoftInputMode
is not found. So the expected way is to include in all your<activity>
.– Zulian