I am trying to wrap my text in a nav-tab It doesn't display everything if the phone isn't horizontal
Here is my xml code fot the nav tab:
<group android:checkableBehavior="single">
<item
android:id="@+id/nav_scan"
android:icon="@drawable/ic_menu_camera"
android:title="@string/nav_option_scannen" />
<item
android:id="@+id/nav_import"
android:icon="@drawable/ic_menu_manage"
android:scrollHorizontally="false"
android:ellipsize="none"
android:title="@string/nav_option_import"
android:visible="true" />
<item
android:id="@+id/nav_export"
android:icon="@drawable/ic_menu_send"
android:scrollHorizontally="false"
android:ellipsize="none"
android:title="@string/nav_option_export" />
<item
android:id="@+id/nav_manage"
android:icon="@drawable/ic_menu_manage"
android:title="Tools"
android:visible="false" />
</group>
and the 2 strings that are not fully displayed
<string name="nav_option_import">Besucherliste importieren</string>
<string name="nav_option_export">Besucherliste exportieren</string>
if I am trying to ad a "\\n" in the string it doesn't work as well, furthermore I would like the text to wrap automatically
I don't think there's an appropriate property to do so, however you can use android:titleCondensed
property to display a shorter title when there's not enough space to display the whole title string. Reference here
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.