summaryrefslogtreecommitdiff
path: root/android/testData/dom
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2014-07-31 12:49:17 -0700
committerTor Norbye <tnorbye@google.com>2014-07-31 12:49:17 -0700
commit781073f47e615ae1df048ec4d889df44fee421ae (patch)
tree16b9a7341582a6e720478e0c9408ab56f7d0635b /android/testData/dom
parent0e077394e4f4dd633f7e505674d43e476edc147b (diff)
downloadidea-781073f47e615ae1df048ec4d889df44fee421ae.tar.gz
Update drawable XML metadata
This CL fixes 72913: Completion doesn't work for selector > item > layer-list > * When investigating that bug I discovered that the metadata for <item> children in <selector>'s were missing a number of valid other tags - and we didn't support/validate the <color> tag for ColorDrawables. Change-Id: If3d44467ba5655b14b84cf2dfbaf432e99d4813e
Diffstat (limited to 'android/testData/dom')
-rw-r--r--android/testData/dom/drawable/itemListHighlighting.xml21
-rw-r--r--android/testData/dom/drawable/selectorHighlighting.xml40
2 files changed, 61 insertions, 0 deletions
diff --git a/android/testData/dom/drawable/itemListHighlighting.xml b/android/testData/dom/drawable/itemListHighlighting.xml
new file mode 100644
index 00000000000..2fd9b6d45c5
--- /dev/null
+++ b/android/testData/dom/drawable/itemListHighlighting.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">
+ <item android:state_activated="true" tools:ignore="NewApi,UnusedAttribute">
+ <selector />
+ <animated-selector android:fromId="@+id/from" android:toId="@+id/to" />
+ <level-list />
+ <layer-list />
+ <transition />
+ <ripple android:color="#44ffaa" />
+ <color android:color="#aa00aa" />
+ <shape />
+ <!-- Being considered: <vector />-->
+ <scale />
+ <clip />
+ <rotate />
+ <animated-rotate />
+ <animation-list />
+ <inset />
+ <<error descr="'src' attribute should be defined">bitmap</error> />
+ </item>
+</selector> \ No newline at end of file
diff --git a/android/testData/dom/drawable/selectorHighlighting.xml b/android/testData/dom/drawable/selectorHighlighting.xml
new file mode 100644
index 00000000000..1154199ada2
--- /dev/null
+++ b/android/testData/dom/drawable/selectorHighlighting.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:enterFadeDuration="250"
+ android:exitFadeDuration="250">
+ <item android:state_pressed="true">
+ <layer-list>
+ <item android:bottom="2dp">
+ <shape>
+ <gradient android:angle="270"
+ android:startColor="#e000"
+ android:endColor="#ee13181d" />
+ </shape>
+ </item>
+ </layer-list>
+ </item>
+ <item android:state_selected="true">
+ <layer-list>
+ <item android:bottom="2dp">
+ <shape>
+ <gradient
+
+ android:angle="270"
+ android:startColor="#e000"
+ android:endColor="#ee1a303c" />
+ </shape>
+ </item>
+ </layer-list>
+ </item>
+ <item>
+ <layer-list>
+ <item android:bottom="2dp">
+ <shape>
+ <gradient android:angle="270"
+ android:startColor="#e000"
+ android:endColor="#ee13181d" />
+ </shape>
+ </item>
+ </layer-list>
+ </item>
+</selector> \ No newline at end of file