зеркало из https://github.com/mono/mail-archives.git
169 строки
8.5 KiB
HTML
169 строки
8.5 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [mono-android] Resuming Image
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20Resuming%20Image&In-Reply-To=CB0E05A1.CC27%25steven_john_pack%40yahoo.com.au">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="007798.html">
|
|
<LINK REL="Next" HREF="007808.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[mono-android] Resuming Image</H1>
|
|
<B>Tomasz Cielecki</B>
|
|
<A HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20Resuming%20Image&In-Reply-To=CB0E05A1.CC27%25steven_john_pack%40yahoo.com.au"
|
|
TITLE="[mono-android] Resuming Image">tomasz at ostebaronen.dk
|
|
</A><BR>
|
|
<I>Tue Dec 13 16:10:06 EST 2011</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="007798.html">[mono-android] Resuming Image
|
|
</A></li>
|
|
<LI>Next message: <A HREF="007808.html">[mono-android] Porting License Verification Library to mono
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#7802">[ date ]</a>
|
|
<a href="thread.html#7802">[ thread ]</a>
|
|
<a href="subject.html#7802">[ subject ]</a>
|
|
<a href="author.html#7802">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>How is your application structured? Are you using an activity to load
|
|
a splash screen and when the app is ready it then starts a main
|
|
activity like in the sample on Xamarins webpage?
|
|
|
|
You could maybe save a state about the app and check in OnResume
|
|
whether to show the splash screen again?
|
|
|
|
On Tue, Dec 13, 2011 at 9:52 PM, Steven Pack
|
|
<<A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">steven_john_pack at yahoo.com.au</A>> wrote:
|
|
><i>
|
|
</I>>><i>Hi All,
|
|
</I>>><i>
|
|
</I>>><i>I have a splash screen which shows up nicely on first run. However, if my
|
|
</I>>><i>app has been killed, when it resumes, it doesn¹t show the splash. Rather,
|
|
</I>>><i>it shows a slightly mangled version of one on of the activities.
|
|
</I>>><i>
|
|
</I>>><i>The activity in question has a custom title (see below), but when it's
|
|
</I>>><i>being resumed, the custom TypeFace and textSize is lost, the image on the
|
|
</I>>><i>left doesn't show and non-title area is just black.
|
|
</I>><i>
|
|
</I>><i> Is it meant to be showing the splash? If not, can I override the image
|
|
</I>><i> that is shown or something? It just doesn't look very slick during resume.
|
|
</I>><i>
|
|
</I>>><i>
|
|
</I>>><i><?xml version="1.0" encoding="utf-8"?>
|
|
</I>>><i><LinearLayout xmlns:android="<A HREF="http://schemas.android.com/apk/res/android"">http://schemas.android.com/apk/res/android"</A>
|
|
</I>>><i>           android:orientation="vertical"
|
|
</I>>><i>       android:layout_width="fill_parent"
|
|
</I>>><i>       android:layout_height="wrap_content">
|
|
</I>>><i>        <LinearLayout android:layout_width="fill_parent"
|
|
</I>>><i>                   android:layout_height="fill_parent"
|
|
</I>>><i>                   android:gravity="center_vertical|center_horizontal"
|
|
</I>>><i>                   android:orientation="horizontal"
|
|
</I>>><i>                               >
|
|
</I>>><i>            <ImageView
|
|
</I>>><i>                               android:id="@+id/home_button"
|
|
</I>>><i>                               android:layout_width="wrap_content"
|
|
</I>>><i>                               android:layout_height="wrap_content"
|
|
</I>>><i>                               android:src="@drawable/homeWhite"
|
|
</I>>><i>                               android:layout_margin="5dp"
|
|
</I>>><i>                               android:padding="4dp"
|
|
</I>>><i>                               android:scaleType="fitCenter"
|
|
</I>>><i>               />
|
|
</I>>><i>              <TextView
|
|
</I>>><i>                               android:id="@+id/title_text_view"
|
|
</I>>><i>                   android:layout_width="wrap_content"
|
|
</I>>><i>                   android:layout_height="wrap_content"
|
|
</I>>><i>                   android:gravity="center"
|
|
</I>>><i>                   android:layout_weight="1"
|
|
</I>>><i>                               android:layout_marginTop="3dp"
|
|
</I>>><i>                   android:text="Dictionary"
|
|
</I>>><i>                               android:textColor="@color/titletextcolor"
|
|
</I>>><i>                               android:textSize="22dp"
|
|
</I>>><i>                               android:paddingRight="30dp"
|
|
</I>>><i>                               android:ellipsize="end"
|
|
</I>>><i>                               android:singleLine="true"
|
|
</I>>><i>                   />
|
|
</I>>><i>       </LinearLayout>
|
|
</I>>><i></LinearLayout>
|
|
</I>>><i>
|
|
</I>>><i>The Splash Activity, which shows fine first time around is defined like
|
|
</I>>><i>this:
|
|
</I>>><i>
|
|
</I>>><i>
|
|
</I>>><i>
|
|
</I>>><i>[Activity (MainLauncher = true, Theme = "@style/Theme.Splash", NoHistory
|
|
</I>>><i>=
|
|
</I>>><i>true)]
|
|
</I>>><i>    public class SplashActivity : Activity, ISplashView
|
|
</I>>><i>
|
|
</I>>><i>
|
|
</I>><i>
|
|
</I>><i>
|
|
</I>><i> _______________________________________________
|
|
</I>><i> Monodroid mailing list
|
|
</I>><i> <A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">Monodroid at lists.ximian.com</A>
|
|
</I>><i>
|
|
</I>><i> UNSUBSCRIBE INFORMATION:
|
|
</I>><i> <A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">http://lists.ximian.com/mailman/listinfo/monodroid</A>
|
|
</I>
|
|
|
|
|
|
--
|
|
Med Venlig Hilsen / With Best Regards
|
|
Tomasz Cielecki
|
|
<A HREF="http://ostebaronen.dk">http://ostebaronen.dk</A>
|
|
</PRE>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="007798.html">[mono-android] Resuming Image
|
|
</A></li>
|
|
<LI>Next message: <A HREF="007808.html">[mono-android] Porting License Verification Library to mono
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#7802">[ date ]</a>
|
|
<a href="thread.html#7802">[ thread ]</a>
|
|
<a href="subject.html#7802">[ subject ]</a>
|
|
<a href="author.html#7802">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
|
|
<hr>
|
|
<a href="http://lists.ximian.com/mailman/listinfo/monodroid">More information about the Monodroid
|
|
mailing list</a><br>
|
|
</body></html>
|