1/*
2 * Copyright (C) 2012 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
17package android.support.v4.view;
18
19import android.graphics.Paint;
20import android.view.View;
21
22/**
23 * Jellybean MR1 - specific View API access.
24 */
25class ViewCompatJellybeanMr1 {
26
27    public static int getLabelFor(View view) {
28        return view.getLabelFor();
29    }
30
31    public static void setLabelFor(View view, int id) {
32        view.setLabelFor(id);
33    }
34
35    public static void setLayerPaint(View view, Paint paint) {
36        view.setLayerPaint(paint);
37    }
38
39    public static int getLayoutDirection(View view) {
40        return view.getLayoutDirection();
41    }
42
43    public static void setLayoutDirection(View view, int layoutDirection) {
44        view.setLayoutDirection(layoutDirection);
45    }
46
47    public static int getPaddingStart(View view) {
48        return view.getPaddingStart();
49    }
50
51    public static int getPaddingEnd(View view) {
52        return view.getPaddingEnd();
53    }
54
55    public static void setPaddingRelative(View view, int start, int top, int end, int bottom) {
56        view.setPaddingRelative(start, top, end, bottom);
57    }
58
59    public static int getWindowSystemUiVisibility(View view) {
60        return view.getWindowSystemUiVisibility();
61    }
62}
63