我有一個名爲「網格」表,創建自己的類裏......這樣的: ScrollView contentView = new ScrollView(this);
contentView.setBackgroundColor(Color.LTGRAY);
// THIS IS OUR MAIN LAYOUT
mainLayout = new RelativeLayout
我在使用5個按鈕創建新行時會遇到一些問題。它也崩潰時,我添加button.setText(lesson.getId()); LesSelectionActivity.java public static final int LESSON_ROW_COUNT = 5;
public void setButtonLessons() {
//draw LesSelection