GithubHelp home page GithubHelp logo

holoeverywhere's Introduction

HoloEverywhere
Build Status
Latest stable version: 2.1.0 Darkest Sunrise
Demo: Stable | Latest
Issues: Stable | Latest

What is it?

Bringing Holo Theme from Android 4.1 to 2.1 and above.
Donate

How to use?

Screenshots

Screenshot 1 Screenshot 2 Screenshot 3 Screenshot 4 Screenshot 5 Screenshot 6 Screenshot 7 Screenshot 8 Screenshot 9 Screenshot 10

Featured implementations

Write to Sergey for add your application to this list.

Contact

Sergey:

Christophe:

License

MIT License, full text of license see here

holoeverywhere's People

Contributors

alexeyr15 avatar antonyt avatar bartoszgadzala avatar braisgabin avatar christopheversieux avatar citux avatar coplas avatar croemmich avatar ekinlyw avatar ghstub avatar goober avatar httpdispatch avatar jbaginski avatar jhot avatar kofi-de-com avatar lalitmaganti avatar lgawin avatar mattprecious avatar mdumrauf avatar mkuprionis avatar navarr avatar rkistner avatar robertoartiles avatar saik0 avatar saik0shinigami avatar sethwoodworth avatar veeti avatar vkrivenko avatar william-ferguson-au avatar zhalfinity avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

holoeverywhere's Issues

SwitchPreference - odd behaviour

Hey!

Just found an odd behaviour with the SwitchPreference.

I have an preferences.xml file with:

  1. SwitchPreference
  2. SwitchPreference - Controls enabled/disabled state of RingtonePreference
  3. RingtonePreference

Now, when I attempt to disable switch 2 (and disable 3), it always flicks back on straight away. However when I turn switch 1 off it turns switch 2 off and then disables 3.

Obviously this isn't quite what we want....

I'll just paste in the relevant bit of my XML, you probably remember the rest of it from last week anyway :)

   <SwitchPreference
        holo:defaultValue="false"
        holo:key="adult"
        holo:persistent="true"
        holo:summary="Show content marked at 18+"
        holo:title="Adult Content" />
</PreferenceCategory>

<PreferenceCategory
    holo:key="pref_category_notificaions"
    holo:title="@string/notifications" >

    <SwitchPreference
        holo:defaultValue="true"
        holo:key="notif_active"
        holo:persistent="true"
        holo:title="Notifications Active" />

    <RingtonePreference
        holo:dependency="notif_active"
        holo:key="notif_sound"
        holo:persistent="true"
        holo:ringtoneType="notification"
        holo:showDefault="true"
        holo:title="Notification Sound" >
    </RingtonePreference>

</PreferenceCategory>

AutoCompleteTextView style not covered

Hello,
AutoCompleteTextViews do not seem to get styled.
Best regards,
Martin

EDIT, Solved:
This is the list where to find the Android style attribute names:
http://developer.android.com/reference/android/R.attr.html

Simply adding
<item name="android:autoCompleteTextViewStyle">@style/EditTextHoloDark</item>
in
<style name="Theme.HoloEverywhereDark.Sherlock" parent="Theme.Sherlock">
or wherever it is needed should solve the issue till the next update.

No Style for Tabs

Tabs still need to be added to HoloEverywhere. If I can figure it out I'll pullreq some code but I don't know that I can.

AlertDialog Buttons with setItems

When using setItems, the buttons don't show up. It's a quick fix really, you just need to apply a layout weight to the list so it only fills left over space after the other views are allocated.

I added

list.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 1.f));

to the setItems methods.

Error inflating class android.widget.DatePicker

First of a question about the current Dev version:
When do I have to cast my Views to com.WaZabe... and when to android.widget...? Right now it doesn't make any sense to me as on Android 4 Spinners are inflated as com.WaZabe while EditText are inflated as android.widget. It seems to be very inconsistent and would require a lot of work to adapt the current HoloEverywhere version with my app.

Second:
Line of code:
DatePickerDialog datePickDiag=new DatePickerDialog(getActivity(), odsl, maxYear, maxMonth, maxDay);

