From 852491fa1f48dc15ec823e2cb8d2a261f2eebc15 Mon Sep 17 00:00:00 2001 From: Tim Su Date: Tue, 9 Aug 2011 01:21:11 -0700 Subject: [PATCH] More theme issue fixes --- astrid/AndroidManifest.xml | 21 +++++++------------ .../astrid/notes/EditNoteActivity.java | 4 +++- astrid/res/anim/slide_bottom_in.xml | 2 +- astrid/res/anim/slide_bottom_out.xml | 2 +- astrid/res/layout/edit_note_activity.xml | 2 +- astrid/res/layout/task_adapter_row.xml | 4 ++-- astrid/res/values/styles.xml | 17 ++++++++++++++- .../astrid/activity/FilterListActivity.java | 2 +- .../astrid/activity/TaskListActivity.java | 2 +- .../astrid/service/UpgradeService.java | 13 ++++++++---- 10 files changed, 43 insertions(+), 26 deletions(-) diff --git a/astrid/AndroidManifest.xml b/astrid/AndroidManifest.xml index ebf60acf0..c5b2f4ef3 100644 --- a/astrid/AndroidManifest.xml +++ b/astrid/AndroidManifest.xml @@ -74,8 +74,7 @@ + android:windowSoftInputMode="stateHidden"> @@ -111,8 +110,7 @@ + android:finishOnTaskLaunch="true"> @@ -122,8 +120,7 @@ + android:windowSoftInputMode="stateHidden"> @@ -136,14 +133,12 @@ + android:windowSoftInputMode="stateHidden" /> - + @@ -416,7 +411,7 @@ + android:theme="@style/Theme.Dialog" /> @@ -455,7 +450,7 @@ + android:theme="@style/Theme.Dialog"/> @@ -533,7 +528,7 @@ + android:configChanges="orientation|keyboardHidden" /> diff --git a/astrid/plugin-src/com/todoroo/astrid/notes/EditNoteActivity.java b/astrid/plugin-src/com/todoroo/astrid/notes/EditNoteActivity.java index 9b3d8dcae..902763f2d 100644 --- a/astrid/plugin-src/com/todoroo/astrid/notes/EditNoteActivity.java +++ b/astrid/plugin-src/com/todoroo/astrid/notes/EditNoteActivity.java @@ -12,6 +12,7 @@ import org.json.JSONObject; import android.app.ListActivity; import android.app.ProgressDialog; import android.content.Context; +import android.graphics.Color; import android.os.Bundle; import android.text.Editable; import android.text.TextUtils; @@ -73,6 +74,7 @@ public class EditNoteActivity extends ListActivity { protected void onCreate(Bundle savedInstanceState) { DependencyInjectionService.getInstance().inject(this); super.onCreate(savedInstanceState); + setTheme(R.style.Theme_Dialog); setContentView(R.layout.edit_note_activity); long taskId = getIntent().getLongExtra(EXTRA_TASK_ID, -1); @@ -145,7 +147,7 @@ public class EditNoteActivity extends ListActivity { if(!TextUtils.isEmpty(task.getValue(Task.NOTES))) { TextView notes = new TextView(this); - notes.setTextAppearance(this, R.style.TextAppearance_TAd_ItemTitle); + notes.setLinkTextColor(Color.rgb(100, 160, 255)); notes.setTextSize(18); getListView().addHeaderView(notes); notes.setText(task.getValue(Task.NOTES)); diff --git a/astrid/res/anim/slide_bottom_in.xml b/astrid/res/anim/slide_bottom_in.xml index 42e5c8167..62e62f0a6 100644 --- a/astrid/res/anim/slide_bottom_in.xml +++ b/astrid/res/anim/slide_bottom_in.xml @@ -15,5 +15,5 @@ --> - + diff --git a/astrid/res/anim/slide_bottom_out.xml b/astrid/res/anim/slide_bottom_out.xml index 6ec12d235..fc88ea312 100644 --- a/astrid/res/anim/slide_bottom_out.xml +++ b/astrid/res/anim/slide_bottom_out.xml @@ -15,5 +15,5 @@ --> - + diff --git a/astrid/res/layout/edit_note_activity.xml b/astrid/res/layout/edit_note_activity.xml index 48fbeb747..8d378bb1d 100644 --- a/astrid/res/layout/edit_note_activity.xml +++ b/astrid/res/layout/edit_note_activity.xml @@ -19,7 +19,7 @@ android:gravity="center" android:visibility="gone" android:text="@string/ENA_loading" - style="@style/TextAppearance.TLA_NoItems" /> + android:textSize="20sp" /> @@ -17,7 +16,8 @@ + android:layout_height="wrap_content" + android:paddingBottom="4dip"> @drawable/background_transparent + true + @android:style/Animation.Translucent - + +