【发布时间】:2018-11-14 20:03:15
【问题描述】:
我想改变底部导航栏中的文本位置,如下图所示,
这是我的代码:
<?xml version="1.0" encoding="utf-8"?>
<android.widget.RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".HomeActivity">
<android.support.design.widget.BottomNavigationView
android:layout_width="match_parent"
android:layout_height="66dp"
android:theme="@style/Widget.BottomNavigationView"
android:layout_alignParentStart="false"
android:layout_alignParentEnd="false"
android:layout_alignParentBottom="true"
android:layout_marginStart="0dp"
android:layout_marginEnd="0dp"
android:layout_marginBottom="0dp"
android:background="#fcff38"
app:itemIconSize="30dp"
app:itemTextColor="#000000"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:menu="@menu/menulist" />
</android.widget.RelativeLayout>
使用 android studio 3.2
谢谢。
【问题讨论】:
-
我想改变文本位置你能解释一下你想要什么吗?该图像显示了一个常规的底部导航视图。
-
我希望文本有更多的图标填充
-
修正语法和格式
-
好的英语科学
标签: android