Answer the question
In order to leave comments, you need to log in
How to make such shadow for Android SeekBar?
In Figma I have a seekBar
box-shadow like this: inset 0px 1px 2px rgba(0, 0, 0, 0.5);
how do i turn it into a shadow for my custom SeekBar in xml in Andoid Studio?
Here is the code of my custom SeekBar, nothing complicated, just colors, but I changed the angles, but by analogy, I can't make a shadow...
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:id="@android:id/background">
<shape android:shape="rectangle" >
<corners android:radius="5dp" />
<solid
android:height="5dp"
android:color="#E6FFFFFF" />
</shape>
</item>
<item android:id="@android:id/progress">
<clip>
<shape android:shape="rectangle" >
<corners android:radius="5dp" />
<solid
android:height="5dp"
android:color="#1FBCFF" />
</shape>
</clip>
</item>
</layer-list>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question