I have a really really really strange issue here.
I have this line of code:
SeekBar mProgressBar = (SeekBar) findViewById(R.id.SeekBar);
And it throws a ClassCastException: android.widget.Button as the title indicates. The XML file looks like this:
...
<SeekBar
android:id="@+id/SeekBar"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
/>
...
If I change the code to
Button mProgressBar = (Button) findViewById(R.id.SeekBar);
It "works" (e.i that single line works. The programs then fails for other reasons because it's now a button). I have the exact same line in another file without problems. Any idea what could be wrong?