Overlay over an ImageView on Android

后端 未结 4 1969
灰色年华
灰色年华 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:23

    When you write the XML for your list items which get inflated in the getView(...) of whatever ListAdapter you've written you can surely do this.

    Something like this for the list item:

    
    
    
      
    
      
    
        
    
      
    
    
    

    Then you create that drawable/gradient. For that you can recycle the answer from here.

提交回复
热议问题