Use a Holo-like style for EditText fields.
After Width: | Height: | Size: 155 B |
BIN
application/res/drawable-hdpi/textfield_default_holo_dark.9.png
Normal file
After Width: | Height: | Size: 148 B |
After Width: | Height: | Size: 222 B |
BIN
application/res/drawable-hdpi/textfield_disabled_holo_dark.9.png
Normal file
After Width: | Height: | Size: 149 B |
BIN
application/res/drawable-hdpi/textfield_focused_holo_dark.9.png
Normal file
After Width: | Height: | Size: 330 B |
After Width: | Height: | Size: 146 B |
BIN
application/res/drawable-mdpi/textfield_default_holo_dark.9.png
Normal file
After Width: | Height: | Size: 169 B |
After Width: | Height: | Size: 172 B |
BIN
application/res/drawable-mdpi/textfield_disabled_holo_dark.9.png
Normal file
After Width: | Height: | Size: 169 B |
BIN
application/res/drawable-mdpi/textfield_focused_holo_dark.9.png
Normal file
After Width: | Height: | Size: 303 B |
After Width: | Height: | Size: 169 B |
BIN
application/res/drawable-xhdpi/textfield_default_holo_dark.9.png
Normal file
After Width: | Height: | Size: 170 B |
After Width: | Height: | Size: 341 B |
After Width: | Height: | Size: 170 B |
BIN
application/res/drawable-xhdpi/textfield_focused_holo_dark.9.png
Normal file
After Width: | Height: | Size: 494 B |
26
application/res/drawable/edit_text_holo_dark.xml
Normal file
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2010 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_window_focused="false" android:state_enabled="true" android:drawable="@drawable/textfield_default_holo_dark" />
|
||||
<item android:state_window_focused="false" android:state_enabled="false" android:drawable="@drawable/textfield_disabled_holo_dark" />
|
||||
<item android:state_enabled="true" android:state_focused="true" android:drawable="@drawable/textfield_activated_holo_dark" />
|
||||
<item android:state_enabled="true" android:state_activated="true" android:drawable="@drawable/textfield_focused_holo_dark" />
|
||||
<item android:state_enabled="true" android:drawable="@drawable/textfield_default_holo_dark" />
|
||||
<item android:state_focused="true" android:drawable="@drawable/textfield_disabled_focused_holo_dark" />
|
||||
<item android:drawable="@drawable/textfield_disabled_holo_dark" />
|
||||
</selector>
|
||||
|
@ -47,7 +47,6 @@ along with Yaaic. If not, see <http://www.gnu.org/licenses/>.
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:inputType="textImeMultiLine"
|
||||
android:background="@layout/input_background"
|
||||
android:imeOptions="actionSend" />
|
||||
<Button
|
||||
android:id="@+id/speech"
|
||||
|
@ -1,35 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Yaaic - Yet Another Android IRC Client
|
||||
|
||||
Copyright 2009-2012 Sebastian Kaspari
|
||||
|
||||
This file is part of Yaaic.
|
||||
|
||||
Yaaic is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Yaaic is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Yaaic. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<shape
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="#3f5d9b" />
|
||||
<padding
|
||||
android:left="3dp"
|
||||
android:top="3dp"
|
||||
android:right="3dp"
|
||||
android:bottom="3dp" />
|
||||
<solid
|
||||
android:color="#ffffff" />
|
||||
</shape>
|
@ -2,5 +2,16 @@
|
||||
<resources>
|
||||
<style name="Theme.Yaaic" parent="Theme.Sherlock">
|
||||
<item name="absForceOverflow">true</item>
|
||||
<item name="android:editTextStyle">@style/edittext_holo</item>
|
||||
</style>
|
||||
<style name="edittext_holo" parent="@android:style/Widget.EditText">
|
||||
<item name="android:focusable">true</item>
|
||||
<item name="android:focusableInTouchMode">true</item>
|
||||
<item name="android:clickable">true</item>
|
||||
<item name="android:background">@drawable/edit_text_holo_dark</item>
|
||||
<item name="android:textColor">#FFFFFF</item>
|
||||
<item name="android:gravity">center_vertical</item>
|
||||
<item name="android:textColorHint">#FFFFFF</item>
|
||||
<item name="android:textColorHighlight">#FF0000</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
@ -229,11 +229,11 @@ public class ConversationActivity extends SherlockActivity implements ServiceCon
|
||||
|
||||
float fontSize = settings.getFontSize() * scaledDensity;
|
||||
indicator.setTextSize(fontSize);
|
||||
|
||||
int padding = (int) (5 * scaledDensity);
|
||||
input.setPadding(padding, padding, padding, padding);
|
||||
indicator.setTypeface(Typeface.MONOSPACE);
|
||||
|
||||
input.setTextSize(fontSize);
|
||||
input.setTypeface(Typeface.MONOSPACE);
|
||||
|
||||
// Optimization : cache field lookups
|
||||
Collection<Conversation> mConversations = server.getConversations();
|
||||
|
||||
|