0
在ScrollView中我有一個LinearLayout。在這個LinearLayout中,我不能添加帶有索引的視圖。帶索引錯誤的LinearLayout addView
爲什麼?
例如:
RelativeLayout relativeLayout = (RelativeLayout) getLayoutInflater().inflate(R.layout.android_messenger_sent_message, null);
TextView inbox_message = (TextView)relativeLayout.findViewById(R.id.sentMessage);
inbox_message.setText(conversationInfo.getBody()+" "+conversationInfo.getId());
linearLayoutGlobal.addView(relativeLayout,i);
其中i
爲1 000 000的整數,它正變得越來越小
這不是完全解決我的問題,但我用它並改變了我的代碼在這裏和那裏。謝謝! –