History log of /frameworks/support/samples/SupportCarDemos/src/main/java/com/example/androidx/car/SubheaderListItemActivity.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
76dcad7e204288db0d0c1a50619054c8513336f4 16-May-2018 Anthony Chen <ajchen@google.com> Add special behavior for SubheaderListItems.

The SubheaderListItem should hide the divider for itself and the item
before it. Rather than having special logic in each ListItem to handle
this, make it a special case within the ListItemAdapter.

The adapter will check for the existence of subheaders and hide dividers
before it. Also hardcode the hidding of subheaders' dividers.

Fixes: 79748701
Test: ./gradlew car:connectedCheck
Test: Boot up list with subheaders on sample app and verify that
subheaders before and after are hidden

Change-Id: Ife9d261df948b04463e3944f7f230d52a200b8b1
/frameworks/support/samples/SupportCarDemos/src/main/java/com/example/androidx/car/SubheaderListItemActivity.java
18dbdd24a8d64a2d21b1cdd98ddcb7938ff7be37 18-Apr-2018 Yao, Yuxing <yaoyx@google.com> Update default look of demo app.

- reduce the spacing between cards to padding 1

in demo:
- sort the demos
- gutter on both ends
- create a card look in subheader demo
- add background color
- fix PLV demo crashing

Pending: item spacing.

Bug: 77720077
Bug: 77720520
Test: verified in demo.

Change-Id: I16a314ea6648df0c5993ea26c0bb0ba17152d00d
/frameworks/support/samples/SupportCarDemos/src/main/java/com/example/androidx/car/SubheaderListItemActivity.java
b8f226941fcb44b40d4ebe860f86e43f0afed9fc 06-Mar-2018 Yao, Yuxing <yaoyx@google.com> Support subheader list item.

Subheader will use adjustable start margin to match other types of ListItem.

Add a style for subheader to use colorAccent.
Add a ripple background for borderless button style to match custom bg color.

Bug: 74204389
Test: ./gradlew :car:connectedCheck
Change-Id: I2ced201a1b32177204cb1d6ba3bdbac38951f92a
/frameworks/support/samples/SupportCarDemos/src/main/java/com/example/androidx/car/SubheaderListItemActivity.java