private static Preference createGestureListPreference(final PreferenceActivity context) {
Preference pref = new Preference(context);
String name = context.getString(R.string.gesture_list_str);
pref.setKey(name);
pref.setTitle(name);
pref.setDefaultValue(context.getString(R.string.gesture_list_description_str));
pref.setEnabled(true);
pref.setSummary(context.getString(R.string.gesture_list_description_str));
pref.setOnPreferenceClickListener(new OnPreferenceClickListener() {
public boolean onPreferenceClick(Preference preference) {
Intent intent = new Intent(context, tkj.android.homecontrol.mythmote.GestureBuilderActivity.class);
context.startActivity(intent);
return true;
}
});
return pref;
}
MythMotePreferences.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:mythmote
作者:
评论列表
文章目录