Implemented RadioButtonPreference

Change-Id: I047b6a95f3001b60e7500f85c25d507e1ca1ad0f
This commit is contained in:
Lifu Tang
2013-07-30 18:34:35 -07:00
parent 040ce60582
commit fc86f69d3b
5 changed files with 93 additions and 27 deletions

View File

@@ -40,7 +40,7 @@ import java.util.Observable;
import java.util.Observer;
/**
* Gesture lock pattern settings.
* Location access settings.
*/
public class LocationSettings extends SettingsPreferenceFragment
implements Preference.OnPreferenceChangeListener {
@@ -236,25 +236,3 @@ class WrappingSwitchPreference extends SwitchPreference {
}
}
}
class WrappingCheckBoxPreference extends CheckBoxPreference {
public WrappingCheckBoxPreference(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
public WrappingCheckBoxPreference(Context context, AttributeSet attrs) {
super(context, attrs);
}
@Override
protected void onBindView(View view) {
super.onBindView(view);
TextView title = (TextView) view.findViewById(android.R.id.title);
if (title != null) {
title.setSingleLine(false);
title.setMaxLines(3);
}
}
}