android - How to display the lower part of an image in an ImageView 'shaped' as a banner -


let's have 512x512 image. want display banner @ bottom of screen shows bottom of image. has use whole width of screen , respect ration aspect.

the problem i'm failing in displaying bottom of main image. see center of image...

      <imageview                 android:id="@+id/banner"                 android:layout_width="match_parent"                 android:layout_height="wrap_content"                 android:background="@drawable/myimage"                 android:scaletype="fitcenter" /> 

any idea on how ?


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -