用RelativeLayout 實現簡單的九宮格佈局

//RelativeLayout是item中內嵌的佈局 RelativeLayout mainLayout = (RelativeLayout) findViewById(R.id.activity_main); //獲取屏幕寬度 int screenWidth = getResources().getDisplayMetrics().widthPixels; //每行顯示的im
相關文章
相關標籤/搜索