To add a background to children of a group, a couple of things are changed when a group is in the expanded state: - The parent's shadow + background is removed - The group header is given a background and elevation - The children are elevated to cast a shadow and have backgrounds - When it's fully expanded the dividers won't be shown - There's extra height added to the parent so that the child may cast the bottom shadow of the group - As the children move into the bottom stack the last visible one alters its height and the ones below it are hidden to achieve the clipping effect Fixes: 27591195 Fixes: 28655641 Change-Id: I0484308843e9b8bc10391387e54de07973a48f7d
24 lines
979 B
XML
24 lines
979 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
~ Copyright (C) 2015 The Android Open Source Project
|
|
~
|
|
~ Licensed under the Apache License, Version 2.0 (the "License");
|
|
~ you may not use this file except in compliance with the License.
|
|
~ You may obtain a copy of the License at
|
|
~
|
|
~ http://www.apache.org/licenses/LICENSE-2.0
|
|
~
|
|
~ Unless required by applicable law or agreed to in writing, software
|
|
~ distributed under the License is distributed on an "AS IS" BASIS,
|
|
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
~ See the License for the specific language governing permissions and
|
|
~ limitations under the License
|
|
-->
|
|
|
|
<com.android.systemui.statusbar.AlphaOptimizedView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/notification_more_divider"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/notification_divider_height"
|
|
android:background="#FF616161" />
|