Stacktrace:
09-17 01:08:29.999: E/AndroidRuntime(8719): FATAL EXCEPTION: main 09-17 01:08:29.999: E/AndroidRuntime(8719): android.view.InflateException: Binary XML file line #20: Error inflating class android.widget.DatePicker 09-17 01:08:29.999: E/AndroidRuntime(8719): at android.view.LayoutInflater.createView(LayoutInflater.java:613) 09-17 01:08:29.999: E/AndroidRuntime(8719): at com.WazaBe.HoloEverywhere.LayoutInflater.onCreateView(LayoutInflater.java:139) 09-17 01:08:29.999: E/AndroidRuntime(8719): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660) 09-17 01:08:29.999: E/AndroidRuntime(8719): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685) 09-17 01:08:29.999: E/AndroidRuntime(8719): at android.view.LayoutInflater.inflate(LayoutInflater.java:466) 09-17 01:08:29.999: E/AndroidRuntime(8719): at android.view.LayoutInflater.inflate(LayoutInflater.java:396) 09-17 01:08:29.999: E/AndroidRuntime(8719): at android.view.LayoutInflater.inflate(LayoutInflater.java:352) 09-17 01:08:29.999: E/AndroidRuntime(8719): at android.app.DatePickerDialog.<init>(DatePickerDialog.java:108) 09-17 01:08:29.999: E/AndroidRuntime(8719): at android.app.DatePickerDialog.<init>(DatePickerDialog.java:79) 09-17 01:08:29.999: E/AndroidRuntime(8719): at com.jaumo.login.Register_Step2$6.<init>(Register_Step2.java:280) 09-17 01:08:29.999: E/AndroidRuntime(8719): at com.jaumo.login.Register_Step2.openDatePicker(Register_Step2.java:280) 09-17 01:08:29.999: E/AndroidRuntime(8719): at com.jaumo.login.Register_Step2.onClick(Register_Step2.java:252) 09-17 01:08:29.999: E/AndroidRuntime(8719): at android.view.View.performClick(View.java:4084) 09-17 01:08:29.999: E/AndroidRuntime(8719): at android.view.View$PerformClick.run(View.java:16966) 09-17 01:08:29.999: E/AndroidRuntime(8719): at android.os.Handler.handleCallback(Handler.java:615) 09-17 01:08:29.999: E/AndroidRuntime(8719): at android.os.Handler.dispatchMessage(Handler.java:92) 09-17 01:08:29.999: E/AndroidRuntime(8719): at android.os.Looper.loop(Looper.java:137) 09-17 01:08:29.999: E/AndroidRuntime(8719): at android.app.ActivityThread.main(ActivityThread.java:4939) 09-17 01:08:29.999: E/AndroidRuntime(8719): at java.lang.reflect.Method.invokeNative(Native Method) 09-17 01:08:29.999: E/AndroidRuntime(8719): at java.lang.reflect.Method.invoke(Method.java:511) 09-17 01:08:29.999: E/AndroidRuntime(8719): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791) 09-17 01:08:29.999: E/AndroidRuntime(8719): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:558) 09-17 01:08:29.999: E/AndroidRuntime(8719): at dalvik.system.NativeStart.main(Native Method) 09-17 01:08:29.999: E/AndroidRuntime(8719): Caused by: java.lang.reflect.InvocationTargetException 09-17 01:08:29.999: E/AndroidRuntime(8719): at java.lang.reflect.Constructor.constructNative(Native Method) 09-17 01:08:29.999: E/AndroidRuntime(8719): at java.lang.reflect.Constructor.newInstance(Constructor.java:417) 09-17 01:08:29.999: E/AndroidRuntime(8719): at android.view.LayoutInflater.createView(LayoutInflater.java:587) 09-17 01:08:29.999: E/AndroidRuntime(8719): ... 22 more 09-17 01:08:29.999: E/AndroidRuntime(8719): Caused by: java.lang.ClassCastException: com.WazaBe.HoloEverywhere.widget.CalendarView cannot be cast to android.widget.CalendarView 09-17 01:08:29.999: E/AndroidRuntime(8719): at android.widget.DatePicker.<init>(DatePicker.java:212) 09-17 01:08:29.999: E/AndroidRuntime(8719): at android.widget.DatePicker.<init>(DatePicker.java:145) 09-17 01:08:29.999: E/AndroidRuntime(8719): ... 25 more

Maven release 1.2.0

Is it possible the version on Maven repository has a bug in it? I have errors like:

app/target/unpack/apklibs/com.github.christopheversieux_holoeverywhere-library_apklib_1.2.0/res/values/styles.xml:482: error: Resource entry Holo.Theme.Sherlock.Light already has bag item android:listChoiceIndicatorSingle.

I looked into that file and it does in fact have android:listChoiceIndicatorSingle defined twice in some of the themes, which I think is what is raising the error when I try to build it with Maven.

Is EditTextHolo deprecated?

Hi Christophe

First of all I should thank you for your project. It's very helpful.

But now I have issue and not sure if I'm doing it right.

This is my layout code

        <EditText
            android:inputType="text"
            android:layout_width="fill_parent" 
            android:layout_height="wrap_content"
            android:text="Booo"/>
        <com.WazaBe.HoloEverywhere.EditTextHolo
            android:inputType="text"
            android:layout_width="fill_parent" 
            android:layout_height="wrap_content"
            android:text="Booo Holo"/>

Result on my 2.3.4 looks like

Holo

So EditTextHolo doesn't work and native EditText stylized like it should.

Can you update example if it's right behaviour because I think it could confuse new users.

Best regards, Roman

Button styling in Dialogs

Hi Christophe,

I am trying to make my own custom dialog that extends the dialog but I have problems with the buttons.

When I use your layout alert_dialog_holo.xml and inflate it, the 3 buttons looks just fine.

But whenn I create the buttons programatically and add them to the layout they are not styled with the holo theme anymore.

Do you know what happened?

Views always rendered with ARGB_8888

Changing from using the style Theme.Sherlock.Light.DarkActionBar to Holo.Theme.Sherlock.Light.DarkActionBar causes views to be rendered using ARGB_8888 instead of the default.

On Android 2.2 (< 2.3?), where this would've been something else (ARGB_565?), the performance is decreased largely on some devices. On devices running 2.3 or higher this does not affect anything.

It could also be a question of dithering/no dithering.

I haven't found the cause of this, but I'd be forever thankful if this could be fixed, so it uses the default value instead.

Work around Typeface.createFromAsset memory leak

Hi,

I ran into an Android memory leak issue & I thought you may want to consider working around this in HoloEverywhere. Here are the details:

I noticed that my app's memory consumption kept increasing as I navigated through the UI. I ran "adb shell dumpsys meminfo" and found that the Roboto type face assets seemed to get leaked each time we load the asset:

Asset Allocations
zip:/data/app/com.pansieve.telemetry-2.apk:/resources.arsc: 132K
zip:/data/app/com.pansieve.telemetry-2.apk:/assets/Roboto-Regular.ttf: 155K
zip:/data/app/com.pansieve.telemetry-2.apk:/assets/Roboto-Bold.ttf: 160K
zip:/data/app/com.pansieve.telemetry-2.apk:/assets/Roboto-Regular.ttf: 155K
zip:/data/app/com.pansieve.telemetry-2.apk:/assets/Roboto-Bold.ttf: 160K
zip:/data/app/com.pansieve.telemetry-2.apk:/assets/Roboto-Regular.ttf: 155K
zip:/data/app/com.pansieve.telemetry-2.apk:/assets/Roboto-Regular.ttf: 155K
zip:/data/app/com.pansieve.telemetry-2.apk:/assets/Roboto-Regular.ttf: 155K
....

This seems to be an Android issue (at least for my device). I've implemented the following fix http://code.google.com/p/android/issues/detail?id=9904#c7 in my clone of HoloEverywhere. I'm not sure if this is a common issue, but may be something you'd want to work around. Let me know if you'd like me to push the changes to you.

