SlidingDrawer over GoogleMap

后端 未结 1 1456
无人及你
无人及你 2021-02-02 01:28

First of all, I know the SlidingDrawer is deprecated, but I haven\'t found any alternative to it so I\'m using it anyways :3 (If someone knows an alternative to it, please share

相关标签:
1条回答
  • 2021-02-02 01:43

    Put the map inside of a relative layout. In front of the map a view with the same measure.

    Example:

    <RelativeLayout
           android:layout_width="match_parent"
           android:layout_height="wrap_content" >
    
                                <include
                                    android:layout_width="wrap_content"
                                    android:layout_height="250dp"
                                    android:layout_weight="1"
                                    layout="@layout/general_map_fragment" />
    
                                 <View
                                     android:id="@+id/imageView123"
                                     android:layout_width="match_parent"
                                     android:layout_height="250dp"
                                     android:background="@color/transparent" />
    
    
                            </RelativeLayout>
    
    0 讨论(0)
提交回复
热议问题