[android-developers] TextSwitcher and/or TranslateAnimation changed in API level 8 and upwards?

2010-12-22 Thread Leif
I am using a TextSwitcher and a TranslateAnimation to create a
slotmachine reel effect.

It works fine on API levels 4 through 7, but on API levels 8 and 9 it
breaks down for some reason.

Any clues as to why this is happening?

The UI structure is like this:

FrameLayout->TextSwitcher->TextViews

Any known changes in TextSwitcher, TextView or TranslateAnimation
since API level 7?

Any pointers appreciated!

Regards,
Leif

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: TextSwitcher and/or TranslateAnimation changed in API level 8 and upwards?

2010-12-22 Thread Leif
Digging a little deeper reveals that there seems to be a difference in
how the textviews are sized (i.e. the children of the TextSwitcher).
On API levels 4-7 the height is 2904 pixels, while on API levels 8 and
9 the height is only 58 pixels.

So, something seems to have happened in terms of how the views are
measured?
Would be very happy if someone from the Google team could comment on
this.

Regards,
Leif


On 22 Dec, 09:30, Leif  wrote:
> I am using a TextSwitcher and a TranslateAnimation to create a
> slotmachine reel effect.
>
> It works fine on API levels 4 through 7, but on API levels 8 and 9 it
> breaks down for some reason.
>
> Any clues as to why this is happening?
>
> The UI structure is like this:
>
> FrameLayout->TextSwitcher->TextViews
>
> Any known changes in TextSwitcher, TextView or TranslateAnimation
> since API level 7?
>
> Any pointers appreciated!
>
> Regards,
> Leif

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] WebView not taking external css styles?

2011-01-13 Thread Leif
I am trying to make an "about" screen for my app as a html file with
external styles in a css file.

In the css file I specify a particular style for  tags. The thing
is that this particular style seems to be ignored by the WebView.
Works fine when browsing the exact same location with the built-in web
browser.

Any clues?

Maybe the WebView doesn't take any of the styles I have specified,
only it renders it close enough to my intentions anyway?

Any settings that must be specified in order to make the WebView load
and apply external css styles?

Any ideas are welcome!

Regards,

Leif

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: custom attributes in library projects

2010-11-23 Thread Leif
And same here too...

On 9 Nov, 07:01, Open  wrote:
> Same problem here.
>
> On Sep 14, 9:58 pm, Tom  wrote:
>
>
>
>
>
>
>
> > i'm also hitting this issue.  can't create a xml-configurable custom
> > view in alibraryproject..
>
> > is there a bug filed on this already?  is there an ETA for a fix?
>
> > thanks
>
> > On Aug 20, 5:04 am, Clément Plantier  wrote:
>
> > > Any update about this problem?
>
> > > On Jul 9, 8:18 pm, Xavier Ducrohet  wrote:
>
> > > > Ah, there's a problem with the namespace.
>
> > > > From aapt's point of view all the resources are compiled for the
> > > > package name of the application (com.mycompany.test.app in your case),
> > > > so your "customValue" attribute is defined in that namespace, and not
> > > > in the namespace of thelibrary.
>
> > > > At this time, the only solution is to remove the layout from 
> > > > thelibraryand move it into the apps and edit the namespace to match the
> > > > application package.
>
> > > > We'll look at fixing this.
> > > > xav
>
> > > > On Thu, Jul 8, 2010 at 3:27 AM, Vladimir Lebedev-Schmidthof
>
> > > >  wrote:
> > > > > Hello,
>
> > > > > Having custom attribute (inattrs.xml) inlibraryproject leads to
> > > > > compilation fail of theprojectdependent of thatlibrary.
>
> > > > > I.e.:
> > > > > MyLibproject(library)
>
> > > > > AndroidManifest.xml:
> > > > > http://schemas.android.com/apk/res/android";
> > > > >      package="com.mycompany.test.lib"
> > > > >      android:versionCode="1"
> > > > >      android:versionName="1.0">
> > > > > ...
> > > > > 
>
> > > > > res/layout/main.xml:
> > > > > 
> > > > > http://schemas.android.com/apk/res/
> > > > > android"
> > > > >        xmlns:my="http://schemas.android.com/apk/res/
> > > > > com.mycompany.test.lib"
> > > > >    android:orientation="vertical"
> > > > >    android:layout_width="fill_parent"
> > > > >    android:layout_height="fill_parent"
> > > > >    >
> > > > >  > > > >    android:id="@+id/my_widget"
> > > > >    android:layout_width="fill_parent"
> > > > >    android:layout_height="fill_parent"
> > > > >    my:customValue="324"/>
> > > > > 
>
> > > > > res/values/attrs.xml:
> > > > > 
> > > > >        
> > > > >                
> > > > >        
> > > > > 
>
> > > > > And there are nothing in TestApp except AndroidManifest.xml:
> > > > > http://schemas.android.com/apk/res/android";
> > > > >      package="com.mycompany.test.app"
> > > > >      android:versionCode="1"
> > > > >      android:versionName="1.0">
> > > > > ...
> > > > > 
>
> > > > > And aapt says that
> > > > > res/layout/main.xml:13: error:No resource identifier found for> 
> > > > > attribute'customValue' in package 'com.mycompany.test.lib'
>
> > > > > How to avoid this except for no having custom attributes inlibrary?
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > > > Groups "Android Developers" group.
> > > > > To post to this group, send email to 
> > > > > android-developers@googlegroups.com
> > > > > To unsubscribe from this group, send email to
> > > > > android-developers+unsubscr...@googlegroups.com
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/android-developers?hl=en
>
> > > > --
> > > > Xavier Ducrohet
> > > > Android SDK Tech Lead
> > > > Google Inc.
>
> > > > Please do not send me questions directly. Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] narrowing intent filters for PACKAGE_ADDED PACKAGE_REMOVED

