blob: 409813f73716b172d0fb46fcdce3841320ab78b9 [file] [log] [blame]
/*
* Copyright (C) 2015 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.
*/
package androidx.vectordrawable.graphics.drawable;
import androidx.annotation.StyleableRes;
class AndroidResources {
// Resources ID generated in the latest R.java for framework.
static final int[] STYLEABLE_VECTOR_DRAWABLE_TYPE_ARRAY = {
android.R.attr.name, android.R.attr.tint, android.R.attr.height,
android.R.attr.width, android.R.attr.alpha, android.R.attr.autoMirrored,
android.R.attr.tintMode, android.R.attr.viewportWidth, android.R.attr.viewportHeight
};
static final int STYLEABLE_VECTOR_DRAWABLE_ALPHA = 4;
static final int STYLEABLE_VECTOR_DRAWABLE_AUTO_MIRRORED = 5;
static final int STYLEABLE_VECTOR_DRAWABLE_HEIGHT = 2;
static final int STYLEABLE_VECTOR_DRAWABLE_NAME = 0;
static final int STYLEABLE_VECTOR_DRAWABLE_TINT = 1;
static final int STYLEABLE_VECTOR_DRAWABLE_TINT_MODE = 6;
static final int STYLEABLE_VECTOR_DRAWABLE_VIEWPORT_HEIGHT = 8;
static final int STYLEABLE_VECTOR_DRAWABLE_VIEWPORT_WIDTH = 7;
static final int STYLEABLE_VECTOR_DRAWABLE_WIDTH = 3;
static final int[] STYLEABLE_VECTOR_DRAWABLE_GROUP = {
android.R.attr.name, android.R.attr.pivotX, android.R.attr.pivotY,
android.R.attr.scaleX, android.R.attr.scaleY, android.R.attr.rotation,
android.R.attr.translateX, android.R.attr.translateY
};
static final int STYLEABLE_VECTOR_DRAWABLE_GROUP_NAME = 0;
static final int STYLEABLE_VECTOR_DRAWABLE_GROUP_PIVOT_X = 1;
static final int STYLEABLE_VECTOR_DRAWABLE_GROUP_PIVOT_Y = 2;
static final int STYLEABLE_VECTOR_DRAWABLE_GROUP_ROTATION = 5;
static final int STYLEABLE_VECTOR_DRAWABLE_GROUP_SCALE_X = 3;
static final int STYLEABLE_VECTOR_DRAWABLE_GROUP_SCALE_Y = 4;
static final int STYLEABLE_VECTOR_DRAWABLE_GROUP_TRANSLATE_X = 6;
static final int STYLEABLE_VECTOR_DRAWABLE_GROUP_TRANSLATE_Y = 7;
static final int[] STYLEABLE_VECTOR_DRAWABLE_PATH = {
android.R.attr.name, android.R.attr.fillColor, android.R.attr.pathData,
android.R.attr.strokeColor, android.R.attr.strokeWidth, android.R.attr.trimPathStart,
android.R.attr.trimPathEnd, android.R.attr.trimPathOffset, android.R.attr.strokeLineCap,
android.R.attr.strokeLineJoin, android.R.attr.strokeMiterLimit,
android.R.attr.strokeAlpha, android.R.attr.fillAlpha, android.R.attr.fillType
};
static final int STYLEABLE_VECTOR_DRAWABLE_PATH_FILL_ALPHA = 12;
static final int STYLEABLE_VECTOR_DRAWABLE_PATH_FILL_COLOR = 1;
static final int STYLEABLE_VECTOR_DRAWABLE_PATH_NAME = 0;
static final int STYLEABLE_VECTOR_DRAWABLE_PATH_PATH_DATA = 2;
static final int STYLEABLE_VECTOR_DRAWABLE_PATH_STROKE_ALPHA = 11;
static final int STYLEABLE_VECTOR_DRAWABLE_PATH_STROKE_COLOR = 3;
static final int STYLEABLE_VECTOR_DRAWABLE_PATH_STROKE_LINE_CAP = 8;
static final int STYLEABLE_VECTOR_DRAWABLE_PATH_STROKE_LINE_JOIN = 9;
static final int STYLEABLE_VECTOR_DRAWABLE_PATH_STROKE_MITER_LIMIT = 10;
static final int STYLEABLE_VECTOR_DRAWABLE_PATH_STROKE_WIDTH = 4;
static final int STYLEABLE_VECTOR_DRAWABLE_PATH_TRIM_PATH_END = 6;
static final int STYLEABLE_VECTOR_DRAWABLE_PATH_TRIM_PATH_OFFSET = 7;
static final int STYLEABLE_VECTOR_DRAWABLE_PATH_TRIM_PATH_START = 5;
static final int STYLEABLE_VECTOR_DRAWABLE_PATH_TRIM_PATH_FILLTYPE = 13;
static final int[] STYLEABLE_VECTOR_DRAWABLE_CLIP_PATH = {
android.R.attr.name, android.R.attr.pathData
};
static final int STYLEABLE_VECTOR_DRAWABLE_CLIP_PATH_NAME = 0;
static final int STYLEABLE_VECTOR_DRAWABLE_CLIP_PATH_PATH_DATA = 1;
static final int[] STYLEABLE_ANIMATED_VECTOR_DRAWABLE = {
android.R.attr.drawable
};
static final int STYLEABLE_ANIMATED_VECTOR_DRAWABLE_DRAWABLE = 0;
static final int[] STYLEABLE_ANIMATED_VECTOR_DRAWABLE_TARGET = {
android.R.attr.name, android.R.attr.animation
};
@StyleableRes
static final int STYLEABLE_ANIMATED_VECTOR_DRAWABLE_TARGET_ANIMATION = 1;
@StyleableRes
static final int STYLEABLE_ANIMATED_VECTOR_DRAWABLE_TARGET_NAME = 0;
/////////////////////////////////////////////////////////////////////
public static final int[] STYLEABLE_ANIMATOR = {
0x01010141, 0x01010198, 0x010101be, 0x010101bf,
0x010101c0, 0x010102de, 0x010102df, 0x010102e0
};
public static final int STYLEABLE_ANIMATOR_INTERPOLATOR = 0;
public static final int STYLEABLE_ANIMATOR_DURATION = 1;
public static final int STYLEABLE_ANIMATOR_START_OFFSET = 2;
public static final int STYLEABLE_ANIMATOR_REPEAT_COUNT = 3;
public static final int STYLEABLE_ANIMATOR_REPEAT_MODE = 4;
public static final int STYLEABLE_ANIMATOR_VALUE_FROM = 5;
public static final int STYLEABLE_ANIMATOR_VALUE_TO = 6;
public static final int STYLEABLE_ANIMATOR_VALUE_TYPE = 7;
public static final int[] STYLEABLE_ANIMATOR_SET = {
0x010102e2
};
public static final int STYLEABLE_ANIMATOR_SET_ORDERING = 0;
public static final int[] STYLEABLE_PROPERTY_VALUES_HOLDER = {
0x010102de, 0x010102df, 0x010102e0, 0x010102e1
};
public static final int STYLEABLE_PROPERTY_VALUES_HOLDER_VALUE_FROM = 0;
public static final int STYLEABLE_PROPERTY_VALUES_HOLDER_VALUE_TO = 1;
public static final int STYLEABLE_PROPERTY_VALUES_HOLDER_VALUE_TYPE = 2;
public static final int STYLEABLE_PROPERTY_VALUES_HOLDER_PROPERTY_NAME = 3;
public static final int[] STYLEABLE_KEYFRAME = {
0x01010024, 0x01010141, 0x010102e0, 0x010104d8
};
public static final int STYLEABLE_KEYFRAME_VALUE = 0;
public static final int STYLEABLE_KEYFRAME_INTERPOLATOR = 1;
public static final int STYLEABLE_KEYFRAME_VALUE_TYPE = 2;
public static final int STYLEABLE_KEYFRAME_FRACTION = 3;
public static final int[] STYLEABLE_PROPERTY_ANIMATOR = {
0x010102e1, 0x01010405, 0x01010474, 0x01010475
};
public static final int STYLEABLE_PROPERTY_ANIMATOR_PROPERTY_NAME = 0;
public static final int STYLEABLE_PROPERTY_ANIMATOR_PATH_DATA = 1;
public static final int STYLEABLE_PROPERTY_ANIMATOR_PROPERTY_X_NAME = 2;
public static final int STYLEABLE_PROPERTY_ANIMATOR_PROPERTY_Y_NAME = 3;
public static final int[] STYLEABLE_PATH_INTERPOLATOR = {
0x010103fc, 0x010103fd, 0x010103fe, 0x010103ff,
0x01010405
};
public static final int STYLEABLE_PATH_INTERPOLATOR_CONTROL_X_1 = 0;
public static final int STYLEABLE_PATH_INTERPOLATOR_CONTROL_Y_1 = 1;
public static final int STYLEABLE_PATH_INTERPOLATOR_CONTROL_X_2 = 2;
public static final int STYLEABLE_PATH_INTERPOLATOR_CONTROL_Y_2 = 3;
public static final int STYLEABLE_PATH_INTERPOLATOR_PATH_DATA = 4;
public static final int FAST_OUT_LINEAR_IN = 0x010c000f;
public static final int FAST_OUT_SLOW_IN = 0x010c000d;
public static final int LINEAR_OUT_SLOW_IN = 0x010c000e;
private AndroidResources() {
}
}