Search code examples
androidandroid-collapsingtoolbarlayoutellipsisandroiddesignsupport

collapsing toolbar layout android title ellipsizes


I'm using android design support library 25.0.1, there is one issue with the title in the collapsing toolbar layout, my title is long and it is ellipsized in expanded condition even when there is space for it to show.

Is there any solution by which we can show title with ellipsize off in the expanded mode . .

although there is some space availbale the title is ellispsized

collapsing toolbar code :

<net.opacapp.multilinecollapsingtoolbar.CollapsingToolbarLayout
            android:id="@+id/collapsing_toolbar"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:fitsSystemWindows="true"
            app:contentScrim="@color/white"
            app:titleEnabled="true"
            app:expandedTitleGravity="center_horizontal"
            app:expandedTitleMarginTop="75dp"
            app:expandedTitleTextAppearance="@style/ExpandedAppBar"
            app:layout_scrollFlags="scroll|exitUntilCollapsed">

Solution

  • I am using https://github.com/opacapp/multiline-collapsingtoolbar this library to solve my problem, it works great except for shadow in title