K
K
Konstantin Kanaev2014-06-07 05:33:57
Android
Konstantin Kanaev, 2014-06-07 05:33:57

How to customize Android ImageView?

Hello. I am just getting started with android development.
How can I make the uploaded image stretch to the top, left, and right edges? Approximately as in the picture below. Tried to use ImageView, but it still does padding. Wherever possible, I already wrote 0dp, even in the most senseless cases.
abe7ab0a000b426fabef873f059b38aa.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
stilet2891, 2014-06-11
@stilet2891

The padding is usually due to the android:padding property in the parent layout. It may be that the size of the picture is small. It would be desirable to look at the layout code and the code for loading and inserting the picture itself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question