Turn the eject menu into a button.
BUG=21897892 Change-Id: Icd0db7907b990447c99c4ae65816e85777df0f8e
This commit is contained in:
@@ -83,6 +83,7 @@ public abstract class SettingsPreferenceFragment extends InstrumentedPreferenceF
|
||||
|
||||
private ViewGroup mPinnedHeaderFrameLayout;
|
||||
private FloatingActionButton mFloatingActionButton;
|
||||
private ViewGroup mButtonBar;
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle icicle) {
|
||||
@@ -105,6 +106,7 @@ public abstract class SettingsPreferenceFragment extends InstrumentedPreferenceF
|
||||
final View root = super.onCreateView(inflater, container, savedInstanceState);
|
||||
mPinnedHeaderFrameLayout = (ViewGroup) root.findViewById(R.id.pinned_header);
|
||||
mFloatingActionButton = (FloatingActionButton) root.findViewById(R.id.fab);
|
||||
mButtonBar = (ViewGroup) root.findViewById(R.id.button_bar);
|
||||
return root;
|
||||
}
|
||||
|
||||
@@ -112,6 +114,10 @@ public abstract class SettingsPreferenceFragment extends InstrumentedPreferenceF
|
||||
return mFloatingActionButton;
|
||||
}
|
||||
|
||||
public ViewGroup getButtonBar() {
|
||||
return mButtonBar;
|
||||
}
|
||||
|
||||
public View setPinnedHeaderView(int layoutResId) {
|
||||
final LayoutInflater inflater = getActivity().getLayoutInflater();
|
||||
final View pinnedHeader =
|
||||
|
||||
Reference in New Issue
Block a user