2010-10-01 Thread Leif
I have a broadcastreceiver that listens to PACKAGE_ADDED and
PACKAGE_REMOVED action.

It works fine, but I think my receiver will be called whenever a
package is being added/removed from the device. I am only interested
in packages in my own project. Is there a way to specify in the intent
filter that only certain package names should be considered?
preferrably with somekind of wildcard option...

Kind regards

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Linear Layout

2010-06-01 Thread Leif
I've seen exactly the same problem when adding a custom View object.
If added first, no other objects are given any space in the
LinearLayout regardless of weight.
If added after other objects, it works fine.

On May 31, 9:43 am, Anton Persson  wrote:
> Hello,
>
> I have a set of custom views that I would like to add to a LinearLayout
> object. However, the first object I add to the layout (I do this
> dynamically, during runtime) has a OnMeasure method that tries to get as
> much space as possible resulting in that it get's all the space LinearLayout
> object. This is correct behaviour, but when I then add more objects
> following that I want the allocated area for the first object to decrease so
> the others will fit.
>
> As it is now, each following object will get zero space, and hence won't be
> visible.
>
> Can this be solved somehow?
>
>    Best Regards
>     Anton

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Emulator issue 12987 status?

2011-04-29 Thread Leif
Hello,

I wonder if someone from the Google Android team could comment on the
status of the issue 12987 
http://code.google.com/p/android/issues/detail?id=12987

Is it confirmed to be an emulator bug?
Is confirmed to be an emulator-only bug?
Is there a fix in the works?
If so, when is it scheduled?

Or, do I need to dive into the various work-arounds that have been
suggested in order to be able to test apps on versions > 2.2?

Best regards

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: The audacity !

2009-11-22 Thread Leif Andersen
Well, whoever wrote that letter certainly never took much time to
learn the English language very well.  I'm okay with a few typos, and
a few pieces of bad grammar and pros, after all, the world is a multi-
lingual, international, place.  Not to mention people make mistakes,
I'm willing to bet that I even made on in here.  However, that letter
was horrid.

~Leif

On Nov 17, 4:05 am, Michael Rueger  wrote:
> Disconnect wrote:
> > Report them to paypal :)
>
> Or start downloading. *a lot* ;-)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Getting a Nexus One

2009-12-29 Thread Leif Andersen
I am looking around for a piece of hardware to actually test my apps
on.  I was looking at the droid, until the roomers about the Nexus One
started coming out.  I then read this: 
http://www.cnet.com/8301-19736_1-10421101-251.html
Does anyone have any idea of how this 'invite only' system is going to
work?  Thank you.

~Leif

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to Intercept Post request in Android WebView?

2012-05-21 Thread Leif Jakob
Hi,

I've found an ugly solution working for android 2.3 (implementing an 
android.net.http.RequestQueue and gluing it into the framework with 
reflection) but it doesn't work on ICS anymore... If your ICS is compiled 
with CHROME_NETWORK_STACK you are out of look.

The idea with a proxy is ok, but if you want to read post-headers for SSL 
sites you get in even more trouble.

Cheers

Leif

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Intent Filter for Media Player (Youtube Video Play)

2011-01-02 Thread Leif Andersen
ORit brings you here.

(Sorry, but the amount of times I do a google search, and fine forum
posts saying 'do a google search' without actually giving me the
answer is starting to drive me nuts).

~Leif

0On Dec 20 2010, 8:27 am, TreKing  wrote:
> On Mon, Dec 20, 2010 at 2:04 AM, sjor  wrote:
> > How can I provide this in my manifest file?
>
> Google is your friend - the first hit for "android youtube intent filter"
> shows an example.
>
> --- 
> --
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en