how to set a text over an imageView?

后端 未结 8 555
日久生厌
日久生厌 2020-12-05 07:20

I am placing an application bar on the top of the screen and it looks as the following figure:

\"enter

8条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-05 08:01

    If you simply want text centered over an image, all you need is a TextView, no image view. Set android:background="@drawable/yourImage" on the TextView.

提交回复
热议问题