Skip to content

Conversation

zhao-gang
Copy link

The layout file main.xml uses TabLayoutLite, but the code in MainActivity.java uses TabLayout. This causes runtime error as "java.lang.ClassCastException: com.commonsware.cwac.crossport.design.widget.TabLayoutLite cannot be cast to com.commonsware.cwac.crossport.design.widget.TabLayout". Change the code to use TabLayoutLite fixed this error.

The layout file main.xml uses TabLayoutLite, but the code in MainActivity.java uses TabLayout. This causes runtime error as "java.lang.ClassCastException: com.commonsware.cwac.crossport.design.widget.TabLayoutLite cannot be cast to com.commonsware.cwac.crossport.design.widget.TabLayout". Change the code to use TabLayoutLite fixed this error.
@commonsguy
Copy link
Owner

Thanks! I will implement something akin to this in the next book update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants