1
내 App의 사용자에게 글꼴 및 Textsize 변경 결정을 내리고 싶습니다. 하지만 어떻게 그것을 저장할 수 있습니다, 그래서 Textsize 또는 글꼴 사용자가 그것을 변경하면 기본값으로 설정되어 있습니까?Android - 값 변경 및 저장
내 App의 사용자에게 글꼴 및 Textsize 변경 결정을 내리고 싶습니다. 하지만 어떻게 그것을 저장할 수 있습니다, 그래서 Textsize 또는 글꼴 사용자가 그것을 변경하면 기본값으로 설정되어 있습니까?Android - 값 변경 및 저장
당신은 또한 그것은
sPref = getPreferences(MODE_PRIVATE);
String savedText = sPref.getString("SAVED_TEXT", "");
and then dinamicly change properties of TextView
TextView myTextView = (TextView)fidViewByid(...);
myTextView.setTextSize(Float.valueOf(putString));
에서 읽을 기본 설정
SharedPreferences sPref;
sPref = getPreferences(MODE_PRIVATE);
Editor ed = sPref.edit();
String putString = myEdText.getText().toString(); //users choice
ed.putString("SAVED_TEXT", putString);
ed.commit();
다음의 사용자 선택을 절약 할 수 있습니다 로컬 DB (sql lite)에 데이터를 저장할 수 있습니다.
http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html
사용 된 SharedPreferences 변화 에
그것을 저장는에 만들 읽기