Android Studio引导按钮文本无法居中对齐
我无法使引导按钮bb_文本_对齐中心,无法找到任何解决方案。还有,当我把android:layout\u height=“match\u parent”放进去时,按钮会填满整个空间。以下是我的配置:Android Studio引导按钮文本无法居中对齐,android,Android,我无法使引导按钮bb_文本_对齐中心,无法找到任何解决方案。还有,当我把android:layout\u height=“match\u parent”放进去时,按钮会填满整个空间。以下是我的配置: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:bootstrapbutton="http://schemas.android.com/apk/res-auto" an
<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>
里根,
标记