Overlay over an ImageView on Android

后端 未结 4 1956
灰色年华
灰色年华 2021-02-02 16:50

So I have a list of images that come from the web, I don\'t know which color are they and I want to place a text over the ImageView.

My idea is to place the ImageView, a

4条回答
  •  鱼传尺愫
    2021-02-02 17:24

    I'd use a FrameLayout or RelativeLayout. The first View you add to either should be the background ImageView, then obviously you'll need some TextViews and Other ImageViews [or Buttons, or ImageButtons, etc]

    Seems like a reasonable layout: a background image, and then one additional view in each corner.

    For the gradient, you'll probably want a separate Layout/View at the bottom with a gradient drawable as the background, although I can imagine you might be able to get away with setting the background of one of your TextViews as the gradient.

提交回复
热议问题