Umieszczam widok karty wewnątrz scrollview, spodziewamy się, że na dole powinna być wyświetlana ramka (patrz rysunek poniżej). Ale nie jest. Problem polega na tym, że nie mogę przewinąć do dołu, aby zobaczyć granicę widoku karty.Dolna granica CardView jest obcięta wewnątrz ScrollView android
Wszystkie rozwiązania na SO polegają na zmianie layout_margins na paddings, ale nie jest tak w przypadku cardview, jeśli chcemy pokazać granicę. W zasadzie próbowałem wszystkiego. Ale nadal nie działa.
Rysunek 1. przewijania do dołu nie widać granicy
Rysunek 2. Widzimy górna granica
Poniższy kod XML
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:custom="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fillViewport="true">
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="8dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
...
</LinearLayout>
</CardView>
</LinearLayout>
referencje : ScrollView doesn't scroll to the bottom
ScrollView cuts off the top and leaves space at the bottom
I can't show LinearLayout at bottom to scroll view
Android ScrollView refuses to scroll to bottom
Czy można dołączyć zrzut ekranu, aby pomóc nam lepiej zrozumieć, co się dzieje? – Vucko
Dodano zrzut ekranu Vucko, dzięki – Cheng