タグ付けされた質問 「gradient」

位置に依存する色の範囲を指定します。通常は、領域を塗りつぶすために使用されます。

7
Android:背景が縞模様に見えるように線形グラデーションを使用する
ListViewに線形グラデーションを適用しようとしています。これは私のドローアブルxmlの内容です: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <gradient android:startColor="#3A3C39" android:endColor="#181818" android:angle="270" /> <corners android:radius="0dp" /> </shape> だから私はそれを私のListViewに適用します: android:background="@drawable/shape_background_grey" 動作しますが、エミュレーターや実際のデバイスでも非常に「バンド」に見えます。 この「振る舞い」を減らす方法はありますか?
弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.