Kaydet (Commit) 4f8a7cc2 authored tarafından Christian Lohmaier's avatar Christian Lohmaier Kaydeden (comit) Michael Meeks

get rid of custom all-caps ui widget

as there is a corresponding property available since Api Level 14 that
is already used in the corresponding stlye definition.
Not a problem if older versions of android ignore that and don't show
the string in caps.

Change-Id: Ia9d5e32242bfc83370524011d11854f2c08348ba
üst 0d0b4a91
......@@ -28,7 +28,7 @@
android:layout_width="0dp"
android:layout_height="match_parent">
<org.libreoffice.impressremote.view.CapsTextView
<TextView
style="@style/Widget.Sherlock.ActionBar.TabText"
android:text="@string/button_cancel"
android:drawableLeft="@drawable/ic_action_cancel"
......@@ -55,7 +55,7 @@
android:layout_width="0dp"
android:layout_height="match_parent">
<org.libreoffice.impressremote.view.CapsTextView
<TextView
style="@style/Widget.Sherlock.ActionBar.TabText"
android:text="@string/button_save"
android:drawableLeft="@drawable/ic_action_save"
......
......@@ -26,7 +26,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content">
<org.libreoffice.impressremote.view.CapsTextView
<TextView
style="@style/SectionHeader"
android:text="@string/title_generic"/>
......@@ -38,7 +38,7 @@
style="@style/SectionItem"
android:text="@string/requirements_libreoffice_general_enabled"/>
<org.libreoffice.impressremote.view.CapsTextView
<TextView
style="@style/SectionHeader"
android:text="@string/title_wifi"/>
......@@ -54,7 +54,7 @@
style="@style/SectionItem"
android:text="@string/requirements_network_ports"/>
<org.libreoffice.impressremote.view.CapsTextView
<TextView
style="@style/SectionHeader"
android:text="@string/title_bluetooth"/>
......
......@@ -39,7 +39,7 @@
android:layout_width="match_parent"
android:layout_height="0dp">
<org.libreoffice.impressremote.view.CapsTextView
<TextView
style="@style/SectionHeader"
android:text="@string/header_notes"
android:paddingTop="@dimen/padding_header"/>
......
/* -*- 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: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment