Ie, in my native android side can I do tings like this ?

  TextView nativeAdTitle = (TextView) 
adView.findViewById(R.id.native_ad_title);

in order to get at this in the xml ? 

<TextView
    android:id="@+id/native_ad_title"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:ellipsize="end"
    android:lines="1"
    android:textColor="@android:color/black"
    android:textSize="18sp" />


On Tuesday, November 8, 2016 at 1:04:18 AM UTC+8, Gareth Murfin wrote:
>
> I have put it in native\android which I assume is the logical thing to do. 
> But the sample I am working from references R.id.native_ad_body in the 
> xml and I get package R does not exist. 
>
> On Tuesday, November 8, 2016 at 12:41:42 AM UTC+8, Gareth Murfin wrote:
>>
>> If I want to include a XML layout for my Android build, can I and where 
>> do I put it ?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/2a2aa439-ca25-4c77-b25d-8e3726faefae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to