我想让地图看起来固定在屏幕的底部,而ScrollView只允许在它之前滚动。问题是,当我有超过x个TextViews(在ScrollView中)时,地图从屏幕上消失,我甚至不能通过滚动底部看到他。我怎样才能使谷歌地图视图总是出现在我的布局的底部?
我有一个包含几个LinearLayouts与TextViews并在最后的MapView这样的滚动型:`
...
<LinearLayout
android:id="@+id/details_neighbours_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:minHeight="@dimen/details_separator_height"
android:orientation="horizontal"
android:padding="@dimen/historic_margin_separator_medium"
android:visibility="gone"
android:weightSum="3">
<TextView
android:id="@+id/neighbours_title"
android:layout_width="0dip"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/neighbours"
android:textColor="@color/color_light_grey_text"
android:textSize="@dimen/primary_text_size"
android:textStyle="bold" />
<TextView
android:id="@+id/neighbours_text"
android:layout_width="0dip"
android:layout_height="match_parent"
android:layout_weight="2"
android:gravity="center_vertical|right"
android:paddingLeft="4dp"
android:text=""
android:textColor="@color/color_light_grey_text"
android:textSize="@dimen/tertiary_text_size" />
</LinearLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
<!-- Map view -->
<com.google.android.gms.maps.MapView
android:id="@+id/map_view"
android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="1"
android:visibility="visible"/>