ANDROID — How to display text on an image?

后端 未结 3 1530
独厮守ぢ
独厮守ぢ 2021-01-06 16:12

Ok...so here\'s the scenario.. Starting from scratch, I want to display THREE stars (i have an image that I want to use), centered. I want to post a different word in each s

3条回答
  •  死守一世寂寞
    2021-01-06 16:58

    If you're wanting to just overlay text on top of an image, just wrap the ImageView in a FrameLayout, and then just define a TextView after the ImageView. It will be layered on top. For what you're suggesting in your initial question, Reuben and Yahel's answers will be the better way.

    Example:

    
        
        
    
    

提交回复
热议问题