Add Icon at the start of the first row for all contextualcards

- set Icon as a title item rather than an end item in slice builders
- call showTitleItems in renderer

Test: robotest
Bug: 119639527
Change-Id: I043173968ceb3d34e38c2e43ad824b923e647d47
This commit is contained in:
Jason Chiu
2018-12-19 14:15:25 +08:00
parent 08caceba9c
commit 4bc29425d9
3 changed files with 6 additions and 10 deletions

View File

@@ -132,6 +132,7 @@ public class SliceContextualCardRenderer implements ContextualCardRenderer,
cardHolder.sliceView.setOnSliceActionListener(this);
// Customize slice view for Settings
cardHolder.sliceView.showTitleItems(true);
if (card.isLargeCard()) {
cardHolder.sliceView.showHeaderDivider(true);
cardHolder.sliceView.showActionDividers(true);