Sorry for all the questions, if it is possible, how do I actually display 
some native android widgets? Im basically just trying to do "native 
facebook adverts" ( 
https://developers.facebook.com/docs/audience-network/android/native-api ) 
they appear in a section of your screen and contain an advert (they dont 
take over full screen) so I want to embed a LinearLayout inside a CN1 
container basically, if this is possible?

On Tuesday, November 8, 2016 at 1:07:07 AM UTC+8, Gareth Murfin wrote:
>
> 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/1dfc2afd-6119-4a69-be6d-74ec8fa1a77f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to