Regards,
Tomer

HoloAlertDialogBuilder don't use native implementation on Android 3.0+

I've thought it would be nice if HoloAlertDialogBuilder uses the native AlertDialog.Builder implementation on android API version >= 11, because for now, it uses the custom implementation everywhere, and the blue line under the title on the custom implementation is a little bit larger than on the native ICS implementation.

It would also be usefull if futures android versions change their dialogs' UIs.

I've already written a very small modification for this :

HoloAlertDialogBuilder.java :

package com.WazaBe.HoloEverywhere;

import android.app.AlertDialog;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

public class HoloAlertDialogBuilder extends AlertDialog.Builder {

    private final Context mContext;
    private ImageView mIcon;
    private TextView mMessage;
    private TextView mTitle;

    public HoloAlertDialogBuilder(Context context) {
        super(context);
        mContext = context;
        if(Build.VERSION.SDK_INT<11){ //This will make a customdialog only on Android versions < 3.0
            // Using the full layout give me a strange top divider in Donut and
            // Eclair in when using setView. Using second idea breaks custom View.
            Boolean useFullLayout = true;

            if (useFullLayout) {
                View customTitle = View.inflate(mContext,
                        R.layout.alert_dialog_title, null);
                mTitle = (TextView) customTitle.findViewById(R.id.alertTitle);
                FontLoader.loadFont(mTitle, FontLoader.ROBOTO_REGULAR);
                mIcon = (ImageView) customTitle.findViewById(R.id.icon);
                setCustomTitle(customTitle);

                View customMessage = View.inflate(mContext,
                        R.layout.alert_dialog_message, null);
                mMessage = (TextView) customMessage.findViewById(R.id.message);
                FontLoader.loadFont(mMessage, FontLoader.ROBOTO_REGULAR);
                setView(customMessage);
            } else {
                View customView = View.inflate(mContext,
                        R.layout.alert_dialog_holo, null);
                mTitle = (TextView) customView.findViewById(R.id.alertTitle);
                FontLoader.loadFont(mTitle, FontLoader.ROBOTO_REGULAR);
                mIcon = (ImageView) customView.findViewById(R.id.icon);
                mMessage = (TextView) customView.findViewById(R.id.message);
                FontLoader.loadFont(mMessage, FontLoader.ROBOTO_REGULAR);
                setView(customView);
            }
        }





    }

    @Override
    public HoloAlertDialogBuilder setIcon(Drawable icon) {
        if(Build.VERSION.SDK_INT<11){ // On android versions >= 3, this make the call of classic implementation
            mIcon.setImageDrawable(icon);
            return this;
        }else{
            return (HoloAlertDialogBuilder) super.setIcon(icon);
        }

    }

    @Override
    public HoloAlertDialogBuilder setIcon(int drawableResId) {
        if(Build.VERSION.SDK_INT<11){
            mIcon.setImageResource(drawableResId);
            return this;
        }else{
            return (HoloAlertDialogBuilder) super.setIcon(drawableResId);
        }
    }

    @Override
    public HoloAlertDialogBuilder setMessage(CharSequence text) {
        if(Build.VERSION.SDK_INT<11){
            mMessage.setText(text);
            return this;
        }else{
            return (HoloAlertDialogBuilder)super.setMessage(text);
        }
    }

    @Override
    public HoloAlertDialogBuilder setMessage(int textResId) {
        if(Build.VERSION.SDK_INT<11){
            mMessage.setText(textResId);
            return this;
        }else{
            return (HoloAlertDialogBuilder)super.setMessage(textResId);
        }
    }

    @Override
    public HoloAlertDialogBuilder setTitle(CharSequence text) {
        if(Build.VERSION.SDK_INT<11){
            mTitle.setText(text);
            return this;
        }else{
            return (HoloAlertDialogBuilder)super.setTitle(text);
        }
    }

    @Override
    public HoloAlertDialogBuilder setTitle(int textResId) {
        if(Build.VERSION.SDK_INT<11){
            mTitle.setText(textResId);
            return this;
        }else{
            return (HoloAlertDialogBuilder)super.setTitle(textResId);
        }

    }

}

AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.WazaBe.HoloEverywhere"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="4" /> <!-- Because the use of Build.VERSION requires minSdkVersion=4 -->

</manifest>

And now, you've got a custom dialog on Android < 3.0 and a native Holo dialog on Android >= 3.0

Switch doesn't work under 4.0

I'm using the new switch button, with the KFramework-SW library, and it's working under 2.1, but under 4.0 crashes.

That's how i'm using it in the xml:

< k.framework.lib.sw.Switch
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true" />

Unable to run HoloDemoActivity

Having some trouble getting the demo to work. I can build it in Eclipse (Indigo build 20120216-1857), but when I attempt to run it from Eclipse, I get the following log messages. I've tried 'fix project properties', build clean, restarting Eclipse and my Android device, using the simulator; all with the same bad result.

Performing com.WazaBe.HoloDemo.HoloDemoActivity activity launch
[2012-07-10 17:17:10 - HoloDemo] Automatic Target Mode: using device '45071874280C117'
[2012-07-10 17:17:10 - HoloDemo] Uploading HoloDemo.apk onto device '45071874280C117'
[2012-07-10 17:17:12 - HoloDemo] Installing HoloDemo.apk...
[2012-07-10 17:17:15 - HoloDemo] Success!
[2012-07-10 17:17:15 - HoloDemo] Starting activity com.WazaBe.HoloDemo.HoloDemoActivity on device 45071874280C117
[2012-07-10 17:17:15 - HoloDemo] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2012-07-10 17:17:18 - HoloDemo] Starting activity com.WazaBe.HoloDemo.HoloDemoActivity on device 45071874280C117
[2012-07-10 17:17:18 - HoloDemo] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2012-07-10 17:17:21 - HoloDemo] Starting activity com.WazaBe.HoloDemo.HoloDemoActivity on device 45071874280C117
[2012-07-10 17:17:22 - HoloDemo] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2012-07-10 17:17:25 - HoloDemo] Starting activity com.WazaBe.HoloDemo.HoloDemoActivity on device 45071874280C117
[2012-07-10 17:17:25 - HoloDemo] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2012-07-10 17:17:28 - HoloDemo] Starting activity com.WazaBe.HoloDemo.HoloDemoActivity on device 45071874280C117
[2012-07-10 17:17:28 - HoloDemo] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.WazaBe.HoloDemo/.HoloDemoActivity }
[2012-07-10 17:17:28 - HoloDemo] ActivityManager: Error type 3
[2012-07-10 17:17:28 - HoloDemo] ActivityManager: Error: Activity class {com.WazaBe.HoloDemo/com.WazaBe.HoloDemo.HoloDemoActivity} does not exist.

