Slider devices cause Activi ties to reset鈥

by RichardC » Fri, 20 Aug 2010 21:28:18 GMT


Slider devices cause Activi ties to reset鈥

by draf...@gmail.com » Fri, 20 Aug 2010 21:57:10 GMT


 Ah i missedunderstood what that meant! Thanks very much.

How do I use more than one variable though?

I have tried it as follows:

android:configChanges=["keyboard", "keyboardHidden", "orientation"]

But it wont compile for me

I get:

AndroidManifest.xml: Open quote is expected for attribute
"android:configChanges" associated with an  element type  "activity".
Error in an XML file: aborting build.

in the console.





--


Sponsored Links


Slider devices cause Activi ties to reset鈥

by draf...@gmail.com » Fri, 20 Aug 2010 21:59:29 GMT


 NeverMind, I got it!





--



Other Threads

1. Notification text expand to two lines

Helllo there,

Is there any settings/flags to expand the summary text of a
notification to two lines instead of 1? The text I am trying to put is
too long and it goes over the visible area?

Will try something like (text+"/n"+restOfText) tomorrow but I don't
think it's going to work...

Thanks,

Alberto

-- 

2. Possible (and not possible) customization of the Tab component

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello.

I've got an Activity with a Tab component, whose layout is shown
below. I need to do some customizations and I'd like to know what it's
possible to do and what not - in the latter case, I'll consider
dropping the Tab component and "emulating" it with some buttons.

1. Between the tvTaxon TextView and whatever is rendered in the
FrameLayout a solid 1px divider with a drop shadow below is rendered.
I'd like to get rid of that. I suppose that this drawable has been
designed for separating the TabWidget from the contents below, but as
you can see in my case I have an extra component (tvTaxon) between the
two. If it's not possible to get rid of the divider, I could consider
removing tvTaxon and replicating it in every Activity that is put into
the FrameLayout.

2. I'd like not to render the text in the buttons of the TabHost, only
the icon. Is it possible?

3. When moving to landscape mode, an horizontal TabHost is really a
waste of space. I'd like to specify an alternate layout for landscape
mode and have the TabHost vertically rendered at the left edge. Is it
possible?


Thanks.



<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@android:id/tabhost"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">

    <LinearLayout
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" >

        <TabWidget
            android:id="@android:id/tabs"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" />
        <TextView
            android:id="@+id/tvTaxon"
            style="@style/TextAppearance.Large"
            android:paddingLeft="4dip"
            android:paddingRight="4dip"
            android:paddingBottom="10dip"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" />
        <FrameLayout
            android:id="@android:id/tabcontent"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent" />
           
    </LinearLayout>
</TabHost>

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyIq8AACgkQeDweFqgUGxeJugCfVpWX2IuoGvDwD3pra4A4X9+m
JKgAnAlrebDGlmmEJ7NxR/fZ/UXDTFJE
=DeYb
-----END PGP SIGNATURE-----

-- 

3. RuntimeException retrieving resource

4. How to automatically restart widget update service after it is killed?

5. How to customize quick search box? can i add another button?

6. Timer in an App

7. TCP Client Issue