Overlap two images using Glide on Android

1

I reissue the question so that it is understood better than what I intend to carry out

I'm doing a detail view with the% co_of% expandable

The google style guide specifies that yes the image is very clear, better to put a dark gradient on top, to highlight if the text is clear (white).

How can you overlap two images using the Glide library on Android?

    
asked by Webserveis 03.02.2016 в 18:46
source

1 answer

3

Personally I charge by Glide the image within my ImageView :

backdrop = (ImageView) findViewById(R.id.img_video);
String url = "https://appharbor.com/assets/images/stackoverflow-logo.png";
Glide.with(this).load(url).into(backdrop);

Within my Layout I have defined as background for my ImageView an image with a gradient ( sombra_video ):

<ImageView
    android:id="@+id/img_video"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentRight="true"
    android:background="@drawable/sombra_video"/>

This to prevent the image that is loaded from being lost when the background is the same color, for that the image " sombra_video ".

This is an example:

    
answered by 03.02.2016 в 19:34