我正在创建一个按钮,就像谷歌地图中的默认按钮一样
但我不知道他们是怎么做到的
尝试搜索但没有运气。
我希望它看起来像这样(请参见下面的图片)
我希望我的按钮看起来像googlemap默认按钮
带有A图标的按钮
到目前为止,这只是我的代码。
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.toweeloapp.fragments.Nearby">
<com.toweeloapp.custom.CustomTextView
android:id="@+id/noContent"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:text="There's no shops nearby."
android:textColor="@color/textSecondary"
android:textSize="@dimen/title"
android:visibility="gone"/>
<com.toweeloapp.custom.CustomTextView
android:id="@+id/errorContent"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:text="Can't load places right now"
android:textColor="@color/textSecondary"
android:textSize="@dimen/title"
android:visibility="gone"/>
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/rvRefresh"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<android.support.v4.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/scrollView"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<RelativeLayout
android:id="@+id/mapHolder"
android:layout_width="match_parent"
android:layout_height="350dp"
>
<com.google.android.gms.maps.MapView
android:id="@+id/mapImageView"
xmlns:map="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
map:cameraZoom="15"
map:liteMode="false"
map:mapType="normal"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="bottom|right">
<Button
android:clickable="true"
android:id="@+id/btnResize"
android:layout_width="48dp"
android:layout_height="48dp"
/>
</RelativeLayout>
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<android.support.v7.widget.RecyclerView
android:id="@+id/rvNearby"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
</LinearLayout>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
</android.support.v4.widget.SwipeRefreshLayout>