Skip to content

Commit b3fbf4f

Browse files
fix for BootstrapButton layout issues
1 parent 92dcb7a commit b3fbf4f

File tree

4 files changed

+6
-53
lines changed

4 files changed

+6
-53
lines changed

AndroidBootstrap/res/layout/bootstrap_button.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
android:id="@+id/layout"
4-
android:layout_width="wrap_content"
5-
android:layout_height="wrap_content"
4+
android:layout_width="match_parent"
5+
android:layout_height="match_parent"
66
android:duplicateParentState="true"
77
android:orientation="horizontal"
88
android:paddingBottom="10dp"
9-
android:paddingTop="10dp" >
9+
android:paddingTop="10dp">
1010

1111
<TextView
1212
android:id="@+id/lblLeft"

AndroidBootstrap/res/layout/bootstrap_button_fill.xml

Lines changed: 0 additions & 42 deletions
This file was deleted.

AndroidBootstrap/src/com/beardedhen/androidbootstrap/BootstrapButton.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,7 @@ private void initialise(AttributeSet attrs)
175175
a.recycle();
176176
}
177177

178-
View v;
179-
if(fillparent){
180-
v = inflater.inflate(R.layout.bootstrap_button_fill, this, false);
181-
} else {
182-
v = inflater.inflate(R.layout.bootstrap_button, this, false);
183-
}
178+
View v = inflater.inflate(R.layout.bootstrap_button, this, false);
184179

185180
BootstrapSize bootstrapSize = BootstrapSize.getBootstrapSizeFromString(size);
186181

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
VERSION_NAME=1.0.1
2-
VERSION_CODE=101
1+
VERSION_NAME=1.0.3
2+
VERSION_CODE=103
33
GROUP=com.beardedhen
44

55
POM_DESCRIPTION=Bootstrap style buttons with Font Awesome

0 commit comments

Comments
 (0)