Software keyboard will not be shown fullscreen on landscape ChatActivity.
--- a/res/layout/chat.xml Mon Mar 05 21:57:48 2012 +0100
+++ b/res/layout/chat.xml Fri Apr 06 17:24:04 2012 +0200
@@ -51,7 +51,7 @@
android:layout_height="fill_parent" android:layout_weight="1"
android:maxLines="5"
android:inputType="textShortMessage|textAutoCorrect|textMultiLine|textCapSentences"
- android:imeOptions="actionSend" android:cursorVisible="true"
+ android:imeOptions="actionSend|flagNoExtractUi" android:cursorVisible="true"
android:hint="@string/chat_input_default_value" />
<Button android:id="@+id/chat_send_message"
android:layout_width="wrap_content" android:layout_height="wrap_content"
--- a/src/com/beem/project/beem/ui/Chat.java Mon Mar 05 21:57:48 2012 +0100
+++ b/src/com/beem/project/beem/ui/Chat.java Fri Apr 06 17:24:04 2012 +0200
@@ -62,6 +62,7 @@
import android.content.IntentFilter;
import android.content.ServiceConnection;
import android.content.SharedPreferences;
+import android.content.res.Configuration;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
@@ -82,6 +83,7 @@
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
+import android.view.WindowManager;
import android.view.View.OnClickListener;
import android.view.inputmethod.EditorInfo;
import android.widget.BaseAdapter;
@@ -167,6 +169,11 @@
super.onCreate(savedBundle);
this.registerReceiver(mBroadcastReceiver, new IntentFilter(BeemBroadcastReceiver.BEEM_CONNECTION_CLOSED));
SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(this);
+
+ if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {
+ getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
+ }
+
mCompact = settings.getBoolean(BeemApplication.USE_COMPACT_CHAT_UI_KEY, false);
// UI
if (!mCompact) {
@@ -437,6 +444,8 @@
return result;
}
+
+
/**
* {@inheritDoc}.
*/