Skip to content

Commit dd7ed72

Browse files
committed
Removed erroneous selector from selected navigation item background in pre-lollipop versions.
1 parent 3dd9e15 commit dd7ed72

File tree

2 files changed

+26
-8
lines changed

2 files changed

+26
-8
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!--
2+
Copyright 2014 Google Inc. All rights reserved.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
-->
16+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
17+
<item>
18+
<shape>
19+
<solid android:color="#12000000" />
20+
</shape>
21+
</item>
22+
<item android:drawable="?android:selectableItemBackground" />
23+
</layer-list>

android/src/main/res/drawable/selected_navdrawer_item_background.xml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313
See the License for the specific language governing permissions and
1414
limitations under the License.
1515
-->
16-
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
17-
<item>
18-
<shape>
19-
<solid android:color="#12000000" />
20-
</shape>
21-
</item>
22-
<item android:drawable="?android:selectableItemBackground" />
23-
</layer-list>
16+
<shape xmlns:android="http://schemas.android.com/apk/res/android">
17+
<solid android:color="#12000000" />
18+
</shape>

0 commit comments

Comments
 (0)