私は、ユーザーがレコードを追加すると、レコードがScrollViewの下部に膨らむアプリに取り組んでいます。ユーザーが追加ボタンをクリックすると、scrollViewが自動的に「スライド」し、下部に追加された最新のレコードが表示されるようにビューを設定する方法を教えてください。どうもありがとう!!
layout.xmlファイルに追加するのですか?xmlコーディングは次のとおりです。
<TableRow android:id="@+id/tableRow3"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:layout_weight="1"
android:background="@color/light_yellow">
<ScrollView android:id="@+id/SlotScrollView"
android:layout_width="match_parent"
android:layout_span="8"
android:padding="0dp">
<TableLayout android:id="@+id/SlotTableLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="0dp"
android:stretchColumns="*"></TableLayout>
</ScrollView>
</TableRow>