Android Text over image

前端 未结 9 1095
既然无缘
既然无缘 2020-12-02 06:44

I have an imageView with an image, over that image I want to place a text. How can I achieve that?

9条回答
  •  借酒劲吻你
    2020-12-02 06:54

    You could possibly

    • make a new class inherited from the Class ImageView and
    • override the Method onDraw. Call super.onDraw() in that method first and
    • then draw some Text you want to display.

    if you do it that way, you can use this as a single Layout Component which makes it easier to layout together with other components.

提交回复
热议问题