-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
12 changed files
with
244 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
support-spinner/src/main/res/drawable-ldrtl-v21/asp_spinner_background_material.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright (C) 2014 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. | ||
--> | ||
|
||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item | ||
android:gravity="left|center_vertical" | ||
android:left="2dp"> | ||
<selector> | ||
<item android:state_enabled="false"> | ||
<nine-patch | ||
android:alpha="?android:disabledAlpha" | ||
android:src="@drawable/abc_spinner_mtrl_am_alpha" | ||
android:tint="?colorControlNormal"/> | ||
</item> | ||
<item | ||
android:state_focused="false" | ||
android:state_pressed="false"> | ||
<nine-patch | ||
android:src="@drawable/abc_spinner_mtrl_am_alpha" | ||
android:tint="?colorControlNormal"/> | ||
</item> | ||
<item> | ||
<nine-patch | ||
android:src="@drawable/abc_spinner_mtrl_am_alpha" | ||
android:tint="?colorControlActivated"/> | ||
</item> | ||
</selector> | ||
</item> | ||
</layer-list> |
42 changes: 42 additions & 0 deletions
42
support-spinner/src/main/res/drawable-v21/asp_spinner_background_material.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright (C) 2014 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. | ||
--> | ||
|
||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item | ||
android:gravity="right|center_vertical" | ||
android:right="2dp"> | ||
<selector> | ||
<item android:state_enabled="false"> | ||
<nine-patch | ||
android:alpha="?android:disabledAlpha" | ||
android:src="@drawable/abc_spinner_mtrl_am_alpha" | ||
android:tint="?colorControlNormal"/> | ||
</item> | ||
<item | ||
android:state_focused="false" | ||
android:state_pressed="false"> | ||
<nine-patch | ||
android:src="@drawable/abc_spinner_mtrl_am_alpha" | ||
android:tint="?colorControlNormal"/> | ||
</item> | ||
<item> | ||
<nine-patch | ||
android:src="@drawable/abc_spinner_mtrl_am_alpha" | ||
android:tint="?colorControlActivated"/> | ||
</item> | ||
</selector> | ||
</item> | ||
</layer-list> |
19 changes: 19 additions & 0 deletions
19
support-spinner/src/main/res/drawable-v23/asp_control_background_40dp_material.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?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. | ||
--> | ||
|
||
<ripple xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:color="?colorControlHighlight" | ||
android:radius="20dp" /> |
35 changes: 35 additions & 0 deletions
35
support-spinner/src/main/res/drawable-v23/asp_spinner_background_material.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright (C) 2014 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. | ||
--> | ||
|
||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:paddingEnd="32dp" | ||
android:paddingLeft="0dp" | ||
android:paddingMode="stack" | ||
android:paddingRight="0dp" | ||
android:paddingStart="0dp"> | ||
<item | ||
android:width="24dp" | ||
android:drawable="@drawable/asp_control_background_40dp_material" | ||
android:gravity="end|fill_vertical"/> | ||
|
||
<item | ||
android:end="2dp" | ||
android:gravity="end|center_vertical"> | ||
<nine-patch | ||
android:src="@drawable/abc_spinner_mtrl_am_alpha" | ||
android:tint="?colorControlNormal"/> | ||
</item> | ||
</layer-list> |
20 changes: 20 additions & 0 deletions
20
support-spinner/src/main/res/drawable/asp_spinner_textfield_background_material.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright (C) 2014 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. | ||
--> | ||
|
||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:drawable="@drawable/abc_edit_text_material" /> | ||
<item android:drawable="@drawable/asp_spinner_background_material" /> | ||
</layer-list> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<style name="Base.Widget.Material.Spinner.Underlined" parent="@style/Widget.AppCompat.Spinner.Underlined"> | ||
<item name="android:background">@drawable/asp_spinner_textfield_background_material</item> | ||
</style> | ||
</resources> |
Oops, something went wrong.