• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setvisibility in ontouch of a parentviews child

 
finn desolace
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problem:
Only starting from the second time i do the touch movement (physically speaking)
imageview1 gets visible

Requirement:
starting from the first time i do the touch movement (physically speaking)
imageview1 gets visible
Has to be back invisible at the end of the touch movement.

View hierarchy situation:

-Relativelayout:
-FrameLayout (replaced by fragment1)
-imageview1

-Fragment1:
-imageview2 (has ontouchlistener)
-imageview3
-imageview4


OnCreateView of the RelativeLayout, imageview1.setvisibility(view.gone)

In ontouchlistener:



Thanks a lot in advance for the aid.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic