How to right align widget in horizontal linear layout Android?

前端 未结 19 3073
温柔的废话
温柔的废话 2020-12-12 10:34

This is the code I am using and it is not working:




        
19条回答
  •  隐瞒了意图╮
    2020-12-12 10:44

    linear layout with layout_width="fill_parent" and also the widget with same layout width + gravity as right would align it to the right.

    I'm using 2 TextViews in following example, topicTitle on the left and topicQuestions on the right.

    
    
    
        
    
        
    
        
        
    
    
    

    Output

提交回复
热议问题