diff options
author | Artur Dryomov <artur.dryomov@gmail.com> | 2013-09-14 19:18:24 +0300 |
---|---|---|
committer | Artur Dryomov <artur.dryomov@gmail.com> | 2013-09-14 19:38:45 +0300 |
commit | 7dcbd06d018dd079878dec6318427aca36db0a0f (patch) | |
tree | 552171e53b21dbf208c0dcc74b47fe3856b3f7d8 /android/sdremote/src | |
parent | 4c7ad3859a27ae5376a24dcfca291670b86e3367 (diff) |
Add custom capitalized TextView.
To provide visual compatibility for 2.3 devices.
Change-Id: Ibdcc80a2f3d5a43dd8998153f2d872e564ec1c11
Diffstat (limited to 'android/sdremote/src')
-rw-r--r-- | android/sdremote/src/org/libreoffice/impressremote/view/CapsTextView.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/android/sdremote/src/org/libreoffice/impressremote/view/CapsTextView.java b/android/sdremote/src/org/libreoffice/impressremote/view/CapsTextView.java new file mode 100644 index 000000000000..84b632fe80c6 --- /dev/null +++ b/android/sdremote/src/org/libreoffice/impressremote/view/CapsTextView.java @@ -0,0 +1,34 @@ +/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ +package org.libreoffice.impressremote.view; + +import android.content.Context; +import android.util.AttributeSet; +import android.widget.TextView; + +public class CapsTextView extends TextView { + public CapsTextView(Context aContext) { + super(aContext); + } + + public CapsTextView(Context aContext, AttributeSet aAttributeSet) { + super(aContext, aAttributeSet); + } + + public CapsTextView(Context aContext, AttributeSet aAttributeSet, int aDefinedStyle) { + super(aContext, aAttributeSet, aDefinedStyle); + } + + @Override + public void setText(CharSequence aText, BufferType aBufferType) { + super.setText(aText.toString().toUpperCase(), aBufferType); + } +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |