How to make button like this in Android? -
i trying implement button in android following layout.how make it??
i have implemented button
i used following code 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 text" android:padding="10dp" android:layout_weight="1" android:background="@drawable/white_broder_round_with_transparent_bg" android:textcolor="@color/blackcolor" />
and have drawable 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>
you can in drawable, <item android:right="-2dp">
remove stroke right end.
<item android:right="-2dp"> <shape> <corners android:radius="4dp"/> <solid android:color="@android:color/transparent" /> <stroke android:width="1dp" android:color="@color/app_white" /> </shape> </item>
Comments
Post a Comment