Created
March 22, 2015 14:24
-
-
Save CreatorB/696a50033c90770893dc to your computer and use it in GitHub Desktop.
GridView can't be cast - Android
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Type conflict. | |
Your Activity can't have name GridView, because it conflicts with android.widget.GridView. Compiler thinks that you want to cast to GridView extending Activity, not the widget class. | |
Solutions: | |
rename you GridView | |
use fully qualified type here: */ | |
android.widget.GridView gridview = (android.widget.GridView) findViewById(R.id.gridview); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment