0
我構建了一個計算器。我在屏幕的右側放置了一些符號。當屏幕尺寸不夠時,左側的符號消失,HorizontalScrollView向右側添加一些空間。如何在HorizontalScrollView中從右向左更改滾動方向
如何更改滾動形式的directon從左向右?
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:id="@+id/top_scr_v"
android:layout_marginTop="@dimen/standard_view_margin">
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/top_scr_hor_sc_v"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:textAppearance="?android:attr/textAppearanceMedium"
android:id="@+id/resultValue"
android:textColor="@color/mainColor"
android:textSize="@dimen/display_text_size"
/>
</HorizontalScrollView>
</ScrollView>