Debian Codegraph @

layoutlib-api/src/main/java/com/android/ide/common/rendering/api/Capability.java

raw
1 /*
2 * Copyright (C) 2010 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package com.android.ide.common.rendering.api;
18
19 /**
20 * Enum describing the layout bridge capabilities.
21 *
22 * @deprecated use {@link com.android.ide.common.rendering.api.Features}
23 */
24 @Deprecated
25 public enum Capability {
26 /** Ability to render at full size, as required by the layout, and unbound by the screen */
27 UNBOUND_RENDERING,
28 /** Ability to override the background of the rendering with transparency using
29 * {@link SessionParams#setOverrideBgColor(int)} */
30 CUSTOM_BACKGROUND_COLOR,
31 /** Ability to call {@link RenderSession#render()} and {@link RenderSession#render(long)}. */
32 RENDER,
33 /** Ability to ask for a layout only with no rendering through
34 * {@link SessionParams#setLayoutOnly()}
35 */
36 LAYOUT_ONLY,
37 /**
38 * Ability to control embedded layout parsers through {@link ILayoutPullParser#getParser(String)}
39 */
40 EMBEDDED_LAYOUT,
41 /** Ability to call<br>
42 * {@link RenderSession#insertChild(Object, ILayoutPullParser, int, IAnimationListener)}<br>
43 * {@link RenderSession#moveChild(Object, Object, int, java.util.Map, IAnimationListener)}<br>
44 * {@link RenderSession#setProperty(Object, String, String)}<br>
45 * The method that receives an animation listener can only use it if the
46 * ANIMATED_VIEW_MANIPULATION, or FULL_ANIMATED_VIEW_MANIPULATION is also supported.
47 */
48 VIEW_MANIPULATION,
49 /** Ability to play animations with<br>
50 * {@link RenderSession#animate(Object, String, boolean, IAnimationListener)}
51 */
52 PLAY_ANIMATION,
53 /**
54 * Ability to manipulate views with animation, as long as the view does not change parent.
55 * {@link RenderSession#insertChild(Object, ILayoutPullParser, int, IAnimationListener)}<br>
56 * {@link RenderSession#moveChild(Object, Object, int, java.util.Map, IAnimationListener)}<br>
57 * {@link RenderSession#removeChild(Object, IAnimationListener)}<br>
58 */
59 ANIMATED_VIEW_MANIPULATION,
60 /**
61 * Ability to move views (even into a different ViewGroup) with animation.
62 * see {@link RenderSession#moveChild(Object, Object, int, java.util.Map, IAnimationListener)}
63 */
64 FULL_ANIMATED_VIEW_MANIPULATION,
65 ADAPTER_BINDING,
66 EXTENDED_VIEWINFO,
67 /**
68 * Ability to properly resize nine-patch assets.
69 */
70 FIXED_SCALABLE_NINE_PATCH,
71 /**
72 * Ability to render RTL layouts.
73 */
74 RTL,
75 /**
76 * Ability to render ActionBar.
77 */
78 ACTION_BAR,
79 /**
80 * Ability to simulate older Platform Versions.
81 */
82 SIMULATE_PLATFORM,
83 }