Friday, September 10, 2010

[android-developers] Little help with view

Hi there, I have a class which is called cameraView and inside I have
another which is called compassLook...goes like this:

public class compassLook extends View {

private float direction = 0;
etc etc

I use the compassLook view in my cameraView layout... I'm able to make
this work fine in separate activities ..but the thing is I'd like to
change the value ''direction'' with values generated in
Cameraview.class so I've placed the class compassLook inside the
cameraView class...

The thing is I don't know how to work this out in XML anymore... This
is how it used to be when it worked fine and when I used separate
classes:

<view
class="com.pedroteixeira.thennnow.compassLook"
android:id="@+id/mycompassview"
android:layout_width="100dp"
android:layout_height="50dp"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"/>


How can I access that view now? Is there any specific syntax for this
cases in the XML ?

--
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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate