我无法制作bootstrap按钮bb_text_alignment center并找不到任何解决方案。而且当我把android:layout_height =“match_parent”时,按钮填满了整个空间。以下是我的配置:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:bootstrapbutton="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/login_textview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="0dp"
android:layout_marginRight="0dp"
android:layout_marginTop="20dp"
android:text="@string/login"
android:gravity="center_horizontal"
android:singleLine="false" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="1"
android:layout_marginBottom="0dp"
android:gravity="center|bottom"
android:orientation="vertical" >
<com.beardedhen.androidbootstrap.BootstrapButton
android:id="@+id/login_button"
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_margin="0dp"
android:text="Login"
android:textSize="24sp"
bootstrapbutton:bb_type="primary"
bootstrapbutton:bb_size="large"
bootstrapbutton:bb_text_alignment="center"/>
</LinearLayout>
reagrds, 标记