SettingsActivity.java 文件源码

java
阅读 43 收藏 0 点赞 0 评论 0

项目:Expander 作者:
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setupActionBar();
    addPreferencesFromResource(R.xml.pref_general);

    floatingUIPref = findPreference(getResources().getString(R.string.settings_activity_floating_UI_key));
    seekBarPref = (SeekBarPreference) this.findPreference("Opacity_Value");
    seekBarPref.setSummary(R.string.setting_activity_floatingUI_opacity_level_summary_text);
    appListSwitch = (SwitchPreference) this.findPreference("Application_Filter_Type");
    appListPref = (AppListMultiSelectListPreference) this.findPreference(getResources().getString(R.string.key_application_list));
    undoButtonCheckBoxPref = (CheckBoxPreference) this.findPreference("ShowUndoButton");
    redoButtonCheckBoxPref = (CheckBoxPreference) this.findPreference("ShowRedoButton");
    floatingUIColor = (ColorPreference) this.findPreference("floatingUIColor");

    //Set the title and summary for the app list based on how the app list filter type
    setAppListTitleAndSummary();

    //if "Draw over other apps" permission is granted, set text to be disable permission
    setFloatingUITitleAndSummary();
    setFloatingUIClickListener();
    PreferenceManager.getDefaultSharedPreferences(this).registerOnSharedPreferenceChangeListener(this);

}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号