Android set the GridView to have 2 columns per row only

前端 未结 2 1020
别那么骄傲
别那么骄傲 2020-12-15 04:28

Here is my code in my Activity:

public class GridViewActivity extends Activity {

    GridView gridView;

    static final String[] MOBILE_OS = new String[]          


        
2条回答
  •  一个人的身影
    2020-12-15 04:45

    Use the android:numColumns="2" in your GridView widget

    
    
    
    

    You can get familiar with Android UI in this link.Try to focus on the GridView Topic

提交回复
热议问题