Progress bar not spinning on Android 2.3

When using the light theme on the holo demo, the progress bars are not spinning but they do with the dark theme.

The horizontal indeterminate progress bar works with both themes.

Remove unused ic_launcher.png files and strings

Thanks for the library!

I noticed that there are ic_launcher.png files in drawable directories. This may seem safe, but actually will be packaged with the app and possibly causing the app to use the wrong icon. For example, an app defines only xhdpi icon for launcher icon, when it runs on hdpi device, it will use the icon from HoloEverywhere lib instead of scaling down the xhdpi icon. Hence it should be removed.

Also for app_name, hello, and (seemingly) spinner_prompt strings.

Also planets array. This may cause unwanted consequences to the app.

Thanks for the library, again!

AlertDialog setItems

I'm using an AlertDialog with this code:

AlertDialog.Builder builder = new AlertDialog.Builder(this);
        CharSequence[] items = {"1", "2"};
        builder.setTitle("Title").setItems(items, null);
        builder.show();

within an Activity extending from SActivity, and it gives me the following error:

09-14 08:44:10.123: E/AndroidRuntime(460): Uncaught handler: thread main exiting due to uncaught exception
09-14 08:44:10.163: E/AndroidRuntime(460): android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.view.LayoutInflater.createView(LayoutInflater.java:513)
09-14 08:44:10.163: E/AndroidRuntime(460):  at com.WazaBe.HoloEverywhere.LayoutInflater.onCreateView(LayoutInflater.java:135)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.view.LayoutInflater.inflate(LayoutInflater.java:385)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:332)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.widget.ArrayAdapter.getView(ArrayAdapter.java:323)
09-14 08:44:10.163: E/AndroidRuntime(460):  at com.WazaBe.HoloEverywhere.ArrayAdapter.getView(ArrayAdapter.java:51)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.widget.AbsListView.obtainView(AbsListView.java:1274)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.widget.ListView.measureHeightOfChildren(ListView.java:1147)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.widget.ListView.onMeasure(ListView.java:1060)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.view.View.measure(View.java:7964)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3023)
09-14 08:44:10.163: E/AndroidRuntime(460):  at com.WazaBe.HoloEverywhere.LinearLayout.measureChildWithMargins(LinearLayout.java:161)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:888)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.widget.LinearLayout.measureVertical(LinearLayout.java:350)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.widget.LinearLayout.onMeasure(LinearLayout.java:278)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.view.View.measure(View.java:7964)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3023)
09-14 08:44:10.163: E/AndroidRuntime(460):  at com.WazaBe.HoloEverywhere.LinearLayout.measureChildWithMargins(LinearLayout.java:161)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:888)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.widget.LinearLayout.measureVertical(LinearLayout.java:350)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.widget.LinearLayout.onMeasure(LinearLayout.java:278)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.view.View.measure(View.java:7964)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3023)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.view.View.measure(View.java:7964)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3023)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.view.View.measure(View.java:7964)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.view.ViewRoot.performTraversals(ViewRoot.java:763)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.view.ViewRoot.handleMessage(ViewRoot.java:1633)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.os.Handler.dispatchMessage(Handler.java:99)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.os.Looper.loop(Looper.java:123)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.app.ActivityThread.main(ActivityThread.java:4363)
09-14 08:44:10.163: E/AndroidRuntime(460):  at java.lang.reflect.Method.invokeNative(Native Method)
09-14 08:44:10.163: E/AndroidRuntime(460):  at java.lang.reflect.Method.invoke(Method.java:521)
09-14 08:44:10.163: E/AndroidRuntime(460):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
09-14 08:44:10.163: E/AndroidRuntime(460):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
09-14 08:44:10.163: E/AndroidRuntime(460):  at dalvik.system.NativeStart.main(Native Method)
09-14 08:44:10.163: E/AndroidRuntime(460): Caused by: java.lang.reflect.InvocationTargetException
09-14 08:44:10.163: E/AndroidRuntime(460):  at com.WazaBe.HoloEverywhere.TextView.<init>(TextView.java:15)
09-14 08:44:10.163: E/AndroidRuntime(460):  at java.lang.reflect.Constructor.constructNative(Native Method)
09-14 08:44:10.163: E/AndroidRuntime(460):  at java.lang.reflect.Constructor.newInstance(Constructor.java:446)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.view.LayoutInflater.createView(LayoutInflater.java:500)
09-14 08:44:10.163: E/AndroidRuntime(460):  ... 39 more
09-14 08:44:10.163: E/AndroidRuntime(460): Caused by: android.content.res.Resources$NotFoundException: File res/drawable/item_background_holo_dark.xml from color state list resource ID #0x0
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.content.res.Resources.loadColorStateList(Resources.java:1813)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.content.res.TypedArray.getColorStateList(TypedArray.java:289)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.widget.TextView.<init>(TextView.java:627)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.widget.TextView.<init>(TextView.java:320)
09-14 08:44:10.163: E/AndroidRuntime(460):  ... 43 more
09-14 08:44:10.163: E/AndroidRuntime(460): Caused by: android.content.res.Resources$NotFoundException: File res/drawable/item_background_holo_dark.xml from xml type colorstatelist resource ID #0x0
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.content.res.Resources.loadXmlResourceParser(Resources.java:1920)
09-14 08:44:10.163: E/AndroidRuntime(460):  at android.content.res.Resources.loadColorStateList(Resources.java:1808)
09-14 08:44:10.163: E/AndroidRuntime(460):  ... 46 more

