Debian Codegraph @

brut.apktool/apktool-lib/src/main/java/android/util/AttributeSet.java

raw
1 /*
2 * Copyright 2008 Android4ME / Dmitry Skiba
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 * https://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 package android.util;
17
18 public interface AttributeSet {
19 int getAttributeCount();
20
21 String getAttributeName(int index);
22
23 String getAttributeValue(int index);
24
25 String getPositionDescription();
26
27 int getAttributeNameResource(int index);
28
29 int getAttributeListValue(int index, String[] options, int defaultValue);
30
31 boolean getAttributeBooleanValue(int index, boolean defaultValue);
32
33 int getAttributeResourceValue(int index, int defaultValue);
34
35 int getAttributeIntValue(int index, int defaultValue);
36
37 int getAttributeUnsignedIntValue(int index, int defaultValue);
38
39 float getAttributeFloatValue(int index, float defaultValue);
40
41 String getIdAttribute();
42
43 String getClassAttribute();
44
45 int getIdAttributeResourceValue(int index);
46
47 int getStyleAttribute();
48
49 String getAttributeValue(String namespace, String attribute);
50
51 int getAttributeListValue(String namespace, String attribute, String[] options, int defaultValue);
52
53 boolean getAttributeBooleanValue(String namespace, String attribute, boolean defaultValue);
54
55 int getAttributeResourceValue(String namespace, String attribute, int defaultValue);
56
57 int getAttributeIntValue(String namespace, String attribute, int defaultValue);
58
59 int getAttributeUnsignedIntValue(String namespace, String attribute, int defaultValue);
60
61 float getAttributeFloatValue(String namespace, String attribute, float defaultValue);
62
63 // TODO: remove
64 int getAttributeValueType(int index);
65
66 int getAttributeValueData(int index);
67 }