Exemplo n.º 1
0
 /**
  * * Sets the header's view. This replaces the title and icon. Called by the builder-style methods
  * of subclasses.
  *
  * @param view The new view.
  * @return This MenuBuilder so additional setters can be called.
  */
 protected MenuBuilder setHeaderViewInt(View view) {
   setHeaderInternal(0, null, 0, null, view);
   return this;
 }
Exemplo n.º 2
0
 /**
  * * Sets the header's icon. This replaces the header view. Called by the builder-style methods of
  * subclasses.
  *
  * @param iconRes The new icon (as a resource ID).
  * @return This MenuBuilder so additional setters can be called.
  */
 protected MenuBuilder setHeaderIconInt(int iconRes) {
   setHeaderInternal(0, null, iconRes, null, null);
   return this;
 }
Exemplo n.º 3
0
 /**
  * * Sets the header's title. This replaces the header view. Called by the builder-style methods
  * of subclasses.
  *
  * @param titleRes The new title (as a resource ID).
  * @return This MenuBuilder so additional setters can be called.
  */
 protected MenuBuilder setHeaderTitleInt(int titleRes) {
   setHeaderInternal(titleRes, null, 0, null, null);
   return this;
 }
Exemplo n.º 4
0
 /**
  * * Sets the header's icon. This replaces the header view. Called by the builder-style methods of
  * subclasses.
  *
  * @param icon The new icon.
  * @return This MenuBuilder so additional setters can be called.
  */
 protected MenuBuilder setHeaderIconInt(Drawable icon) {
   setHeaderInternal(0, null, 0, icon, null);
   return this;
 }
Exemplo n.º 5
0
 /**
  * * Sets the header's title. This replaces the header view. Called by the builder-style methods
  * of subclasses.
  *
  * @param title The new title.
  * @return This MenuBuilder so additional setters can be called.
  */
 protected MenuBuilder setHeaderTitleInt(CharSequence title) {
   setHeaderInternal(0, title, 0, null, null);
   return this;
 }