我们如何为UITabBar中的特定UITabBarItem的图像设置不同的高度?

我们如何为UITabBar中的特定UITabBarItem的图像设置不同的高度?

我有一个中间UITabBar的图像,该图像应从底部开始并与现有的UITabBarItem对齐。如何更改中间项目的<TextView android:id="@+id/vh_fragnotifications_postedby" android:layout_width="0dp" android:layout_height="wrap_content" android:textSize="12sp" android:layout_marginTop="8dp" android:text="zz12345678901234567890aaaaaaaa" app:layout_constraintTop_toBottomOf="@+id/vh_fragnotifications_body" app:layout_constraintLeft_toLeftOf="@+id/vh_fragnotifications_body" app:layout_constraintRight_toLeftOf="@+id/vh_fragnotifications_dateposted" android:maxLines="1" android:ellipsize="end"/> 的高度?

ls_liusong1 回答:我们如何为UITabBar中的特定UITabBarItem的图像设置不同的高度?

要实现此目的,您需要使用自定义的TabBarView。这是一个固定在底部的简单视图。随心所欲设计,仅此而已!这是最好的方法,可以正常使用默认TabBar。

每个“非默认外观”标签栏-它是自定义的

本文链接:https://www.f2er.com/3073701.html

大家都在问