How to create a neat two-columns input form in Android?

后端 未结 2 464
误落风尘
误落风尘 2021-02-07 09:15

I want to create a neat two-columns input form like this:

\"http://img31.imageshack.us/img31/115/addnew2.png\"

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-07 10:00

    Alright, I found out the way with LinearLayout. The trick is by wrapping the Views that you want to resize with LinearLayout. Then the width of View itself can be adjusted by using: android:layout_width or android:ems property.

    Here is the xml code:

    
    
    
        
    
            
    
            
        
    
        
    
            
    
            
        
    
        
    
            
    
            
        
    
        
    
            
    
            
    
                
            
        
    
        
    
            
    
            
    
                

提交回复
热议问题