Mercurial > hg > ccmiandroid
comparison src/uk/ac/qmul/eecs/ccmi/accessibility/AccessibleTextView.java @ 0:e0ee6ac3a45f
first import
author | Fiore Martin <fiore@eecs.qmul.ac.uk> |
---|---|
date | Thu, 13 Dec 2012 20:00:21 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e0ee6ac3a45f |
---|---|
1 /* | |
2 CCmI Diagram Editor for Android | |
3 | |
4 Copyright (C) 2012 Queen Mary University of London (http://ccmi.eecs.qmul.ac.uk/) | |
5 | |
6 This program is free software: you can redistribute it and/or modify | |
7 it under the terms of the GNU General Public License as published by | |
8 the Free Software Foundation, either version 3 of the License, or | |
9 (at your option) any later version. | |
10 | |
11 This program is distributed in the hope that it will be useful, | |
12 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 GNU General Public License for more details. | |
15 | |
16 You should have received a copy of the GNU General Public License | |
17 along with this program. If not, see <http://www.gnu.org/licenses/>. | |
18 */ | |
19 package uk.ac.qmul.eecs.ccmi.accessibility; | |
20 | |
21 import android.content.Context; | |
22 import android.util.AttributeSet; | |
23 import android.view.accessibility.AccessibilityEvent; | |
24 import android.widget.TextView; | |
25 | |
26 /** | |
27 * | |
28 * A Text view used as argument of the {@code ArrayAdapter} constructor. It prevents the | |
29 * screen reader from talking too much when clicking on the list items. | |
30 * | |
31 */ | |
32 class AccessibleTextView extends TextView { | |
33 | |
34 public AccessibleTextView(Context context) { | |
35 super(context); | |
36 } | |
37 | |
38 public AccessibleTextView(Context context, AttributeSet attrs) { | |
39 super(context, attrs); | |
40 } | |
41 | |
42 public AccessibleTextView(Context context, AttributeSet attrs, int defStyle) { | |
43 super(context, attrs, defStyle); | |
44 } | |
45 | |
46 /** | |
47 * This method is empty to prevent the screen reader to speak when clicking on this text view. | |
48 */ | |
49 @Override | |
50 public void sendAccessibilityEvent(int eventType){} | |
51 | |
52 /** | |
53 * This method is empty to prevent the screen reader to speak when clicking on this text view. | |
54 */ | |
55 @Override | |
56 public void sendAccessibilityEventUnchecked(AccessibilityEvent event){} | |
57 | |
58 } |