I have HorizontalScrollView with android:supportsRtl="true"
in my application. But instead of scrolling to left, it scrolling to right anyway. How would i fix this?
<HorizontalScrollView
android:id="@id/audioScrollView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/size_normal"
android:layout_toStartOf="@+id/retakeBtn"
android:layout_toEndOf="@+id/recordBtn"
android:background="@drawable/border_drawable"
android:paddingBottom="@dimen/size_micro"
android:paddingTop="@dimen/size_micro"
android:scrollbars="none"
>
I am running for 17 level api, so attributes in xml should be fine.
use this code and create view upside down
look at this example all you have to do is to add this line
android:layoutDirection="rtl"
to attribute ofHorizontalScrollView
remember the
views
insideHorizontalScrollView
will arrange them depending onltr
orrtl