diff options
author | Tor Norbye <tnorbye@google.com> | 2013-09-23 12:54:58 -0700 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2013-10-23 10:38:00 -0700 |
commit | 465fa041bd7397b883e328357cf08bd5bbd745fa (patch) | |
tree | b2315e579992a663a5d4ae98785fbbfb0c3c7062 /android/testData/drawables | |
parent | 76609c8a36751da87351780063193dda6eddad80 (diff) | |
download | idea-465fa041bd7397b883e328357cf08bd5bbd745fa.tar.gz |
Add render preview support for drawables, menus and widgets
This changeset adds render preview support for XML drawables, XML menu
files, and XML widget files. Drawables should work accurately; menu
previews are representative. As with layouts, selection between the
editor and menu items are synced with the preview window.
Change-Id: I97f4e857bc6285a1b0643aeb80b769825b543e4e
Diffstat (limited to 'android/testData/drawables')
-rw-r--r-- | android/testData/drawables/progress_horizontal.xml | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/android/testData/drawables/progress_horizontal.xml b/android/testData/drawables/progress_horizontal.xml new file mode 100644 index 00000000000..9a93de3a2c9 --- /dev/null +++ b/android/testData/drawables/progress_horizontal.xml @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 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:id="@android:id/background"> + <shape> + <corners android:radius="5dip" /> + <gradient + android:startColor="#ff9d9e9d" + android:centerColor="#fffa5d5a" + android:centerY="0.75" + android:endColor="#ff747674" + android:angle="270" + /> + </shape> + </item> + + <item android:id="@android:id/secondaryProgress"> + <clip> + <shape> + <corners android:radius="5dip" /> + <gradient + android:startColor="#80ffd300" + android:centerColor="#80ffb600" + android:centerY="0.75" + android:endColor="#a0ffcb00" + android:angle="270" + /> + </shape> + </clip> + </item> + + <item android:id="@android:id/progress"> + <clip> + <shape> + <corners android:radius="5dip" /> + <gradient + android:startColor="#ffffd300" + android:centerColor="#ffffb600" + android:centerY="0.75" + android:endColor="#ffffcb00" + android:angle="270" + /> + </shape> + </clip> + </item> + +</layer-list> + |