Adjusted some default layouts

pull/14/head
Sam Bosley 12 years ago
parent 38bb7ddbab
commit 6575f9a238

@ -19,8 +19,9 @@
android:gravity="center_vertical"> android:gravity="center_vertical">
<View android:id="@+id/display_row_icon" <View android:id="@+id/display_row_icon"
android:layout_width="25dip" android:layout_marginRight="10dip"
android:layout_height="25dip" android:layout_width="24dip"
android:layout_height="24dip"
android:background="#ff0000"/> android:background="#ff0000"/>
<TextView <TextView
android:id="@+id/display_row_title" android:id="@+id/display_row_title"

@ -21,8 +21,8 @@
android:paddingRight="10dip" android:paddingRight="10dip"
android:layout_height="50dip"> android:layout_height="50dip">
<View android:id="@+id/display_row_icon" <View android:id="@+id/display_row_icon"
android:layout_width="25dip" android:layout_width="24dip"
android:layout_height="25dip" android:layout_height="24dip"
android:background="#ff0000"/> android:background="#ff0000"/>
</LinearLayout> </LinearLayout>

@ -17,24 +17,18 @@
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:gravity="center_vertical" android:gravity="center_vertical"
android:minHeight="50dip" android:minHeight="50dip"
android:orientation="vertical" android:orientation="horizontal"
android:paddingLeft="10dip" android:paddingLeft="10dip"
android:paddingRight="10dip" > android:paddingRight="10dip" >
<View android:id="@+id/display_row_icon"
<TextView android:layout_marginRight="10dip"
android:id="@+id/display_row_title" android:layout_width="24dip"
style="@style/TextAppearance.GEN_EditLabel" android:layout_height="24dip"
android:layout_width="wrap_content" android:background="#ff0000"/>
android:layout_height="wrap_content"
android:paddingTop="4dip"
android:paddingBottom="4dip"
android:text="@string/TEA_note_label" />
<TextView <TextView
android:id="@+id/display_row_edit" android:id="@+id/display_row_edit"
style="@style/TextAppearance.EditRowDisplay" style="@style/TextAppearance.EditRowDisplay"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:paddingBottom="10dip"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="left" /> android:gravity="left" />
</LinearLayout> </LinearLayout>

@ -341,6 +341,9 @@
<!-- slide 16c: Task note label --> <!-- slide 16c: Task note label -->
<string name="TEA_note_label">Description</string> <string name="TEA_note_label">Description</string>
<!-- slide 16c: Task note label -->
<string name="TEA_notes_empty">Description...</string>
<!-- Task note hint --> <!-- Task note hint -->
<string name="TEA_notes_hint">Enter task description...</string> <string name="TEA_notes_hint">Enter task description...</string>

@ -10,7 +10,6 @@ import android.content.Context;
import android.graphics.Color; import android.graphics.Color;
import android.text.TextUtils; import android.text.TextUtils;
import android.text.util.Linkify; import android.text.util.Linkify;
import android.view.View;
import android.view.WindowManager; import android.view.WindowManager;
import android.view.inputmethod.InputMethodManager; import android.view.inputmethod.InputMethodManager;
import android.widget.EditText; import android.widget.EditText;
@ -36,8 +35,12 @@ public class EditNotesControlSet extends PopupControlSet {
else else
textToUse = model.getValue(Task.NOTES); textToUse = model.getValue(Task.NOTES);
if (TextUtils.isEmpty(textToUse)) {
notesPreview.setText(R.string.TEA_notes_empty);
} else {
notesPreview.setText(textToUse); notesPreview.setText(textToUse);
notesPreview.setVisibility(TextUtils.isEmpty(textToUse) ? View.GONE : View.VISIBLE); }
linkifyDisplayView(); linkifyDisplayView();
} }

Loading…
Cancel
Save