Adjusted some default layouts

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

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

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

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

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

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

Loading…
Cancel
Save