android - Button not working after TranslateAnimation ends -


im tring simulate slideup animation.the idea slideup , slidedown tablelayout id searchform when pressing button can use space list. managed slideup searchform , button , list seems visible after cant click button, here's code responsible slideup animatio:

translateanimation slide = new translateanimation(0, 0, 0,   -findviewbyid(r.id.searchform).getheight());    slide.setduration(500);    slide.setfillafter(true);    findviewbyid(r.id.searchform).startanimation(slide);    findviewbyid(r.id.listbut).startanimation(slide);  adaptersearch.add(new notificationentry("","444/2010","teste","etapa de teste2","2010")); 

here's xml has view elements:

<tablelayout android:id="@+id/search" android:layout_width="fill_parent"  android:layout_height="wrap_content" android:layout_alignparentbottom="true"  android:stretchcolumns="1"> <tablelayout  android:id="@+id/searchform"     android:layout_width="fill_parent"   android:layout_height="wrap_content"  android:layout_alignparentbottom="true"   android:stretchcolumns="1">  <tablerow android:paddingtop="5px">   <textview android:text="nº processo:" />   <edittext android:id="@+id/processnr" />  </tablerow>  <view android:id="@+id/view01"    android:layout_width="wrap_content"   android:background="#b5b5b5"    android:layout_height="1px"   android:paddingbottom="2px">  </view>  <tablerow android:paddingtop="5px">   <textview android:text="etapa:" />   <edittext android:id="@+id/tasksearch" />  </tablerow>  <view android:id="@+id/view01"    android:layout_width="wrap_content"   android:background="#b5b5b5"    android:layout_height="1px"   android:paddingbottom="2px">  </view>  <tablerow android:paddingtop="5px">   <textview android:text="data inicio:"     android:id="@+id/datepick" />   <edittext android:id="@+id/datebegvalue" />  </tablerow>  <view android:id="@+id/view01"    android:layout_width="wrap_content"   android:background="#b5b5b5"    android:layout_height="1px"   android:paddingbottom="2px"    android:paddingtop="5px">  </view>  <tablerow android:paddingtop="5px">   <textview android:text="data fim:"     android:id="@+id/dateendpick" />   <edittext android:id="@+id/dateendvalue" />  </tablerow>  <view android:id="@+id/view01"    android:layout_width="wrap_content"   android:background="#b5b5b5"    android:layout_height="1px"   android:paddingbottom="2px"    android:paddingtop="5px">  </view>   </tablelayout> <tablelayout android:id="@+id/listbut">  <tablerow android:paddingtop="5px">    <button android:id="@+id/send"      android:text="procurar"     android:layout_width="fill_parent"      android:layout_height="fill_parent" />  </tablerow>  <listview android:id="@+id/processlistsearch"   android:layout_width="fill_parent"    android:layout_height="fill_parent" /> </tablelayout> 

i believe views animating not moving x,y points, visually see movement through animation. views still in original position

see question

maybe place gone view in location animation ends, , when animation ends change visibility visible. appear though actually moved, , action on view such click event on button used want


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -