I put the cartography inside the scrollview, we expect to see that the border should be shown at the bottom below (see the figure below). But he is not. The problem is that I cannot scroll to the bottom to see the border of the map.
All solutions on SO are changing layout_margins to paddings, but this is not the case for cardview if we want to show the border. I basically tried everything. But still does not work. 
Image 1. Scroll down to see the border.

Figure 2. We can see the upper bound
Below is the xml code
<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>
links: ScrollView does not scroll down
ScrollView disables the top and leaves space at the bottom
I can not show LinearLayout below to view the scroll
Android ScrollView refuses to scroll to the end
android scrollview cardview
Cheng
source share