[android-developers] Re: problem with ontouch of surfaceview
What do you use to hide/show the LinearLayout? Could you show the onTouch listener for the SurfaceView? On 9 jun, 06:29, grace grace.a...@wipro.com wrote: Hi, I have my layout like this FrameLayout SurfaveView VideoView/VideoView /SurfaceView LinearLayout ImageView/ImageView ImageView/ImageView /LinearLayout /FrameLayout I have registered onTouch Listeners for all the views.The LinearLayout is made invisible at first(default). Now when i touch the surface view the LinearLayout should be made visible. but somehow its not visible after ontouch also. When the LinearLayout is visible at first(default),then i can make it invisible and visible from the ontouch events. Can anybody help me on this.Am i missing something. thanks in advance, Grace. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: problem with ontouch of surfaceview
I am using view.VISIBLE and View.INVISIBLE to make the layout show and hide my onTouch looks something like this public boolean onTouch(View v, MotionEvent event) { int id = v.getId(); int i = event.getAction(); switch(id) { case R.id.surface_view: { if(i == event.ACTION_DOWN) { settingsLayout.setVisibility(View.VISIBLE); //this is the LinearLayout } } break ; } return true; } On Jun 9, 1:39 pm, ThaMe90 theprophes...@gmail.com wrote: What do you use to hide/show the LinearLayout? Could you show the onTouch listener for the SurfaceView? On 9 jun, 06:29,gracegrace.a...@wipro.com wrote: Hi, I have my layout like this FrameLayout SurfaveView VideoView/VideoView /SurfaceView LinearLayout ImageView/ImageView ImageView/ImageView /LinearLayout /FrameLayout I have registered onTouch Listeners for all the views.The LinearLayout is made invisible at first(default). Now when i touch the surface view the LinearLayout should be made visible. but somehow its not visible after ontouch also. When the LinearLayout is visible at first(default),then i can make it invisible and visible from the ontouch events. Can anybody help me on this.Am i missing something. thanks in advance, Grace. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: problem with ontouch of surfaceview
I am using view.VISIBLE and View.INVISIBLE to make the layout show and hide my onTouch looks something like this public boolean onTouch(View v, MotionEvent event) { int id = v.getId(); int i = event.getAction(); switch(id) { case R.id.surface_view: { if(i == event.ACTION_DOWN) { settingsLayout.setVisibility(View.VISIBLE); //this is the LinearLayout } } break ; } return true; } On Jun 9, 1:39 pm, ThaMe90 theprophes...@gmail.com wrote: What do you use to hide/show the LinearLayout? Could you show the onTouch listener for the SurfaceView? On 9 jun, 06:29,gracegrace.a...@wipro.com wrote: Hi, I have my layout like this FrameLayout SurfaveView VideoView/VideoView /SurfaceView LinearLayout ImageView/ImageView ImageView/ImageView /LinearLayout /FrameLayout I have registered onTouch Listeners for all the views.The LinearLayout is made invisible at first(default). Now when i touch the surface view the LinearLayout should be made visible. but somehow its not visible after ontouch also. When the LinearLayout is visible at first(default),then i can make it invisible and visible from the ontouch events. Can anybody help me on this.Am i missing something. thanks in advance, Grace. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en