shape - Android button looks different after rotating to landscape and still after rotating back -


i created button following this tutorial. looks pretty good.

but if rotate device screen landscape, button looks different. have idea, why happening? if need code, please let me know!

button should:

button should

button after rotating:

button after rotating

i suggest use floatingactionbutton included in android design support library.

simply add compile 'com.android.support:design:22.2.0' gradle file, , use floatingactionbar view class layout!

example:

<android.support.design.widget.floatingactionbutton     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:clickable="true"     android:src="@drawable/your_drawable" /> 

Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -