You have to write LinearLayout.VERTICAL.

On Sun, Feb 15, 2009 at 6:38 PM, Markiv <[email protected]> wrote:
>
> Hi Everyone,
>
> Eclipse doesn't seem to like the constant VERTICAL in the
> LinearLayout. Can you tell me what the problem might be.
>
> Here is a snippet of the code I have. I am using the latest Android
> SDK.
>
> Thanks,
> Vikram
>
>
> import android.widget.LinearLayout;
>
> public class HelloViews extends Activity {
>    /** Called when the activity is first created. */
>    @Override
>    public void onCreate(Bundle savedInstanceState) {
>        super.onCreate(savedInstanceState);
>        LinearLayout ll = new LinearLayout(this);
>        ll.setOrientation(VERTICAL);
>        //setContentView(R.layout.main);
>    }
> >
>



-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to