It works like a charm! Thanks!
On 17 Mar, 21:25, Andrea Richiardi wrote:
> Thanks guys, I missed that article.
>
> I'll try!
>
> On 17 Mar, 18:16, Kostya Vasilyev wrote:
>
> > 17.03.2011 20:02, TreKing ?:
>
> > > I don't think you add the xmlns declaration to your custom view.
> > > That's f
Thanks guys, I missed that article.
I'll try!
On 17 Mar, 18:16, Kostya Vasilyev wrote:
> 17.03.2011 20:02, TreKing ?:
>
>
>
> > I don't think you add the xmlns declaration to your custom view.
> > That's for Android defined views.
>
> The repeated xmlns:android is unnecessary, but harmless.
17.03.2011 20:02, TreKing ?:
I don't think you add the xmlns declaration to your custom view.
That's for Android defined views.
The repeated xmlns:android is unnecessary, but harmless.
A custom view needs to use a full-qualified class name, either in the
start tag, like this:
<*it.and
On Thu, Mar 17, 2011 at 11:52 AM, Andrea Richiardi <
andrea.richia...@gmail.com> wrote:
> Fails with a InflateException...binary file at line 2 of my xml.
I don't think you add the xmlns declaration to your custom view. That's for
Android defined views. Have you read this:
http://developer.andro
I'm sorry, maybe I have not understood the whole point.
I have a xml:
http://schemas.android.com/apk/res/android";
android:id="@+id/my_item_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="2sp">
/* some button arranged with RelativeLayout
On Thu, Mar 17, 2011 at 11:07 AM, Andrea Richiardi <
andrea.richia...@gmail.com> wrote:
> And if i wanted not to inflate from outside the class, but inside?
>
Then it's up to you to also dynamically set the layout parameters.
> MyLayoutView view = new MyLayoutView(context);
>
> without any infl
And if i wanted not to inflate from outside the class, but inside?
I mean:
MyLayoutView view = new MyLayoutView(context);
without any inflation doesn't call the MyLayoutView(Context context,
AttributeSet attrs) constructor I guess.
This is why I'm trying to pull parameters directly from the xml
7 matches
Mail list logo