but only when using setItems. I've tested in 2.1, 2.3 and 4.0, and in 4.0 doesn't crash

Typeface cannot be made

With the newest version a user always gets the following error-message:

java.lang.RuntimeException: native typeface cannot be made
at android.graphics.Typeface.(Typeface.java:147)
at android.graphics.Typeface.createFromAsset(Typeface.java:121)
at com.WazaBe.HoloEverywhere.FontLoader.loadFont(FontLoader.java:20)
at com.WazaBe.HoloEverywhere.HoloAlertDialogBuilder.(HoloAlertDialogBuilder.java:41)
at com.tundem.zuzzle.GameActivity.doYouReallyWantToExit(GameActivity.java:616)
at com.tundem.zuzzle.GameActivity.onKeyDown(GameActivity.java:209)
at android.view.KeyEvent.dispatch(KeyEvent.java:1326)
at android.app.Activity.dispatchKeyEvent(Activity.java:2078)
at com.actionbarsherlock.app.SherlockFragmentActivity.dispatchKeyEvent(SherlockFragmentActivity.java:122)
at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1709)
at android.view.ViewRoot.deliverKeyEventToViewHierarchy(ViewRoot.java:2566)
at android.view.ViewRoot.handleFinishedEvent(ViewRoot.java:2541)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3835)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)
at dalvik.system.NativeStart.main(Native Method)

Is it my issue or is it caused by the new FontLoader Class?

Layout of ListViews

Listsviews which look like lists in standard holo layout would be very nice

cant add

When I add the library to my project, my project can no longer run. I get this error

[2012-06-18 07:53:30 - HoloDemoActivity] Conversion to Dalvik format failed with error 1

ListView background turns black while scrolling on non ICS

I tried adding a cacehColorHint, but the issue still remains.

<style name="Theme.HoloEverywhereDark.Sherlock" parent="Theme.Sherlock"> @drawable/background_holo_dark #00000000 @style/ButtonHoloDark @style/EditTextHoloDark @style/alertDialogHoloDark @style/radioHoloDark </style>

Publish HoloEverywhere.apklib's maven repository

I love HoloEverywhere and thank you for the great project. But currently the instruction is only available for Eclipse. Please publish this in a maven repository so that we could leverage the dependency tools in maven/sbt.

Hope enhancement in AlertDialog

First I would like to say Holo Everywhere is awesome!!

When I use AlertDialog, the dialog panel and text are in holo theme. However, the button is left to the android build-in theme, which is not so pretty when I run my app on Android 2.3.3.

And I wish there would be an enhancement in AlertDialog. Or, maybe I've just missed sth to fulfill my dream?...

ProgressDialog caused Exception in Fragment

I put this code in Fragment.

        ProgressDialog dialog = new ProgressDialog(getActivity());
        dialog.setMessage("Accept?");
        dialog.setCancelable(true);
        dialog.setIndeterminate(true);
        dialog.setMessage("Just accept it.");
        dialog.setInverseBackgroundForced(true);
        dialog.show();

The Logcat output:

java.lang.ClassCastException: com.WazaBe.HoloEverywhere.widget.ProgressBar
at android.app.ProgressDialog.onCreate(ProgressDialog.java:155)
at android.app.Dialog.dispatchOnCreate(Dialog.java:307)
at android.app.Dialog.show(Dialog.java:225)
[next line is dialog.show()]

The Fragment is inside SActivity.

I tried to put this dialog in SherlockMapActivity but the dialog appear as non-Holo even though the theme is set as android:theme="@style/Holo.Theme.Sherlock.Light". however, AlertDialog works just fine.

aapt duplicate keys with new maven apklib

Hello,

I had the problem that aapt during maven compile reports duplicate resource entries in the holoeverywhere resources. Thats not wrong, the duplicate resource entries are really there. But I found out that this error only occurs, if the holoeverywhere apklib dependency (v1.2.0 from the sonatype repository) is listed after the actionbarsherlock dependency in the pom.xml. Reversing the order of the both dependencies (holoeverywhere-library before actionbarsherlock) solves the problem.
Cheers, R.

Use themes created with http://android-holo-colors.com/

Can HoloEverywhere be used (easily) with this Holo theme creator?

http://android-holo-colors.com/

The themes created look similar but I can't test it at the moment because I'm having trouble getting HoloEverywhere to work at the moment due to all the changes.

I think just overwriting the images will work since they are all named with the Android default names.

If it works then it might be worth adding to the Readme.

SPreferenceActivity - Working on Android < 4, Not working on 4+

I'm having an issue using SPreferenceActivity and a preference.xml file using the holo: namespace. When I run my activity on older versions of Android (i.e. Gingerbread) it works fine and I get nice Holo style dialogs. However, when I run it on ICS devices/emulator the activity fails.

This is the stacktrace:

E/AndroidRuntime(19900): FATAL EXCEPTION: main
E/AndroidRuntime(19900): android.view.InflateException: Binary XML file line #2: Error inflating class
E/AndroidRuntime(19900): at android.view.LayoutInflater.createView(LayoutInflater.java:606)
E/AndroidRuntime(19900): at com.WazaBe.HoloEverywhere.LayoutInflater.onCreateView(LayoutInflater.java:135)
E/AndroidRuntime(19900): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:653)
E/AndroidRuntime(19900): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:678)
E/AndroidRuntime(19900): at android.view.LayoutInflater.inflate(LayoutInflater.java:466)
E/AndroidRuntime(19900): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
E/AndroidRuntime(19900): at com.WazaBe.HoloEverywhere.preference.Preference.onCreateView(Preference.java:473)
E/AndroidRuntime(19900): at com.WazaBe.HoloEverywhere.preference.Preference.getView(Preference.java:360)
E/AndroidRuntime(19900): at com.WazaBe.HoloEverywhere.preference.PreferenceGroupAdapter.getView(PreferenceGroupAdapter.java:162)
E/AndroidRuntime(19900): at android.widget.AbsListView.obtainView(AbsListView.java:2052)
E/AndroidRuntime(19900): at android.widget.ListView.makeAndAddView(ListView.java:1820)
E/AndroidRuntime(19900): at android.widget.ListView.fillDown(ListView.java:672)
E/AndroidRuntime(19900): at android.widget.ListView.fillFromTop(ListView.java:732)
E/AndroidRuntime(19900): at android.widget.ListView.layoutChildren(ListView.java:1673)
E/AndroidRuntime(19900): at android.widget.AbsListView.onLayout(AbsListView.java:1882)
E/AndroidRuntime(19900): at android.view.View.layout(View.java:11432)
E/AndroidRuntime(19900): at android.view.ViewGroup.layout(ViewGroup.java:4232)
E/AndroidRuntime(19900): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1628)
E/AndroidRuntime(19900): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1486)
E/AndroidRuntime(19900): at android.widget.LinearLayout.onLayout(LinearLayout.java:1399)
E/AndroidRuntime(19900): at android.view.View.layout(View.java:11432)
E/AndroidRuntime(19900): at android.view.ViewGroup.layout(ViewGroup.java:4232)
E/AndroidRuntime(19900): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1628)
E/AndroidRuntime(19900): at android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1617)
E/AndroidRuntime(19900): at android.widget.LinearLayout.onLayout(LinearLayout.java:1401)
E/AndroidRuntime(19900): at android.view.View.layout(View.java:11432)
E/AndroidRuntime(19900): at android.view.ViewGroup.layout(ViewGroup.java:4232)
E/AndroidRuntime(19900): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1628)
E/AndroidRuntime(19900): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1486)
E/AndroidRuntime(19900): at android.widget.LinearLayout.onLayout(LinearLayout.java:1399)
E/AndroidRuntime(19900): at android.view.View.layout(View.java:11432)
E/AndroidRuntime(19900): at android.view.ViewGroup.layout(ViewGroup.java:4232)
E/AndroidRuntime(19900): at android.widget.FrameLayout.onLayout(FrameLayout.java:431)
E/AndroidRuntime(19900): at android.view.View.layout(View.java:11432)
E/AndroidRuntime(19900): at android.view.ViewGroup.layout(ViewGroup.java:4232)
E/AndroidRuntime(19900): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1628)
E/AndroidRuntime(19900): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1486)
E/AndroidRuntime(19900): at android.widget.LinearLayout.onLayout(LinearLayout.java:1399)
E/AndroidRuntime(19900): at android.view.View.layout(View.java:11432)
E/AndroidRuntime(19900): at android.view.ViewGroup.layout(ViewGroup.java:4232)
E/AndroidRuntime(19900): at android.widget.FrameLayout.onLayout(FrameLayout.java:431)
E/AndroidRuntime(19900): at android.view.View.layout(View.java:11432)
E/AndroidRuntime(19900): at android.view.ViewGroup.layout(ViewGroup.java:4232)
E/AndroidRuntime(19900): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1516)
E/AndroidRuntime(19900): at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2505)
E/AndroidRuntime(19900): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(19900): at android.os.Looper.loop(Looper.java:154)
E/AndroidRuntime(19900): at android.app.ActivityThread.main(ActivityThread.java:4945)
E/AndroidRuntime(19900): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(19900): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(19900): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
E/AndroidRuntime(19900): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
E/AndroidRuntime(19900): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(19900): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime(19900): at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime(19900): at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
E/AndroidRuntime(19900): at android.view.LayoutInflater.createView(LayoutInflater.java:586)
E/AndroidRuntime(19900): ... 52 more
E/AndroidRuntime(19900): Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x2
E/AndroidRuntime(19900): at android.content.res.TypedArray.getDimensionPixelSize(TypedArray.java:463)
E/AndroidRuntime(19900): at android.view.View.(View.java:3046)
E/AndroidRuntime(19900): at android.view.ViewGroup.(ViewGroup.java:393)
E/AndroidRuntime(19900): at android.widget.LinearLayout.(LinearLayout.java:174)
E/AndroidRuntime(19900): at android.widge

And this is the preferences.xml which works on pre-4 devices:

<PreferenceCategory
    holo:key="pref_category_ui"
    holo:title="@string/ui" >
    <ListPreference
        holo:defaultValue="red"
        holo:entries="@array/theme_names"
        holo:entryValues="@array/theme_keys"
        holo:key="pref_ui_theme"
        holo:persistent="true"
        holo:summary="Change colour scheme of app"
        holo:title="@string/app_theme" />

    <com.pocketwriters.widgets.ListPreferenceMultiSelect
        holo:defaultValue="new;popular;today;classic;draft;history"
        holo:dialogTitle="Select Lists to Display"
        holo:entries="@array/list_names"
        holo:entryValues="@array/list_keys"
        holo:key="pref_ui_tabs"
        holo:summary="Specify which lists to show on home screen"
        holo:title="Lists to Display" />
</PreferenceCategory>
<PreferenceCategory
    holo:key="pref_about_legal"
    holo:title="@string/legal" >
    <Preference
        holo:key="privacy"
        holo:title="@string/privacy" />
    <Preference
        holo:key="terms"
        holo:title="@string/terms_and_conditions" />
</PreferenceCategory>

Any ideas what the issue could be?

HoloAlertDialogBuilder setItems

I want to use HoloAlertDialogBuilder to create a dialog window with a list like this:

HoloAlertDialogBuilder adb = new HoloAlertDialogBuilder(this);
        adb.setTitle(dialogTitle);
        adb.setItems(R.array.subject_list_actions, null);
        adb.show();

Using setItems I get a list - but the text is black, almost unreadable, and the dividers between the items look ugly.

I noticed HoloAlertDialogBuilder does not override the setItems method. But I'm not able to do it myself. :(

Originally I tried to use a ContextMenu for my ListView, but it was too ugly, so I made it create an AlertDialog; but it looks weird too...

Spinner-Dialog Text-Color

Since 1.2.2 system-dialogs like "Longpress EditText" aren't styled anymore.
I don't have a big problem with that, but the Spinner-Dialog still has a white text-colour(on white background).
Tested on 2.1.

Can't start the HoloDemo

Hi,

I would like to start the HoloDemo but I get an Error Type 3 that means:

ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.WazaBe.HoloDemo/.HoloDemoActivity }
ActivityManager: Error type 3
ActivityManager: Error: Activity class {com.WazaBe.HoloDemo/com.WazaBe.HoloDemo.HoloDemoActivity} does not exist.

I am not an Android genius, do you know whats wrong.
I just imported your projects into my workspace.

Thanks

HoloEverywhereLight theme with ActionBar Sherlock crashing on Gingerbread

I've created a SherlockActivity that uses HoloEverywhereLight theme and it is working only on ICS devices.

I'm getting these error messages on Gingerbread:

07-05 10:03:03.375: D/AndroidRuntime(410): Shutting down VM
07-05 10:03:03.375: W/dalvikvm(410): threadid=1: thread exiting with uncaught exception (group=0x40015560)
07-05 10:03:03.385: E/AndroidRuntime(410): FATAL EXCEPTION: main
07-05 10:03:03.385: E/AndroidRuntime(410): java.lang.RuntimeException: Unable to start activity ComponentInfo{br.com.remote/br.com.remote.MainActivity}: java.lang.IllegalStateException: You must use Theme.Sherlock, Theme.Sherlock.Light, Theme.Sherlock.Light.DarkActionBar, or a derivative.
07-05 10:03:03.385: E/AndroidRuntime(410): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
07-05 10:03:03.385: E/AndroidRuntime(410): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
07-05 10:03:03.385: E/AndroidRuntime(410): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
07-05 10:03:03.385: E/AndroidRuntime(410): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
07-05 10:03:03.385: E/AndroidRuntime(410): at android.os.Handler.dispatchMessage(Handler.java:99)
07-05 10:03:03.385: E/AndroidRuntime(410): at android.os.Looper.loop(Looper.java:130)
07-05 10:03:03.385: E/AndroidRuntime(410): at android.app.ActivityThread.main(ActivityThread.java:3683)
07-05 10:03:03.385: E/AndroidRuntime(410): at java.lang.reflect.Method.invokeNative(Native Method)
07-05 10:03:03.385: E/AndroidRuntime(410): at java.lang.reflect.Method.invoke(Method.java:507)
07-05 10:03:03.385: E/AndroidRuntime(410): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
07-05 10:03:03.385: E/AndroidRuntime(410): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
07-05 10:03:03.385: E/AndroidRuntime(410): at dalvik.system.NativeStart.main(Native Method)
07-05 10:03:03.385: E/AndroidRuntime(410): Caused by: java.lang.IllegalStateException: You must use Theme.Sherlock, Theme.Sherlock.Light, Theme.Sherlock.Light.DarkActionBar, or a derivative.
07-05 10:03:03.385: E/AndroidRuntime(410): at com.actionbarsherlock.internal.ActionBarSherlockCompat.generateLayout(ActionBarSherlockCompat.java:1007)
07-05 10:03:03.385: E/AndroidRuntime(410): at com.actionbarsherlock.internal.ActionBarSherlockCompat.installDecor(ActionBarSherlockCompat.java:919)
07-05 10:03:03.385: E/AndroidRuntime(410): at com.actionbarsherlock.internal.ActionBarSherlockCompat.setContentView(ActionBarSherlockCompat.java:853)
07-05 10:03:03.385: E/AndroidRuntime(410): at com.actionbarsherlock.app.SherlockActivity.setContentView(SherlockActivity.java:218)
07-05 10:03:03.385: E/AndroidRuntime(410): at br.com.remote.MainActivity.onCreate(MainActivity.java:12)
07-05 10:03:03.385: E/AndroidRuntime(410): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
07-05 10:03:03.385: E/AndroidRuntime(410): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
07-05 10:03:03.385: E/AndroidRuntime(410): ... 11 more

ProgressDialog invisible on Theme_HoloEverywhereLight_Sherlock

The progress indicator on a ProgressDialog is invisible when using Theme_HoloEverywhereLight_Sherlock on an older device (Emulator:2.2, ADP1:1.6).

For now i use a ContextThemeWrapper with Theme_HoloEverywhereDark_Sherlock, but that doesn't look to nice...

But many thanks anyway for this very usefull project!

ProgressDIalog in Android 4.1.1

I create a Dialog with this code:

progressDialog = ProgressDialog.show(this, getString(R.string._please_wait), getString(R.string._loading_feeds), true, false);

EDIT: If I change my target-Platform from "android-14" to "android-15", I don't get an error, but the description-text of the Progress-dialog is missing.

I'm testing in 2.2 and 4.1.1. In 4.1.1 it works just fine, but in 2.2 I get an Resource$NotFoundException:

