Deprecate showSearchIconAsBadge and icon search attrs
mlebeau says: "Basically, because we now show the app icon for in-app search, showSearchIconAsBadge is a bit unnecessary, but it does in fact still work. Basically if either showSearchIconAsBadge or showSearchLabelAsBadge are specified, we grow the height of the search bar and place the provided icon or the provided label, respectively, above the text field and app icon. But we do not remove the app icon if the developer specifies showSearchIconAsBadge - it's still just the 'badge area' above the icon." Fixes: http://b/issue?id=2105329 "Deprecate searchable attributes 'showSearchIconAsBadge' and 'icon'" Change-Id: Ie2976aafe42b4ab870be9e64b34eb0ed441ebbb0
This commit is contained in:
@@ -6825,7 +6825,7 @@
|
||||
value="16843221"
|
||||
static="true"
|
||||
final="true"
|
||||
deprecated="not deprecated"
|
||||
deprecated="deprecated"
|
||||
visibility="public"
|
||||
>
|
||||
</field>
|
||||
|
||||
@@ -2843,7 +2843,9 @@
|
||||
is also used as an icon to the left of the search box and you cannot modify this
|
||||
behavior, so including the icon attribute is unecessary and this may be
|
||||
deprecated in the future.
|
||||
<i>Optional attribute.</i> -->
|
||||
<i>Optional attribute.</i>
|
||||
{@deprecated This will create a non-standard UI appearance, because the search bar UI
|
||||
now puts the activity or application icon beside the search box.} -->
|
||||
<attr name="icon" />
|
||||
<!-- This is the user-displayed name of the searchable activity. <i>Required
|
||||
attribute.</i> -->
|
||||
@@ -2868,7 +2870,10 @@
|
||||
<flag name="showSearchLabelAsBadge" value="0x04" />
|
||||
<!-- If set, this flag enables the display of the search target (icon) within the
|
||||
search bar. (Note, overrides showSearchLabel) If neither bad mode is selected,
|
||||
no badge will be shown.-->
|
||||
no badge will be shown.
|
||||
{@deprecated This will create a non-standard UI appearance, because the search bar UI
|
||||
now puts the activity or application icon beside the search box.}
|
||||
-->
|
||||
<flag name="showSearchIconAsBadge" value="0x08" />
|
||||
<!-- If set, this flag causes the suggestion column SUGGEST_COLUMN_INTENT_DATA to
|
||||
be considered as the text for suggestion query rewriting. This should only
|
||||
|
||||
Reference in New Issue
Block a user