android - Last word in toolbar title is sometimes displayed with delay and sometimes is not displayed at all. -
i have problem toolbar. have textview included in toolbar changed each time change page in viewpager. however, in 10% case text not displayed correctly. full title this: "userxx should pay" shows "userxx should" , "pay" displayed delay (cca. 800ms). "pay" not displayed @ all. have no clue might cause problem. tried use default toolbar title instead of including textview toolbar. change last word replaced elipsize (...). here toolbar structure:
<android.support.design.widget.appbarlayout android:id="@+id/vappbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:fitssystemwindows="true" android:theme="@style/apptheme.appbaroverlay"> <android.support.design.widget.collapsingtoolbarlayout android:id="@+id/vcollapsingtoolbar" android:layout_width="match_parent" android:layout_height="@dimen/collapsing_toolbar_height" android:fitssystemwindows="true" app:layout_scrollflags="scroll|exituntilcollapsed|snap"> <android.support.v4.view.viewpager android:id="@+id/vtoppager" android:layout_width="match_parent" android:layout_height="@dimen/circles_height" app:layout_collapsemode="parallax" app:layout_collapseparallaxmultiplier="0.8" /> <android.support.v7.widget.toolbar android:id="@+id/vtoolbar" style="@style/layout.toolbar" android:layout_marginbottom="40dp" app:layout_collapsemode="pin" app:layout_collapseparallaxmultiplier="1" app:popuptheme="@style/apptheme.popupoverlay"> <android.support.v7.widget.appcompattextview android:id="@+id/vwhoshouldpaytitle" style="@style/textview" android:layout_gravity="start" android:textappearance="@style/actionbartitle" /> </android.support.v7.widget.toolbar> <android.support.design.widget.tablayout android:id="@+id/vtabs" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="bottom" app:layout_collapsemode="parallax" app:layout_collapseparallaxmultiplier="0" app:tabindicatorcolor="@color/white" app:tabmode="scrollable" /> </android.support.design.widget.collapsingtoolbarlayout> </android.support.design.widget.appbarlayout>
Comments
Post a Comment