Messing up with a calculator using a GridLayout

后端 未结 3 1409
野性不改
野性不改 2021-01-25 06:36

I\'m facing troubles with making layouts look nice.

To understand basics, I\'ve decided to create a simple calculator app.
So, I\'m using a GridLayout nested in a Li

3条回答
  •  后悔当初
    2021-01-25 07:28

    Got pretty close. Not sure how to handle the vertical dividers. For some reason putting a 1dp View between each column that spanned each row causes the GridLayout to expand the entire View.

    And to use this, you need this dependency for your support library version

    compile "com.android.support:gridlayout-v7:"
    

    color.xml

    #ef6c00
    

    styles.xml

    
    
    

    Layout XML

    
    
    
        
    
        
    
            
            

提交回复
热议问题