I have the following color layout, set to 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>
Result:
ButwhenanEditTextisselectedandthekeyboardispressed,thebackgroundcolor"goes up":
Iwouldliketoleavethisbackgroundfixed,withoutthis"resizing" when opening the keyboard.