1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-25 18:32:15 -05:00

Added large ime option, Extended Español support, rephrased fullscreen methodology

This commit is contained in:
Rey Rey 2011-06-29 22:09:32 -04:00 committed by Sebastian Kaspari
parent 93e77ea6ed
commit 6da6a7b76b
7 changed files with 49 additions and 5 deletions

View File

@ -73,7 +73,7 @@ along with Yaaic. If not, see <http://www.gnu.org/licenses/>.
android:layout_height="wrap_content"
android:layout_weight="1"
android:inputType="textImeMultiLine"
android:imeOptions="actionSend|flagNoExtractUi" />
android:imeOptions="actionSend" />
<Button
android:id="@+id/speech"
android:layout_width="wrap_content"

View File

@ -172,7 +172,8 @@
<string name="settings_timestamp_desc">Anteponer fecha y hora en todos los mensajes</string>
<string name="settings_24h_title">Formato de 24 horas</string>
<string name="settings_24h_desc">Usar formato de 24h para fecha y hora</string>
<string name="settings_misc">Misc</string>
<string name="settings_misc">Miscelaneo</string>
<string name="settings_quitmessage_title">Quitar mensaje</string>
<string name="settings_quitmessage_desc">Mensaje para mostrar cuando te desconectas</string>
<string name="settings_quitmessage_dialog_title">Mensaje de desconexión</string>
@ -182,4 +183,22 @@
<string name="settings_fontsize_dialog_title">Tamaño de la fuente</string>
<string name="settings_voice_recognition_title">Reconocimiento de voz</string>
<string name="settings_voice_recognition_desc">Mostrar boton para reconocimiento de voz</string>
<string name="settings_joinpartquit_title">Mostrar menjes de partida</string>
<string name="settings_joinpartquit_desc">Mostra mensajes cuando jente sale y entra</string>
<string name="settings_noticeserverwindow_title">Noticias en ventana del servidor</string>
<string name="settings_noticeserverwindow_desc">Muestra noticias del systema en la ventana del servidor</string>
<string name="settings_mirc_colors_title">Mostrar colores de mensajes</string>
<string name="settings_mirc_colors_desc">Mostrar mensajes mIRC con color</string>
<string name="settings_graphical_smilies_title">Mostrar esmilys graficos</string>
<string name="settings_graphical_smilies_desc">Esmilys seran convertidos a imagenes</string>
<string name="settings_autocorrect_text_title">Auto correjir entradas</string>
<string name="settings_autocorrect_text_desc">Usar un diccionario para autocorrejir texto</string>
<string name="settings_autocap_sentences_title">Auto-capitalizar mensajes</string>
<string name="settings_autocap_sentences_desc">Automaticamenta capitalizar la primera lentra en oraciones</string>
<string name="settings_ime_extract_title">Ingresos multilinia</string>
<string name="settings_ime_extract_desc">Hace la ventana de ingreso mas grande en modo paisaje</string>
<string name="settings_fullscreen_conversation_title">Maximizar chateo</string>
<string name="settings_fullscreen_conversation_desc">Maximiza la ventana de chateo</string>
<string name="settings_history_size_title">Tamaño de historial</string>
<string name="settings_history_size_desc">Numero de linias que debemos mandener en la ventana</string>
</resources>

View File

@ -54,7 +54,10 @@
<string name="key_autocap_sentences">autocap_sentences</string>
<string name="default_autocap_sentences">false</string>
<string name="key_fullscreen_conversation">fullscreen conversation</string>
<string name="key_ime_extract">Large landscape input</string>
<string name="default_ime_extract">true</string>
<string name="key_fullscreen_conversation">Fullscreen chatting</string>
<string name="default_fullscreen_conversation">false</string>
<string name="key_history_size">history_size</string>

View File

@ -220,8 +220,10 @@
<string name="settings_autocorrect_text_desc">Use dictionary to autocorrect typed text in chat</string>
<string name="settings_autocap_sentences_title">Auto-capitalize sentences</string>
<string name="settings_autocap_sentences_desc">Automatically capitalize the first word of sentences</string>
<string name="settings_fullscreen_conversation_title">Fullscreen chat window</string>
<string name="settings_fullscreen_conversation_desc">Automatically fullscreen the conversation when focused</string>
<string name="settings_ime_extract_title">Large landscape input</string>
<string name="settings_ime_extract_desc">Makes the landscape input field multilined</string>
<string name="settings_fullscreen_conversation_title">Fullscreen chats</string>
<string name="settings_fullscreen_conversation_desc">Fullscreen the application when chatting</string>
<string name="settings_history_size_title">History size</string>
<string name="settings_history_size_desc">Number of lines of conversation history to keep</string>
</resources>

View File

@ -104,6 +104,11 @@ along with Yaaic. If not, see <http://www.gnu.org/licenses/>.
android:summary="@string/settings_autocap_sentences_desc"
android:key="@string/key_autocap_sentences"
android:defaultValue="@string/default_autocap_sentences" />
<CheckBoxPreference
android:title="@string/settings_ime_extract_title"
android:summary="@string/settings_ime_extract_desc"
android:key="@string/key_ime_extract"
android:defaultValue="@string/default_ime_extract" />
<CheckBoxPreference
android:title="@string/settings_fullscreen_conversation_title"
android:summary="@string/settings_fullscreen_conversation_desc"

View File

@ -78,6 +78,7 @@ import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.view.View.OnKeyListener;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputMethodManager;
import android.widget.Button;
import android.widget.EditText;
@ -200,6 +201,9 @@ public class ConversationActivity extends Activity implements ServiceConnection,
EditText input = (EditText) findViewById(R.id.input);
input.setOnKeyListener(inputKeyListener);
if (!settings.imeExtract()){
input.setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI);
}
switcher = (ViewSwitcher) findViewById(R.id.switcher);

View File

@ -283,6 +283,17 @@ public class Settings
);
}
/**
* Whether conversations should be viewed in Fullscreen glory
*/
public boolean imeExtract()
{
return preferences.getBoolean(
resources.getString(R.string.key_ime_extract),
Boolean.parseBoolean(resources.getString(R.string.default_ime_extract))
);
}
/**
* Whether conversations should be viewed in Fullscreen glory
*/