cw-androidarch
cw-androidarch copied to clipboard
fix runtime 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.
Thanks! I will implement something akin to this in the next book update.