From 127fb2d648331c12c4ee21b38d9020a0390f4188 Mon Sep 17 00:00:00 2001 From: Jimmy Shih Date: Mon, 21 Nov 2011 13:52:11 -0800 Subject: [PATCH] Fix comment on b32833d4588e - use Activity.showDialog to display dialogs to avoid memory leaks when just calling dialog.show, and to support rotation. --- MyTracks/res/layout/about.xml | 106 +++++------------- MyTracks/res/values/styles.xml | 27 +++++ .../android/apps/mytracks/MyTracks.java | 47 +++++++- .../apps/mytracks/WelcomeActivity.java | 58 ++++++---- 4 files changed, 133 insertions(+), 105 deletions(-) diff --git a/MyTracks/res/layout/about.xml b/MyTracks/res/layout/about.xml index 9d6e5f615..38ca8638f 100644 --- a/MyTracks/res/layout/about.xml +++ b/MyTracks/res/layout/about.xml @@ -16,17 +16,20 @@ limitations under the License. --> + android:layout_height="wrap_content" + android:layout_width="wrap_content"> - + android:paddingBottom="2dp" + android:stretchColumns="1"> + @@ -42,113 +45,58 @@ limitations under the License. android:textSize="15sp" /> - - - - + + style="@style/AboutTextView.Column1"/> + style="@style/AboutTextView"/> + style="@style/AboutTextView"/> + style="@style/AboutTextView"/> + style="@style/AboutTextView"/> + style="@style/AboutTextView"/> + style="@style/AboutTextView"/> - - - - + + style="@style/AboutTextView.Column1"/> + style="@style/AboutTextView"/> - - - - + + style="@style/AboutTextView.Column1"/> - - - - - + style="@style/AboutTextView.Url"/> + + + style="@style/AboutTextView.Column1"/> + style="@style/AboutTextView.Url"/> - - \ No newline at end of file diff --git a/MyTracks/res/values/styles.xml b/MyTracks/res/values/styles.xml index 50fa1478d..5094df6b1 100644 --- a/MyTracks/res/values/styles.xml +++ b/MyTracks/res/values/styles.xml @@ -15,6 +15,33 @@ See the License for the specific language governing permissions and limitations under the License. --> + + + + + + + + + + + + +