Open ghost opened 7 years ago
Hi,
I'm using v0.7.2.
I want to add an ImageView behind the vertical seek bar. To do that, I do these steps:
ImageView
VerticalSeekBarWrapper
XML layout looks like this:
<FrameLayout android:layout_width='wrap_content' android:layout_height='wrap_content'> <ImageView android:layout_width='wrap_content' android:layout_height='wrap_content' android:layout_gravity='center' android:src='@drawable/...'/> <com.h6ah4i.android.widget.verticalseekbar.VerticalSeekBarWrapper android:layout_width='wrap_content' android:layout_height='150dp' android:layout_gravity='center_horizontal'> <!-- NOTE: android:splitTrack="false" is required for Android N+. --> <com.h6ah4i.android.widget.verticalseekbar.VerticalSeekBar android:layout_width='0dp' android:layout_height='0dp' android:splitTrack='false' app:seekBarRotation='CW270' /> <!-- Rotation: CW90 or CW270 --> </com.h6ah4i.android.widget.verticalseekbar.VerticalSeekBarWrapper> </FrameLayout>
However in run-time, there are top and bottom gaps, like this:
I try again to use 180dp as layout height for the VerticalSeekBarWrapper. It looks better:
180dp
So may I ask if you could publish official paddings (top/left/right/bottom) that the widget uses?
Thank you,
Edited
Updated sample XML layout. I was copying/pasting from my source, so the layout height was 180dp. Now updated to 150dp as my description.
150dp
Hi,
I'm using v0.7.2.
I want to add an
ImageView
behind the vertical seek bar. To do that, I do these steps:VerticalSeekBarWrapper
to 150dp.XML layout looks like this:
However in run-time, there are top and bottom gaps, like this:
I try again to use
180dp
as layout height for theVerticalSeekBarWrapper
. It looks better:So may I ask if you could publish official paddings (top/left/right/bottom) that the widget uses?
Thank you,
Edited
Updated sample XML layout. I was copying/pasting from my source, so the layout height was
180dp
. Now updated to150dp
as my description.