1 /*
2  * Copyright (C) 2008 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.layoutlib.bridge;
18 
19 /**
20  * Constant definition class.<br>
21  * <br>
22  * Most constants have a prefix defining the content.
23  * <ul>
24  * <li><code>WS_</code> Workspace path constant. Those are absolute paths,
25  * from the project root.</li>
26  * <li><code>OS_</code> OS path constant. These paths are different depending on the platform.</li>
27  * <li><code>FN_</code> File name constant.</li>
28  * <li><code>FD_</code> Folder name constant.</li>
29  * <li><code>EXT_</code> File extension constant. This does NOT include a dot.</li>
30  * <li><code>DOT_</code> File extension constant. This start with a dot.</li>
31  * <li><code>RE_</code> Regexp constant.</li>
32  * <li><code>NS_</code> Namespace constant.</li>
33  * <li><code>CLASS_</code> Fully qualified class name.</li>
34  * </ul>
35  *
36  */
37 public class BridgeConstants {
38 
39     /** Namespace for the resource XML */
40     public final static String NS_RESOURCES = "http://schemas.android.com/apk/res/android";
41 
42     /** App auto namespace */
43     public final static String NS_APP_RES_AUTO = "http://schemas.android.com/apk/res-auto";
44     public final static String NS_TOOLS_URI = "http://schemas.android.com/tools";
45 
46     public final static String R = "com.android.internal.R";
47 
48 
49     public final static String MATCH_PARENT = "match_parent";
50     public final static String FILL_PARENT = "fill_parent";
51     public final static String WRAP_CONTENT = "wrap_content";
52 
53     // Should be kept in sync with LayoutMetadata.KEY_LV_ITEM in tools/adt/idea
54     /** Attribute in the tools namespace used to specify layout manager for RecyclerView. */
55     @SuppressWarnings("SpellCheckingInspection")
56     public static final String ATTR_LIST_ITEM = "listitem";
57     public static final String ATTR_OPEN_DRAWER = "openDrawer";
58     public static final String ATTR_ITEM_COUNT = "itemCount";
59 }
60