Don't cut off long notes when keyboard is up

pull/14/head
Sam Bosley 14 years ago
parent 854b6c6b33
commit 4698c1288f

@ -2,7 +2,7 @@
<Button xmlns:android="http://schemas.android.com/apk/res/android" <Button xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/edit_dlg_ok" android:id="@+id/edit_dlg_ok"
android:layout_width="150dip" android:layout_width="150dip"
android:layout_height="50dip" android:layout_height="45dip"
android:layout_marginTop="10dip" android:layout_marginTop="10dip"
android:layout_marginBottom="5dip" android:layout_marginBottom="5dip"
android:layout_weight="1" android:layout_weight="1"

@ -6,34 +6,38 @@
android:layout_height="fill_parent"> android:layout_height="fill_parent">
<!-- notes --> <!-- notes -->
<LinearLayout <ScrollView
android:orientation="horizontal" android:layout_width="fill_parent"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_height="wrap_content" android:layout_weight="100">
android:layout_weight="100"> <LinearLayout
<!-- Voice Add Note Button --> android:orientation="horizontal"
<ImageButton android:layout_width="fill_parent"
android:id="@+id/voiceAddNoteButton" android:layout_height="wrap_content">
android:layout_width="wrap_content" <!-- Voice Add Note Button -->
android:layout_height="wrap_content" <ImageButton
android:layout_weight="1" android:id="@+id/voiceAddNoteButton"
android:src="@android:drawable/ic_btn_speak_now" android:layout_width="wrap_content"
android:scaleType="fitCenter" android:layout_height="wrap_content"
android:visibility="gone" /> android:layout_weight="1"
<EditText android:src="@android:drawable/ic_btn_speak_now"
android:id="@+id/notes" android:scaleType="fitCenter"
android:layout_width="wrap_content" android:visibility="gone" />
android:layout_height="wrap_content" <EditText
android:layout_marginLeft="9dip" android:id="@+id/notes"
android:layout_marginRight="9dip" android:layout_width="wrap_content"
android:layout_weight="100" android:layout_height="wrap_content"
android:scrollbars="vertical" android:layout_marginLeft="9dip"
android:gravity="top" android:layout_marginRight="9dip"
android:hint="@string/TEA_notes_hint" android:layout_weight="100"
android:autoText="true" android:scrollbars="vertical"
android:capitalize="sentences" android:gravity="top"
android:singleLine="false" android:hint="@string/TEA_notes_hint"
android:freezesText="true" /> android:autoText="true"
</LinearLayout> android:capitalize="sentences"
android:singleLine="false"
android:freezesText="true" />
</LinearLayout>
</ScrollView>
<include layout="@layout/control_dialog_ok"/> <include layout="@layout/control_dialog_ok"/>
</LinearLayout> </LinearLayout>

@ -23,7 +23,7 @@ public class EditNotesControlSet extends PopupControlSet {
editText = (EditText) getView().findViewById(R.id.notes); editText = (EditText) getView().findViewById(R.id.notes);
notesPreview = (TextView) getDisplayView().findViewById(R.id.notes_display); notesPreview = (TextView) getDisplayView().findViewById(R.id.notes_display);
dialog.getWindow() dialog.getWindow()
.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE | WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN); .setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE | WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
} }
@Override @Override

Loading…
Cancel
Save