Display FB profile pic in circular image view in Application

后端 未结 7 1180
刺人心
刺人心 2020-11-29 06:21

I am trying to get the profile pic of a user from FB and display it in a circular image on my app.I am able to retrieve and display the display pic in ProfilePictureView wid

7条回答
  •  攒了一身酷
    2020-11-29 06:46

    As explained here: FrameLayout, Your Best UI Friend you can use a FrameLayout to put anything drawable on top of a picture. In particular you can place an image or an SVG path (API level 21 and above) on top of a ProfilePictureView.

    For example you can use the following layout:

    
    
        
    
        
    
    
    

    Along with the following SVG path which represents a rectangle with a subtracted circle:

    
    
    
        
            
        
    
    

    And you'll get something like this:

    enter image description here

提交回复
热议问题