Im trying to reproduce the following gradient programmatically.
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:startColor="@color/startcolor"
android:centerColor="#343434"
android:endColor="#00000000"
android:type="radial"
android:gradientRadius="140"
android:centerY="45%"
/>
<corners android:radius="0dp" />
</shape>
How can I set programmatically the paramether? Thanks
android:centerY="45%"
See Question&Answers more detail:os