Basic API for third-party apps to define custom Data rows.
To display styled ContactsContract.Data rows in UI, this change adds basic styling attributes that third-party apps can use. The Contacts app parses these structures before displaying Data rows with unrecognized MIME-types. Partially fixes http://b/2126691
This commit is contained in:
@@ -3486,13 +3486,31 @@
|
|||||||
<!-- Contacts meta-data attributes -->
|
<!-- Contacts meta-data attributes -->
|
||||||
<!-- =============================== -->
|
<!-- =============================== -->
|
||||||
|
|
||||||
|
<!-- TODO: remove this deprecated styleable -->
|
||||||
<declare-styleable name="Icon">
|
<declare-styleable name="Icon">
|
||||||
<attr name="icon" />
|
<attr name="icon" />
|
||||||
<attr name="mimeType" />
|
<attr name="mimeType" />
|
||||||
</declare-styleable>
|
</declare-styleable>
|
||||||
|
|
||||||
|
<!-- TODO: remove this deprecated styleable -->
|
||||||
<declare-styleable name="IconDefault">
|
<declare-styleable name="IconDefault">
|
||||||
<attr name="icon" />
|
<attr name="icon" />
|
||||||
</declare-styleable>
|
</declare-styleable>
|
||||||
|
|
||||||
|
<!-- Maps a specific contact data MIME-type to styling information -->
|
||||||
|
<declare-styleable name="ContactsDataKind">
|
||||||
|
<!-- Mime-type handled by this mapping -->
|
||||||
|
<attr name="mimeType" />
|
||||||
|
<!-- Title used to represent data of this kind -->
|
||||||
|
<attr name="title" />
|
||||||
|
<!-- Icon used to represent data of this kind -->
|
||||||
|
<attr name="icon" />
|
||||||
|
<!-- Column in data table that summarizes this data -->
|
||||||
|
<attr name="summaryColumn" format="string" />
|
||||||
|
<!-- Column in data table that contains details for this data -->
|
||||||
|
<attr name="detailColumn" format="string" />
|
||||||
|
<!-- Flag indicating that detail should be built from SocialProvider -->
|
||||||
|
<attr name="detailSocialSummary" format="boolean" />
|
||||||
|
</declare-styleable>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -1166,6 +1166,9 @@
|
|||||||
<public type="attr" name="accountPreferences" />
|
<public type="attr" name="accountPreferences" />
|
||||||
<public type="attr" name="textAppearanceSearchResultSubtitle" />
|
<public type="attr" name="textAppearanceSearchResultSubtitle" />
|
||||||
<public type="attr" name="textAppearanceSearchResultTitle" />
|
<public type="attr" name="textAppearanceSearchResultTitle" />
|
||||||
|
<public type="attr" name="summaryColumn" />
|
||||||
|
<public type="attr" name="detailColumn" />
|
||||||
|
<public type="attr" name="detailSocialSummary" />
|
||||||
|
|
||||||
<public type="style" name="Theme.Wallpaper" />
|
<public type="style" name="Theme.Wallpaper" />
|
||||||
<public type="style" name="Theme.Wallpaper.NoTitleBar" />
|
<public type="style" name="Theme.Wallpaper.NoTitleBar" />
|
||||||
|
|||||||
Reference in New Issue
Block a user