[android-developers] Re: switching views

2012-02-27 Thread moktarul anam
Hi Vani , better u create separate activity for display attach file and make that activity android:theme=@android:style/Theme.Dialog Moktarul anam On Feb 27, 3:49 pm, vani reddy vani.reddy.bl...@gmail.com wrote: Hi friends,, How to create switching views in android ,like in the attached

[android-developers] Re: switching views

2012-02-27 Thread Seshu
Hi Vani, Better 2 use GestureDetectors so that u can fling the multiple views... Thanks and Regards, S.Seshu On Feb 27, 4:32 pm, moktarul anam mokta...@gmail.com wrote: Hi Vani , better u create separate activity for display attach file and make that activity  

Re: [android-developers] Re: Switching views with RadioButton and saving views in Bundle

2010-03-10 Thread Declan Shanaghy
I'd just like to point out that you are probably going down the wrong road based on bad upfront advice from the person who provided that first link to you. His second piece of advice - i.e. you can save the state of your RadioButton in onSaveInstanceState() and re-apply it in either

[android-developers] Re: Switching views with RadioButton and saving views in Bundle

2010-03-09 Thread ThemePark
Thanks, that little change to the manifest did exactly what I wanted. As for the error, I don't know why but now it's a RemoteException, and it happens the second time I push a button and try to add a view. That is, if I start out with the 2D view, I can change to 3D but then I try changing back

[android-developers] Re: Switching views with RadioButton and saving views in Bundle

2010-03-09 Thread ThemePark
Nevermind, I figured it out myself after debugging my code. removeView only removes the View if it's the exact same View as the one stored in the ViewGroup, i.e. it must be located at the same address. Using findViewById finds my View, but it stores a copy of it at another address, and then