• 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.

 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!