Android: Using alignBaseline for an image following text

前端 未结 7 2512
独厮守ぢ
独厮守ぢ 2021-02-13 04:35

Below is a TextView followed by an ImageView contained in RelativeLayout. I\'m trying to get the bottom of the image to align with the baseline of the text. When I use alignBa

7条回答
  •  执念已碎
    2021-02-13 05:10

    I was able to accomplish what I wanted to do. I did not utilize alignBaseline, just fixed the problem with padding and resizing the image. Some of the issues I was having arose from having an image too big and it filling up the space undesirably. The code I used to achieve what I wanted is below:

    
        
       
        
    
    

    This was the result:
    Header for a calendar/planner

提交回复
热议问题