1. Well you can simply copy & paste the styles you need from the
android SDK and insert it in your own XML files (they can be found in
the SDK1.0/tools/lib/res/default/values/styles.xml file). They way you
can still use the same styles as before, but you don't have to access
them from the Framework but have them stored in your apps APK which
makes you independed of the frameworks styles)

2. That being said, #2 should be quite solved too. However, to still
try to find an anwser (if you want to keep it this way): Did you tried
obtainTypedArray?

[public TypedArray obtainTypedArray (int id)]
http://developer.android.com/reference/android/content/res/Resources.html#obtainTypedArray(int)

On Apr 3, 8:54 am, Iroid <irfan.f.k...@gmail.com> wrote:
> Hello All,
> I am trying to migrate from SDK 1.0 to SDK 1.1
> for this i have to remove all the references of R.Styleable.  from my
> code.
> While working on this - I am facing two problems:
> Problem 1:
> I have created one attrs.xml and declaring attributes there which
> intern referring to android attributes. as mentioned in below sample:
>  <declare-styleable name="Gallery1">
>         <attr name="android:galleryItemBackground" />
>  </declare-styleable>
> But I do not know how to do it for arrays like TextAppearence which
> contains array of attributes :(
> Problem 2:
> I have to use these resources in different application through:
> appContext = context.createPackageContext("package_name",
>                         Context.CONTEXT_IGNORE_SECURITY);
> appContext.getResources().
> this is again a problem as class Resources does not provide any
> method
> to retrieve array by passing the name.
>
> I am new to Android UI, please help as not able to proceed.
>
> Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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