ГМ
Size: a a a
ГМ
РП
Na
РП
Na
ГМ
П
П
I
CF
I
<?xml version="1.0" encoding="utf-8"?>gradient.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<Button
android:id="@+id/button"
android:layout_width="250dp"
android:layout_height="60dp"
android:background="@drawable/gradient"
android:text="Button"
android:textAllCaps="false"
android:textColor="@color/white"
android:textSize="20sp"
app:backgroundTint="@null" />
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<gradient
android:startColor="#FF0000"
android:endColor="#00FF00"
android:type="linear"/>
<corners android:radius="5dp"/>
</shape>L
I
android:background="@drawable/gradient" эффект нажатия пропадаетI
L
OG
L
OG
OG
ОА