[go: nahoru, domu]

ViewCompatICS.java revision bc889e39e279fcf8c3d35fc11d8052c002eddf38
1bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell/*
2bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell * Copyright (C) 2011 The Android Open Source Project
3bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell *
4bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell * Licensed under the Apache License, Version 2.0 (the "License");
5bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell * you may not use this file except in compliance with the License.
6bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell * You may obtain a copy of the License at
7bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell *
8bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell *      http://www.apache.org/licenses/LICENSE-2.0
9bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell *
10bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell * Unless required by applicable law or agreed to in writing, software
11bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell * distributed under the License is distributed on an "AS IS" BASIS,
12bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell * See the License for the specific language governing permissions and
14bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell * limitations under the License.
15bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell */
16bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell
17bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powellpackage android.support.v4.view;
18bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell
19bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powellimport android.view.View;
20bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell
21bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell/**
22bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell * Helper for accessing newer features in View
23bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell */
24bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powellclass ViewCompatICS {
25bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell    public static boolean canScrollHorizontally(View v, int direction) {
26bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell        return v.canScrollHorizontally(direction);
27bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell    }
28bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell
29bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell    public static boolean canScrollVertically(View v, int direction) {
30bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell        return v.canScrollVertically(direction);
31bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell    }
32bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell}
33