mirror of
https://github.com/material-components/material-components-android.git
synced 2026-02-20 08:39:55 +08:00
Update Bottom Nav catalog demo to use filled icons for checked stated and outlined icons for unchecked state.
PiperOrigin-RevId: 253087691
This commit is contained in:
parent
985a39901b
commit
0525b102db
@ -0,0 +1,25 @@
|
||||
<!--
|
||||
Copyright 2019 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.
|
||||
-->
|
||||
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M22,9.24l-7.19,-0.62L12,2 9.19,8.63 2,9.24l5.46,4.73L5.82,21 12,17.27 18.18,21l-1.63,-7.03L22,9.24zM12,15.4l-3.76,2.27 1,-4.28 -3.32,-2.88 4.38,-0.38L12,6.1l1.71,4.04 4.38,0.38 -3.32,2.88 1,4.28L12,15.4z"/>
|
||||
</vector>
|
||||
@ -0,0 +1,20 @@
|
||||
<!--
|
||||
Copyright 2019 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.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_checked="true" android:drawable="@drawable/ic_star_vd_theme_24"/>
|
||||
<item android:drawable="@drawable/ic_star_border_black_24"/>
|
||||
</selector>
|
||||
@ -19,28 +19,28 @@
|
||||
<item
|
||||
android:id="@+id/action_page_1"
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/ic_star_vd_theme_24"
|
||||
android:icon="@drawable/ic_star_checkable_24"
|
||||
android:title="@string/cat_bottom_nav_page_1_name"/>
|
||||
<item
|
||||
android:id="@+id/action_page_2"
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/ic_star_vd_theme_24"
|
||||
android:icon="@drawable/ic_star_checkable_24"
|
||||
android:title="@string/cat_bottom_nav_page_2_name"/>
|
||||
<item
|
||||
android:id="@+id/action_page_3"
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/ic_star_vd_theme_24"
|
||||
android:icon="@drawable/ic_star_checkable_24"
|
||||
android:title="@string/cat_bottom_nav_page_3_name"/>
|
||||
<item
|
||||
android:id="@+id/action_page_4"
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/ic_star_vd_theme_24"
|
||||
android:icon="@drawable/ic_star_checkable_24"
|
||||
android:title="@string/cat_bottom_nav_page_4_name"
|
||||
android:visible="false"/>
|
||||
<item
|
||||
android:id="@+id/action_page_5"
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/ic_star_vd_theme_24"
|
||||
android:icon="@drawable/ic_star_checkable_24"
|
||||
android:title="@string/cat_bottom_nav_page_5_name"
|
||||
android:visible="false"/>
|
||||
</menu>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user