私はmarshmallowデバイスグラジエントを実行したときにactivity_main.xmlにグラジエントを適用しましたが、デバイスグラジエントが適用されていない場合、kitkatデバイスにグラデネットが適用されていません
キットカットUI画面:activity_main.xmlの外観は
マシュマロUI画面好きここれる
をここでactivity_main.xmlのソースコードは、
ここで<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/background_gradient"
android:focusableInTouchMode="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent" />
</ScrollView>
は私が
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="90"
android:centerColor="#295e7c"
android:centerY="0"
android:endColor="#303a70"
android:gradientRadius="775dp"
android:startColor="#56a68d"
android:type="radial" />
<corners android:radius="0dp" />
</shape>
私はgradientRadiusを削除しますが、gradientRadiusを削除 – Karthik
@Karthik DONOTを働いていません。値を775dpから775のみに変更します.dpのみを削除します。 – sJy
ええ、私はあなたが言ったようにコードを変更しました、私はkitkatデバイスでうまくいきましたが、マホロジーデバイスではそれは良く見えませんでした。 – Karthik