我希望创建一个看起来像这样的
但我不满意,它看起来不像上面展示的
如果有人需要,这是叠加后的图片:
按钮
:
我目前尝试的是:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="60dp"
android:layout_height="60dp"
android:background="#00000000">
<ImageButton
android:id="@+id/btnPinterest"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="-5dp"
android:contentDescription="@null"
android:scaleType="fitCenter"
android:src="@drawable/pinterest"/>
<TextView
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_alignParentRight="true"
android:layout_marginTop="0.5dp"
android:background="@drawable/notification"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:gravity="center"
android:text="@string/btnPinterest"
android:textColor="#FFFFFF"
android:textSize="12sp"/>
</RelativeLayout>
但我不满意,它看起来不像上面展示的
Button
。例如,文本太靠近了。有人能帮忙更准确地复制这个Button
吗?如果有人需要,这是叠加后的图片: