Android - Button not 100% transparent -


i have added following button in xml file:

<button     style="@style/roundedbutton"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_gravity="center_horizontal"     android:background="@drawable/rounded_button"     android:text="say hi" /> 

the following rounded_button background looks like:

<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"     android:shape="rectangle">     <solid android:color="@android:color/transparent" />     <corners android:radius="50dp" />     <stroke         android:width="1dp"         android:color="#fff" /> </shape> 

the following roundedbutton style:

<style name="roundedbutton" parent="base.widget.appcompat.button">     <item name="android:textcolor">#fff</item>     <item name="android:background">@color/md_blue_700</item> </style> 

the following output:

enter image description here

as can see, background of entire layout blue. reason, button has different shade of blue @ either end. why this? how can transparent , show background?


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -