-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use gradient as outer_color? #172
Labels
Comments
That's not really possible as of today. |
@simonklejnstrup I think you can set with <?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<corners android:radius="35dp" />
<gradient
android:angle="90"
android:startColor="#FFFF0000"
android:endColor="#FF00FF00"
android:type="linear" />
</shape>
</item>
</selector> with layout <com.ncorti.slidetoact.SlideToActView
app:slider_icon="@drawable/ic_baseline_arrow_forward_24_white"
app:slider_icon_color="@color/white"
android:background="@drawable/main_header_selector"
android:layout_marginHorizontal="40dp"
android:layout_width="250dp"
android:layout_height="wrap_content"
android:elevation="0dp"
app:area_margin="8dp"
app:animation_duration="300"
app:outer_color="@color/transparent"
app:inner_color="#FF8F8F"
app:border_radius="35dp"
app:text=""
app:slider_height="70dp"
app:slider_locked="false" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I can only manage to set the outer_color to a color from the colors.xml file.
Is there any workaround so I can use a gradient as outer_color.
Thanks!
The text was updated successfully, but these errors were encountered: