示例#1
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_setting);
    userPrefs = new UserPrefs(SettingActivity.this);

    verticalWrite.setChecked(userPrefs.getVerticalWrite());
  }
示例#2
0
 @OnCheckedChanged(R.id.vertical_write)
 void chooseVerticalWrite() {
   userPrefs.setVerticalWrite(verticalWrite.isChecked());
 }