E/AndroidRuntime( 6749): FATAL EXCEPTION: main
E/AndroidRuntime( 6749): java.lang.RuntimeException: Unable to start activity ComponentInfo{MY_ACTIVITY}: android.content.res.Resources$NotFoundException: Resource ID #0x1030298                                                                           
E/AndroidRuntime( 6749):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2187)                                                      
E/AndroidRuntime( 6749):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2212)                                                       
E/AndroidRuntime( 6749):  at android.app.ActivityThread.access$600(ActivityThread.java:144)                                                                  
E/AndroidRuntime( 6749):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)                                                            
E/AndroidRuntime( 6749):  at android.os.Handler.dispatchMessage(Handler.java:99)                                                                             
E/AndroidRuntime( 6749):  at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 6749):  at android.app.ActivityThread.main(ActivityThread.java:4965)
E/AndroidRuntime( 6749):  at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 6749):  at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 6749):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
E/AndroidRuntime( 6749):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:558)
E/AndroidRuntime( 6749):  at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 6749): Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x1030298
E/AndroidRuntime( 6749):  at android.content.res.Resources.getValue(Resources.java:1013)
E/AndroidRuntime( 6749):  at android.content.res.Resources.loadXmlResourceParser(Resources.java:2127)
E/AndroidRuntime( 6749):  at android.content.res.Resources.getLayout(Resources.java:852)
E/AndroidRuntime( 6749):  at android.view.LayoutInflater.inflate(LayoutInflater.java:394)
E/AndroidRuntime( 6749):  at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
E/AndroidRuntime( 6749):  at android.view.View.inflate(View.java:16119)
E/AndroidRuntime( 6749):  at com.WazaBe.HoloEverywhere.AlertDialog.setView(AlertDialog.java:766)
E/AndroidRuntime( 6749):  at com.WazaBe.HoloEverywhere.AlertDialog.setView(AlertDialog.java:761)
E/AndroidRuntime( 6749):  at com.WazaBe.HoloEverywhere.ProgressDialog.onCreate(ProgressDialog.java:179)
E/AndroidRuntime( 6749):  at android.app.Dialog.dispatchOnCreate(Dialog.java:351)
E/AndroidRuntime( 6749):  at android.app.Dialog.show(Dialog.java:256)
E/AndroidRuntime( 6749):  at com.WazaBe.HoloEverywhere.ProgressDialog.show(ProgressDialog.java:44)
E/AndroidRuntime( 6749):  at com.WazaBe.HoloEverywhere.ProgressDialog.show(ProgressDialog.java:32)
E/AndroidRuntime( 6749):  at MY_ACTIVITY

Crash Preferences List

With Xperia S ( 2.3.7 - build 6.0.A.3.62), the demo crash when click on "List" in the "Preferences".

Works fine on Desire (2.3.5) & SIII (4.0.x).

E/AndroidRuntime( 5262): FATAL EXCEPTION: main
E/AndroidRuntime( 5262): android.view.InflateException: Binary XML file line #2: Error inflating class com.WazaBe.HoloEverywhere.internal.AlertController$RecycleListView
E/AndroidRuntime( 5262):    at android.view.LayoutInflater.createView(LayoutInflater.java:518)
E/AndroidRuntime( 5262):    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
E/AndroidRuntime( 5262):    at android.view.LayoutInflater.inflate(LayoutInflater.java:386)
E/AndroidRuntime( 5262):    at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
E/AndroidRuntime( 5262):    at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
E/AndroidRuntime( 5262):    at com.WazaBe.HoloEverywhere.internal.AlertController$AlertParams.createListView(AlertController.java:141)
E/AndroidRuntime( 5262):    at com.WazaBe.HoloEverywhere.internal.AlertController$AlertParams.apply(AlertController.java:127)
E/AndroidRuntime( 5262):    at com.WazaBe.HoloEverywhere.app.AlertDialog$Builder.create(AlertDialog.java:37)
E/AndroidRuntime( 5262):    at com.WazaBe.HoloEverywhere.preference.DialogPreference.showDialog(DialogPreference.java:267)
E/AndroidRuntime( 5262):    at com.WazaBe.HoloEverywhere.preference.DialogPreference.onClick(DialogPreference.java:147)
E/AndroidRuntime( 5262):    at com.WazaBe.HoloEverywhere.preference.Preference.performClick(Preference.java:535)
E/AndroidRuntime( 5262):    at com.WazaBe.HoloEverywhere.preference.PreferenceScreen.onItemClick(PreferenceScreen.java:105)
E/AndroidRuntime( 5262):    at android.widget.AdapterView.performItemClick(AdapterView.java:288)
E/AndroidRuntime( 5262):    at android.widget.ListView.performItemClick(ListView.java:3514)
E/AndroidRuntime( 5262):    at android.widget.AbsListView$PerformClick.run(AbsListView.java:1908)
E/AndroidRuntime( 5262):    at android.os.Handler.handleCallback(Handler.java:587)
E/AndroidRuntime( 5262):    at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 5262):    at android.os.Looper.loop(Looper.java:138)
E/AndroidRuntime( 5262):    at android.app.ActivityThread.main(ActivityThread.java:3701)
E/AndroidRuntime( 5262):    at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 5262):    at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 5262):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:878)
E/AndroidRuntime( 5262):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)
E/AndroidRuntime( 5262):    at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 5262): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 5262):    at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 5262):    at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
E/AndroidRuntime( 5262):    at android.view.LayoutInflater.createView(LayoutInflater.java:505)
E/AndroidRuntime( 5262):    ... 23 more
E/AndroidRuntime( 5262): Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x12
E/AndroidRuntime( 5262):    at android.content.res.TypedArray.getDimensionPixelSize(TypedArray.java:463)
E/AndroidRuntime( 5262):    at android.widget.AbsListView.<init>(AbsListView.java:661)
E/AndroidRuntime( 5262):    at android.widget.ListView.<init>(ListView.java:167)
E/AndroidRuntime( 5262):    at android.widget.ListView.<init>(ListView.java:163)
E/AndroidRuntime( 5262):    at com.WazaBe.HoloEverywhere.internal.AlertController$RecycleListView.<init>(AlertController.java:288)
E/AndroidRuntime( 5262):    ... 26 more
W/ActivityManager(  278):   Force finishing activity com.WazaBe.HoloDemo/.HoloPreferenceActivity

git submodule support

Please, correct .gitignore (remove '/' before project.properties) and git rm project.properties to make library be used as a git submodule without a pain. Thanks!

ProgressDialog in JellyBean

No idea why, but the text doesn't show up in JellyBean on a ProgressDialog. It works fine on 2.2, 2.3, and 4 - just not 4.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.