Bigger comment view and focuses on start.

captchafix
Florens Douwes 11 years ago
parent d52d59ab9d
commit f1e247d783
  1. 15
      Clover/res/layout/reply_input.xml
  2. 14
      Clover/src/org/floens/chan/ui/fragment/ReplyFragment.java

@ -37,19 +37,16 @@
floatlabel:textColorHintFocused="@color/holo_blue_dark" floatlabel:textColorHintFocused="@color/holo_blue_dark"
floatlabel:textColorHintUnFocused="@android:color/darker_gray" floatlabel:textColorHintUnFocused="@android:color/darker_gray"
floatlabel:textSize="16sp" /> floatlabel:textSize="16sp" />
<com.micromobs.android.floatlabel.FloatLabelEditText <EditText
android:id="@+id/reply_comment" android:id="@+id/reply_comment"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:imeActionLabel="@string/reply_submit" android:imeActionLabel="@string/reply_submit"
android:inputType="textMultiLine|textCapSentences|textAutoCorrect" android:inputType="textMultiLine|textCapSentences|textAutoCorrect"
android:minLines="5" android:minLines="4"
floatlabel:fitScreenWidth="full" android:textSize="16sp"
floatlabel:hint="@string/reply_comment" android:hint="@string/reply_comment" />
floatlabel:textColorHintFocused="@color/holo_blue_dark"
floatlabel:textColorHintUnFocused="@android:color/darker_gray"
floatlabel:textSize="16sp" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
@ -85,4 +82,4 @@
android:scaleType="centerCrop" /> android:scaleType="centerCrop" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>

@ -87,7 +87,7 @@ public class ReplyFragment extends DialogFragment {
private FloatLabelEditText nameView; private FloatLabelEditText nameView;
private FloatLabelEditText emailView; private FloatLabelEditText emailView;
private FloatLabelEditText subjectView; private FloatLabelEditText subjectView;
private FloatLabelEditText commentView; private EditText commentView;
private EditText fileNameView; private EditText fileNameView;
private LoadView imageViewContainer; private LoadView imageViewContainer;
private LoadView captchaContainer; private LoadView captchaContainer;
@ -162,7 +162,7 @@ public class ReplyFragment extends DialogFragment {
nameView.getEditText().setText(draft.name); nameView.getEditText().setText(draft.name);
emailView.getEditText().setText(draft.email); emailView.getEditText().setText(draft.email);
subjectView.getEditText().setText(draft.subject); subjectView.getEditText().setText(draft.subject);
commentView.getEditText().setText(draft.comment); commentView.setText(draft.comment);
setFile(draft.fileName, draft.file); setFile(draft.fileName, draft.file);
getCaptcha(); getCaptcha();
@ -214,7 +214,9 @@ public class ReplyFragment extends DialogFragment {
nameView = (FloatLabelEditText) container.findViewById(R.id.reply_name); nameView = (FloatLabelEditText) container.findViewById(R.id.reply_name);
emailView = (FloatLabelEditText) container.findViewById(R.id.reply_email); emailView = (FloatLabelEditText) container.findViewById(R.id.reply_email);
subjectView = (FloatLabelEditText) container.findViewById(R.id.reply_subject); subjectView = (FloatLabelEditText) container.findViewById(R.id.reply_subject);
commentView = (FloatLabelEditText) container.findViewById(R.id.reply_comment); commentView = (EditText) container.findViewById(R.id.reply_comment);
commentView.requestFocus();
imageViewContainer = (LoadView) container.findViewById(R.id.reply_image); imageViewContainer = (LoadView) container.findViewById(R.id.reply_image);
responseContainer = (LoadView) container.findViewById(R.id.reply_response); responseContainer = (LoadView) container.findViewById(R.id.reply_response);
captchaContainer = (LoadView) container.findViewById(R.id.reply_captcha_container); captchaContainer = (LoadView) container.findViewById(R.id.reply_captcha_container);
@ -309,7 +311,7 @@ public class ReplyFragment extends DialogFragment {
/** /**
* Flip to an page with an animation. Sets the correct text on the * Flip to an page with an animation. Sets the correct text on the
* cancelButton: * cancelButton:
* *
* @param position * @param position
* 0-2 * 0-2
*/ */
@ -340,7 +342,7 @@ public class ReplyFragment extends DialogFragment {
/** /**
* Set the picked image in the imageView. Sets the file in the draft. Call * Set the picked image in the imageView. Sets the file in the draft. Call
* null on the file to empty the imageView. * null on the file to empty the imageView.
* *
* @param imagePath * @param imagePath
* file to image to send or null to clear * file to image to send or null to clear
*/ */
@ -482,7 +484,7 @@ public class ReplyFragment extends DialogFragment {
/** /**
* Got response about or reply from ReplyManager * Got response about or reply from ReplyManager
* *
* @param response * @param response
*/ */
private void handleSubmitResponse(ReplyResponse response) { private void handleSubmitResponse(ReplyResponse response) {

Loading…
Cancel
Save