android - Why does my app close when swiping tabs in ViewPager? (Only on Huawei devices) -


this happens on huawei devices (except honor 5x). app (music player): https://play.google.com/store/apps/details?id=com.ms.musicplayer

code viewpager , tabs:

// viewpager setup         viewpager = (viewpager)findviewbyid(r.id.pager);          // tabs         tablayout = (tablayout)findviewbyid(r.id.sliding_tabs);          viewpager.setadapter(new myadapter(fragmentmanager));          if (tablayout != null) {             tablayout.setupwithviewpager(viewpager);         } 

xml tabs:

<android.support.design.widget.tablayout             android:id="@+id/sliding_tabs"             android:layout_below="@id/toolbar"             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:elevation="4dp"              app:tabindicatorheight="4dp"             android:overscrollmode="ifcontentscrolls"              app:tabtextcolor="@color/transparetwhitefifty"             app:tabselectedtextcolor="@color/white"             android:background="@color/tabbgcolor"             android:textcolor="@color/whitefifty"             app:tabindicatorcolor="@color/white"             app:tabmode="scrollable" /> 

i have checked phone other music players viewpager , there's no problem.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -