java - Android image view top crop -


i'm developing android application , need header use @ top of screen similar action bar ..... want transparent when start scroll view content of view goes behind decided use image view (it has different in fragment that's why didn't use action bar) used frame layout , fixed image view @ top height of 50 , used same background of main view source of image view .... problem scale type used center crop in main view , it's perfect it's useless in header i'm looking thing : enter image description here

which center crop crops top of image . used this link wasn't i'm looking .....

your approach kind of hacky, suggest take @ using sticky fragment (for example).

the video, source , sample can found in this google+ post


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -