I am trying to implement button in android with following layout.How to make it??
i have already implemented button like this
i used following code to make
<TextView
android:id="@+id/action_text_share"
style="@style/mediumTextSize"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="5dip"
android:gravity="center"
android:singleLine="false"
android:text="Share by Text"
android:padding="10dp"
android:layout_weight="1"
android:background="@drawable/white_broder_round_with_transparent_bg"
android:textColor="@color/blackColor" />
and have drawable like this
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/removeContactRedColor"/>
<stroke android:width="2dip" android:color="@color/removeContactRedColor" />
<corners
android:radius="5dip"
/>
</shape>