Fix showing keyboard in tablets
This commit is contained in:
parent
9af30b08ce
commit
71c4f66300
@ -39,7 +39,7 @@
|
||||
android:clearTaskOnLaunch="true"
|
||||
android:label="@string/c_app_name"
|
||||
android:launchMode="singleTop"
|
||||
android:windowSoftInputMode="adjustPan">
|
||||
android:windowSoftInputMode="stateHidden|adjustPan">
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
@ -57,6 +57,12 @@ public class EditorFragment extends BaseFragment {
|
||||
return view;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
editorView.requestFocus();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroyView() {
|
||||
editor.clearView(editorView);
|
||||
|
@ -21,11 +21,9 @@
|
||||
~ Email: se.solovyev@gmail.com
|
||||
~ Site: http://se.solovyev.org
|
||||
-->
|
||||
<org.solovyev.android.calculator.EditorView a:id="@+id/calculator_editor"
|
||||
<org.solovyev.android.calculator.EditorView
|
||||
a:id="@+id/calculator_editor"
|
||||
style="@style/CppText.Editor"
|
||||
xmlns:a="http://schemas.android.com/apk/res/android"
|
||||
a:hint="@string/c_calc_editor_hint"
|
||||
a:padding="@dimen/cpp_editor_padding"
|
||||
a:scrollbars="vertical"
|
||||
a:singleLine="false"
|
||||
a:textIsSelectable="true" />
|
||||
a:padding="@dimen/cpp_editor_padding" />
|
@ -67,6 +67,7 @@
|
||||
<item name="android:textSize">@dimen/cpp_min_editor_text_size</item>
|
||||
<item name="android:textColor">?attr/cpp_text_color</item>
|
||||
<item name="android:inputType">textMultiLine|textNoSuggestions</item>
|
||||
<item name="android:scrollbars">vertical</item>
|
||||
</style>
|
||||
|
||||
<style name="CppText.Display" parent="CppText">
|
||||
|
Loading…
Reference in New Issue
Block a user