I
I
Ilfar2017-06-16 19:52:39
Android
Ilfar, 2017-06-16 19:52:39

Problems with the discrepancy between the center of the slider and the current SeekBar value?

Good day to all! Rotated seekBar by 270 degrees - now the slider has gone to the left. How to move the slider into place?

<SeekBar
        android:id="@+id/seekBar"
        android:layout_width="277dp"
        android:layout_height="0dp"
        android:layout_marginRight="-109dp"
        android:orientation="vertical"
        android:rotation="270"
        android:saveEnabled="false"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintVertical_bias="1.0" />

cd3ff2571dfb4fa49994b33c35690f7a.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Varakosov, 2017-06-21
@thelongrunsmoke

These are backward compatibility issues. On the new api, everything will be displayed normally.
Possible solutions:
1) Change the design (ideal for the MVP stage);
2) Raise the minimum api to 18 or even 21;
3) Write your view;
4) Find a suitable library.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question