Merge "Add hint to indicate 'see more' type content"

This commit is contained in:
TreeHugger Robot
2018-01-18 14:17:14 +00:00
committed by Android (Google) Code Review
2 changed files with 7 additions and 1 deletions

View File

@@ -7094,6 +7094,7 @@ package android.app.slice {
field public static final java.lang.String HINT_MAX = "max";
field public static final java.lang.String HINT_NO_TINT = "no_tint";
field public static final java.lang.String HINT_PARTIAL = "partial";
field public static final java.lang.String HINT_SEE_MORE = "see_more";
field public static final java.lang.String HINT_SELECTED = "selected";
field public static final java.lang.String HINT_SHORTCUT = "shortcut";
field public static final java.lang.String HINT_SUMMARY = "summary";

View File

@@ -65,6 +65,7 @@ public final class Slice implements Parcelable {
HINT_TOGGLE,
HINT_HORIZONTAL,
HINT_PARTIAL,
HINT_SEE_MORE
})
@Retention(RetentionPolicy.SOURCE)
public @interface SliceHint {}
@@ -149,7 +150,11 @@ public final class Slice implements Parcelable {
* Used to indicate the maximum integer value for a {@link #SUBTYPE_SLIDER}.
*/
public static final String HINT_MAX = "max";
/**
* A hint representing that this item should be used to indicate that there's more
* content associated with this slice.
*/
public static final String HINT_SEE_MORE = "see_more";
/**
* Key to retrieve an extra added to an intent when a control is changed.
*/