Android xml button has a fine border to it -
first time having go @ android app.
i added button interface using xml . set stlye standard widget.button .
the xml button :
<button android:id="@+id/button" android:layout_width="200dp" android:layout_height="wrap_content" style="@android:style/widget.button" android:text="help me !" android:layout_gravity="center" />
i can't post picture because of low reputation.*
how can remove small lines surrounding button?
the selected theme material black if helps .
make own xml style file , place in drawable folder below...(for example style1.xml)
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <solid android:color="#31b6e7" /> <stroke android:width="1.5dp" //this change surrounding lines width android:color="#31b6e7" /> <corners android:radius="2dp"/> </shape>
and set style in button..
<button android:id="@+id/button" android:layout_width="200dp" android:layout_height="wrap_content" android:backgroung="@drawable/style1" android:text="help me !" android:layout_gravity="center" />
Comments
Post a Comment