how do I extract an AttributeSet from an xml file

by Andy Droid » Fri, 04 Sep 2009 09:33:31 GMT


Sponsored Links
 I would like to extend ViewFlipper, so that I can override some of the
functions.  I borrowed some code from the Flipper Demo in Murphy's
Busy Coders book.

I made my own class that extends it, but I have to pass in an
AttributeSet, when I instantiate it.  How do I get that from my xml?

Here is the original code:

flipper=(ViewFlipper)findViewById(R.id.details);


Here is my new code:

AttributeSet myAttributeSet  = ??;
myExtendedViewFlipper flipper = new myExtendedViewFlipper ( this,
myAttributeSet);


thanks
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. r customizing aosp settings section

hello, im trying to build aosp for my devkit, and i'd like to know where
should i look to for
1 - to changing font size of texts in settings section ( i'v replaced droid
fonts with another one but the new font kind large) or global font setting.
2 - to change position of texts in settings section ( usually all texts are
in left side, i want to try and put it in right side for example).
3 - the language locale names that showed in settings/language &
keyboards.. where are they stored . i looked into LocalePicker.java but
could not figure it out
for exmaple i want to change a locale name from english to it's native
languge ( in some android builds i'v saw arabic locale was in english , and

some other builds it was shown in native arabic ).

-- 

2. animate part of the app widget

Hi all,
is it possible to animate part of an app widget? for example, there is a
text string, an image, and a number in my widget, I want to animate the
number or image in the widget, which is only part of whole widget on the
home screen. does it possible on Honeycomb?

-- 

3. Problem with Cursor Adapter

4. drag and drop only between views in the same layout?

5. Extended MapView

6. change background color of particular line in textview or edittext

7. android graphs