1 /*
2  * Copyright (C) 2019 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 package com.android.tv.twopanelsettings;
17 
18 import android.content.Context;
19 import android.util.AttributeSet;
20 import android.widget.HorizontalScrollView;
21 
22 /**
23  * A horizontal scroll view that ignores left/right key events for scrolling.
24  */
25 public class TwoPanelScrollView extends HorizontalScrollView {
26 
TwoPanelScrollView(Context context)27     public TwoPanelScrollView(Context context) {
28         super(context);
29     }
30 
TwoPanelScrollView(Context context, AttributeSet attrs)31     public TwoPanelScrollView(Context context, AttributeSet attrs) {
32         super(context, attrs);
33     }
34 
35     @Override
arrowScroll(int direction)36     public boolean arrowScroll(int direction) {
37         return false;
38     }
39 }
40