Monday, January 28, 2013

Re: [android-developers] Nesting layouts??

If it is a subclass of android.widget.TextView, I'd call getText().



On Monday, January 28, 2013 3:13:24 PM UTC-6, dashman wrote:
well i wasn't able to do as i expected - but if i defined a class derived
off a Layout - it works.

    <com.example.ProgDataView
        android:id="@+id/label"
        android:text="Label"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"/>

from my java class ProgDataView - how can i get the value of of the attributes
(in my case android:text)


On Monday, January 28, 2013 3:07:49 PM UTC-5, TreKing wrote:

On Mon, Jan 28, 2013 at 2:05 PM, dashman <erjd...@gmail.com> wrote:
Is it possible to create 1 xml layout file with the defnition

and then refer to that file multiple times.

Yes, it is possible. And covered in the documentation. Look for "include".

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices

--
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment