Hello,

For some reason my application is ignoring the theme applied to the 
Application in the manifest file only inside a viewpager.

I have an activity with 2 fragments:

<application 
android:icon="@drawable/ic_launcher" 
android:label="@string/app_name" 
android:theme="@android:style/Theme.Holo.Light" 
android:hardwareAccelerated="true">

The first fragment loads Holo.light just fine. But the second only applied 
Holo.Light on the button (which is outside the viewpager). Whatever I load 
using the ViewPager, it defaults to Holo.

This is the second fragment:


<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"; 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:orientation="vertical" > 
<Button 
android:id="@+id/button1" 
android:layout_width="wrap_content" 
android:layout_height="wrap_content" 
android:text="Button" /> 
<android.support.v4.view.ViewPager 
android:id="@+id/awesomepager" 
android:layout_width="match_parent" 
android:layout_height="match_parent" /> 
</LinearLayout>


By the way, this is on Android 3.1.
Any ideas?


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

Reply via email to