Android 对齐相对布局中ImageButton下方的文本视图
我很难将图像按钮下方的文本视图居中对齐尽管我尝试了属性android:gravity=“center”,前两个文本视图在相应图像按钮的中心对齐,但第三个文本视图不适合 以下是我的xml代码:Android 对齐相对布局中ImageButton下方的文本视图,android,android-layout,Android,Android Layout,我很难将图像按钮下方的文本视图居中对齐尽管我尝试了属性android:gravity=“center”,前两个文本视图在相应图像按钮的中心对齐,但第三个文本视图不适合 以下是我的xml代码: 使用并使用: <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/imageButton" and
使用并使用:
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/imageButton"
android:layout_centerInParent="true"
android:text="text" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/imageButton"
android:layout_centerInParent="true"
android:text="text" />