android - Make a button completely fill a framelayout -


edit: main goal have button have white behind it, looks white background behind button

i can't seem make button fill framelayout.

even after setting padding of encapsulating framelayout 0dp, (and i've tried negative dp values), button has white border around around 2dp thick.

the button not totally fill framelayout should.

code:

 <framelayout         android:background="#ffffff"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_margin="0dp"         android:layout_gravity="top"         android:padding="0dp">     <button         android:id="@+id/create_list"         android:layout_width="match_parent"         android:layout_height="match_parent"         android:clickable="true"         android:layout_gravity="top"         android:drawableleft="@drawable/plus"         android:hint="create list"         android:text="@string/lists_create" />     </framelayout> 

you may write code this

  <?xml version="1.0" encoding="utf-8"?> <framelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" >     <button          android:layout_width="match_parent"         android:layout_height="match_parent"         android:text="@string/button_send"         android:onclick="sendmessage"/> </framelayout> 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -