Lines Matching refs:header

70  * of that header.  The actual layout and display of these associations can
75 * when first launched. Selecting one of the header items will re-launch
76 * the activity with it only showing the PreferenceFragment of that header.
78 * PreferenceFragment together as panes. Selecting a header item switches
83 * {@link #onBuildHeaders} to populate the header list with the desired
110 * <p>The first header is shown by Prefs1Fragment, which populates itself
163 * boolean that the header list should not be displayed. This is most often
231 Header header = onGetNewHeader();
232 if (header != null && header.fragment != null) {
233 Header mappedHeader = findBestMatchingHeader(header, oldHeaders);
235 switchToHeader(header);
281 Header header = getItem(position);
282 holder.icon.setImageResource(header.iconRes);
283 holder.title.setText(header.getTitle(getContext().getResources()));
284 CharSequence summary = header.getSummary(getContext().getResources());
308 * Identifier for this header, to correlate with a new list when
316 * Resource ID of title of the header that is shown to the user.
322 * Title of the header that is shown to the user.
328 * Resource ID of optional summary describing what this header controls.
334 * Optional summary describing what this header controls.
364 * Optional icon resource to show for this header.
370 * Full class name of the fragment to display when this header is
653 * Returns true if this activity is currently showing the header list.
688 * Called to determine whether the header list should be hidden.
699 * Called to determine the initial header to be shown. The default
700 * implementation simply returns the fragment of the first header. Note
702 * your header list -- whatever its fragment is will simply be used to
710 * Called after the header list has been updated ({@link #onBuildHeaders}
712 * specify the header that should now be selected. The default implementation
713 * returns null to keep whatever header is currently selected.
725 * the header list, there is no need to build the headers.
747 * Parse the given XML file as a header description, adding each
782 if ("header".equals(nodeName)) {
783 Header header = new Header();
787 header.id = sa.getResourceId(
794 header.titleRes = tv.resourceId;
796 header.title = tv.string;
803 header.summaryRes = tv.resourceId;
805 header.summary = tv.string;
812 header.breadCrumbTitleRes = tv.resourceId;
814 header.breadCrumbTitle = tv.string;
821 header.breadCrumbShortTitleRes = tv.resourceId;
823 header.breadCrumbShortTitle = tv.string;
826 header.iconRes = sa.getResourceId(
828 header.fragment = sa.getString(
849 header.intent = Intent.parseIntent(getResources(), parser, attrs);
857 header.fragmentArguments = curBundle;
861 target.add(header);
878 * Set a footer that should be shown at the bottom of the header list.
977 * Called when the user selects an item in the header list. The default
982 * @param header The header that was selected.
983 * @param position The header's position in the list.
985 public void onHeaderClick(Header header, int position) {
986 if (header.fragment != null) {
988 int titleRes = header.breadCrumbTitleRes;
989 int shortTitleRes = header.breadCrumbShortTitleRes;
991 titleRes = header.titleRes;
994 startWithFragment(header.fragment, header.fragmentArguments, null, 0,
997 switchToHeader(header);
999 } else if (header.intent != null) {
1000 startActivity(header.intent);
1041 * preference fragment. When launched in this mode, the header list
1113 void setSelectedHeader(Header header) {
1114 mCurHeader = header;
1115 int index = mHeaders.indexOf(header);
1121 showBreadCrumbs(header);
1124 void showBreadCrumbs(Header header) {
1125 if (header != null) {
1126 CharSequence title = header.getBreadCrumbTitle(getResources());
1127 if (title == null) title = header.getTitle(getResources());
1129 showBreadCrumbs(title, header.getBreadCrumbShortTitle(getResources()));
1161 * @param header The new header to display.
1163 public void switchToHeader(Header header) {
1164 if (mCurHeader == header) {
1165 // This is the header we are currently displaying. Just make sure
1170 int direction = mHeaders.indexOf(header) - mHeaders.indexOf(mCurHeader);
1171 switchToHeaderInner(header.fragment, header.fragmentArguments, direction);
1172 setSelectedHeader(header);