Stanley Wang ee50d90e9d Improve the features of IllustrationPreference.
- Support the dynamic color.
  The colors of the illustration's labels can be changed.
  We create a mapping table of colors and labels.
  According to this mapping table, preference can
  apply the corresponding colors to the illustration.
- Support the middle ground view.
  User can overlay a view on top of the illustration.
- Support the auto scale of illustration.
- Update the layout to prevent the animation cropping.

Fix: 189199177
Test: rebotest and see the UI.
Change-Id: Ib02cbc5bb99ab8014d7ee7ed630a6721968a49ab
2021-06-03 11:25:53 +08:00

24 lines
614 B
Plaintext

package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "frameworks_base_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["frameworks_base_license"],
}
android_library {
name: "SettingsLibIllustrationPreference",
srcs: ["src/**/*.java"],
resource_dirs: ["res"],
static_libs: [
"androidx.preference_preference",
"lottie",
],
sdk_version: "system_current",
min_sdk_version: "28",
}