Я помещаю карту в прокрутку, мы ожидаем увидеть, что внизу будет отображаться граница (см. Рис. Ниже). Но его нет. Проблема в том, что я не могу прокручивать нижнюю часть, чтобы увидеть границу карты.Карточка нижнего края CardView отключена внутри ScrollView android
Все решения на SO - это изменить layout_margins на paddings, но это не так для карт, если мы хотим показать границу. Я в основном пробовал все. Но все равно не работает.
Изображение 1. прокрутки вниз не может видеть границу
Рисунок 2. Мы видим, верхняя граница
Ниже код 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>
ссылки : 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
Вы можете приложить скриншот, чтобы помочь нам лучше понять, что происходит? – Vucko
@ Vucko screen shot добавлен, спасибо – Cheng