GridLayout Column width

前端 未结 6 1987
再見小時候
再見小時候 2021-02-11 12:27

I have 2 columns in my GridLayout. What I want to do is make those columns take up half of the width of the screen each and then have its child contents fill their

6条回答
  •  感情败类
    2021-02-11 13:04

    For pre API 21, use support library:

    add

    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.android.support:design:23.1.1'
    

    to your dependencies.

    Then in your xml file:

    
    
                        
    
                        
    
    
    

    Here note the use of "app" prefix and dont forget to add

    xmlns:app="http://schemas.android.com/apk/res-auto"
    

    to your xml file

提交回复
热议问题