style.xml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. /*
  4. * Copyright (C) 2022 The Android Open Source Project
  5. *
  6. * Licensed under the Apache License, Version 2.0 (the "License");
  7. * you may not use this file except in compliance with the License.
  8. * You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. -->
  19. <resources>
  20. <style name="HomeSettings.Theme" parent="@android:style/Theme.DeviceDefault.Settings">
  21. <item name="android:listPreferredItemPaddingEnd">16dp</item>
  22. <item name="android:listPreferredItemPaddingStart">24dp</item>
  23. <item name="android:navigationBarColor">@android:color/transparent</item>
  24. <item name="android:statusBarColor">@android:color/transparent</item>
  25. <item name="android:switchStyle">@style/HomeSettings.SwitchStyle</item>
  26. <item name="android:textAppearanceListItem">@style/HomeSettings.PreferenceTitle</item>
  27. <item name="android:windowActionBar">false</item>
  28. <item name="android:windowNoTitle">true</item>
  29. <item name="preferenceTheme">@style/HomeSettings.PreferenceTheme</item>
  30. <item name="android:windowAnimationStyle">@style/Animation.SharedBackground</item>
  31. </style>
  32. <style name="Animation.SharedBackground" parent="@android:style/Animation.Activity">
  33. <item name="android:activityOpenEnterAnimation">@anim/shared_x_axis_activity_open_enter</item>
  34. <item name="android:activityOpenExitAnimation">@anim/shared_x_axis_activity_open_exit</item>
  35. <item name="android:activityCloseEnterAnimation">@anim/shared_x_axis_activity_close_enter</item>
  36. <item name="android:activityCloseExitAnimation">@anim/shared_x_axis_activity_close_exit</item>
  37. </style>
  38. </resources>