Problem running a compiled/packaged-with-v1.6 application on v1.5

by Armond Avanes » Wed, 04 Nov 2009 20:16:20 GMT


Sponsored Links
 ance,

Digging further showed that it was the problem with my "theme customization".

The default "preference_category.xml" is referring to
"listSeparatorTextViewStyle" as its style. But I've customized the
"listSeparatorTextViewStyle" and for whatever reason it does not correctly
inherit the "layout_width" and "layout_hight" attributes from Android default
theme.

In my "themes.xml":
<item
name="android:listSeparatorTextViewStyle">@style/Widget.TextView.ListSeparator</item>

In my "styles.xml":
<style name="Widget.TextView.ListSeparator"
parent="android:Widget.TextView.ListSeparator">
<item name="android:background">@drawable/blue_header</item>
</style>

Solution: I just copied all the attributes from Android default
"Widget.TextView.ListSeparator" and the problem got fixed! No other changes,
including the ones I just mentioned in my previous reply, are needed:

<style name="Widget.TextView.ListSeparator"
parent="android:Widget.TextView">
<item name="android:background">@drawable/blue_header</item>

<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">25dip</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">?android:attr/textColorSecondary</item>
<item name="android:textSize">14sp</item>
<item name="android:gravity">center_vertical</item>
<item name="android:paddingLeft">5sp</item>
</style>

And I guess this is the final solution for those whom want to customize their
"ListView"s (and the related separator). But I still can't understand why this
occurs when the build/packaging platform is not the same as the deployment one.
Hope someone from Android engineering team answers me.

Best Regards,
Armond



----- Original Message ----
> >



Other Threads

1. File autotext Smart Keyboard Pro

doh..unable = enable. .. kekekekekeke

sent from Milestonewith  | read www.tux.or.id & http://bit.ly/aSTXL0 for
more android info




as subject, autotext saya...ini bukan apk ya jadi bukan app retakan .
...

simpan filenya kefolder dibawah ini

/data/data/net.cdeguet. smartkeyboardpro/databases/ autotext.db

pakai root explorer...jgn lupa unable permisionnya...lihat permission nya
seperti gambar yg di attach...

-- 
"Indonesian Android Community [id-android]"

2. Http -1 when Transfer-Encoding=chunked, Content-Encoding=gzip and Connection=Keep-Alive

Hi,

I found a problem with GZIP input stream when wrapping InputStream
from HttpURLConnection. When the server response with Transfer-
Encoding=chunked, Content-Encoding=gzip and Connection=Keep-Alive. The
second post always return -1.

After digging into the source code, I found the place that could be a
bug:
  InflaterInputStream.java (line 190 to 192)
              if (inf.needsInput()) {
                   fill();
               }

Because InflaterInputStream doesn't need more input, it doesn't try to
read the end of chunked encoding (0x)(30 0a 0d) that cause the second
post to return with -1 every time. Does anybody have the same issue?

Thanks,

-- 

3. device shaked? accelerometer once more

4. Code to enable and disable bluetooth for SDK 3 and above?

5. Indosat Android Expo Surabaya tidak ada Samsung Spica hari ini

6. Tanya bagaimana edit account utk sync data di HTC Hero

7. Green Robot ,lucu juga ?