java - Error accessing checkboxes after putting them inside a scrollview -


i changed xbl having checkboxes in layout them being in scrollview. way can add more without troubling users options page. when following error: http://pastebin.com/t5hzhrxu

here xml part changed:

<view     android:id="@+id/view2"     android:layout_width="fill_parent"     android:layout_height="1dp"     android:layout_above="@+id/scrollbox1"     android:layout_alignleft="@+id/textview4"     android:layout_alignright="@+id/num_input"     android:layout_marginbottom="14dp"     android:background="#808080" /> <scrollview android:id="@+id/scrollbox1" android:layout_width="match_parent" android:layout_height="55dp" android:layout_above="@+id/view1" >     <tablelayout     android:layout_width="fill_parent"     android:layout_height="wrap_content"     android:stretchcolumns="1">         <checkbox         android:id="@+id/chex"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="@string/cb" />         <checkbox         android:id="@+id/chex2"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_marginbottom="28dp"         android:text="@string/ac" />    </tablelayout>  </scrollview>  <view     android:id="@+id/view1"     android:layout_width="fill_parent"     android:layout_height="1dp"     android:layout_above="@+id/aboutbutt"     android:layout_alignleft="@+id/aboutbutt"     android:layout_alignright="@+id/view2"     android:layout_marginbottom="14dp"     android:background="#808080" /> 

sometimes when change/add xml files and/or views funny classcastexception error. editor doesn't realize have been changed appropriately. cleaning project allows eclipse "sort through" changes, guess say. rebuilds project eclipse can "see" what , is.

basically, if funny error this, such saying can't cast 1 view when know aren't trying cast it, first thing clean project

project --> clean --> choose project clean

here post may explain better


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -