Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/227.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android Studio引导按钮文本无法居中对齐_Android - Fatal编程技术网

Android Studio引导按钮文本无法居中对齐

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

我无法使引导按钮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"
    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>

里根, 标记