1

I have been using onSavedInstance and onRestoreInstance for saving the variables during a change in the screen orientation. But in the case of dynamic textViews , it is difficult to retrieve the values and populate them in their corresponding layouts. Does Android provide any in-built function to save d text of dynamic views?

4

1 回答 1

0

试试这个:在你的 XML 布局文件中,使用android:id="@+id/edittext1". 我所做的是自己处理配置更改。它减少了您的应用程序在更改方向时会遇到的“滞后”。

于 2013-08-29T07:04:31.923 回答