You must specify the layout_width and layout_height attributes for the
EditText.
android:layout_width="fill_parent"
android:layout_height="wrap_content"
--
Jack Ha
Open Source Development Center
·T· · ·Mobile· stick together
The coverage you need at the price you want
The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.
On Sep 11, 9:03 am, Felix Oghina <[email protected]> wrote:
> I went through the NotePad tutorials and got the minimum hang of it.
> Unfortunately, when I tried creating my own application, I failed.
> Here's my main class file:
>
> package com.tastekid.TasteKid;
>
> import android.app.Activity;
> import android.os.Bundle;
>
> public class TasteKid extends Activity {
>
> @Override
> public void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
> setContentView(R.layout.main);
> }
>
> }
>
> Here's main.xml:
>
> <?xml version="1.0" encoding="utf-8"?>
> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/
> android"
> android:orientation="vertical"
> android:layout_width="fill_parent"
> android:layout_height="fill_parent"
> >
> <EditText
> android:id="@+id/search_input"
> />
> </LinearLayout>
>
> When I try to start the app on the emulator I get an "The application
> TasteKid (process com.tastekid.TasteKid) has stopped unexpectedly.
> Please try again." with a "Force close" button. I have absolutely no
> idea what I am doing wrong :-(
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---