I have an application that when the user clicks a tablerow, it changes the layout.
Here is the code
<TableRow
android:id="@+id/tableRow1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/cell_table"
android:onClick="goAir" >
And the method for the onClick:
public void goAir(View view){
setContentView(R.layout.va_air);
}
How do I add a transition between the layouts changing. Something like a slide.
Thanks
There are multiple ways of doing this. I prefer using Fragment.