cw-androidarch icon indicating copy to clipboard operation
cw-androidarch copied to clipboard

fix runtime error

Open zhao-gang opened this issue 7 years ago • 1 comments

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.

zhao-gang avatar Jun 19 '18 04:06 zhao-gang

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

commonsguy avatar Jun 19 '18 20:06 commonsguy