First draft of wifi display settings UI.

All of the functionality is in place but the UI is
not fully polished yet.

Bug: 7178216
Change-Id: Id76843bff05cc71e5c02a31bc97c7070d58fff10
This commit is contained in:
Jeff Brown
2012-09-19 20:46:07 -07:00
parent 99340f36cb
commit 9e143f5e9d
12 changed files with 641 additions and 13 deletions

View File

@@ -20,17 +20,19 @@ import android.content.Context;
import android.preference.Preference;
import android.util.AttributeSet;
import android.view.View;
import android.widget.TextView;
public class ProgressCategory extends ProgressCategoryBase {
private final int mEmptyTextRes;
private boolean mProgress = false;
private Preference mNoDeviceFoundPreference;
private boolean mNoDeviceFoundAdded;
public ProgressCategory(Context context, AttributeSet attrs) {
public ProgressCategory(Context context, AttributeSet attrs,
int emptyTextRes) {
super(context, attrs);
setLayoutResource(R.layout.preference_progress_category);
mEmptyTextRes = emptyTextRes;
}
@Override
@@ -52,7 +54,7 @@ public class ProgressCategory extends ProgressCategoryBase {
if (mNoDeviceFoundPreference == null) {
mNoDeviceFoundPreference = new Preference(getContext());
mNoDeviceFoundPreference.setLayoutResource(R.layout.preference_empty_list);
mNoDeviceFoundPreference.setTitle(R.string.bluetooth_no_devices_found);
mNoDeviceFoundPreference.setTitle(mEmptyTextRes);
mNoDeviceFoundPreference.setSelectable(false);
}
addPreference(mNoDeviceFoundPreference);