ViewCompatJellybeanMr1.java revision 1d26501f0c8e9f3577f651938a03f6b3a1a672c7
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