[android-developers] Re: Custom Attributes - Accessing via Activity

2011-01-19 Thread danik
You havn't access to attributes from layout after creating of View, but you have access to them in View's constuctor. Also you can use implment your own LayoutInflater.Factory (http://developer.android.com/ reference/android/view/LayoutInflater.Factory.html), then set it to layout inflater. In meth

Re: [android-developers] Re: Custom Attributes - Accessing via Activity

2011-01-10 Thread Kostya Vasilyev
Adam, I am not sure about the extra indirection level you have in your code (the "?attr" stuff), but this should work: @drawable/splash With this in the manifest: And then: TypedArray a = this.obtainStyledAttributes(R.styleable.MainSpl

[android-developers] Re: Custom Attributes - Accessing via Activity

2011-01-10 Thread Adam Goodchild
Ok, I have the following files: attrs.xml, styles.xml, themes.xml Here is my attrs.xml file: Here is my themes.xml file: @drawable/splash Here is my styles.xml file: