Vertical seek bar
Paul776 opened this issue · 3 comments
Paul776 commented
Hello,
I would like to know how I can align a vertical seek bar to the parent left of my screen?
I have tried to rotate it but there is a huge padding left and right which makes it impossible for me to align it on the left for example
qiujuer commented
Hello,
We should first understand the principle of seek bar.
The bar default like this:
Looks like seek bar is farther from the screen than button, but it's the same.
We look this:
SeekBar seems to be more margin because it has genius:gTouchSize
attributes.
In xml:
<net.qiujuer.genius.ui.widget.SeekBar
android:id="@+id/seekBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/font_16"
genius:gAllowTrackClickToDrag="false"
genius:gIndicator="none"
genius:gMax="10"
genius:gMin="0"
genius:gRippleColor="@color/black_alpha_112"
genius:gThumbSize="6dp"
genius:gTickSize="2dp"
genius:gTouchSize="16dp" />
Math.max(genius:gTouchSize
, genius:gTickSize
, genius:gThumbSize
) that the SeekBar will have more margin.
qiujuer commented
Thank you very much, hope to relieve your confusion.
qiujuer commented