<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.example.deneme.MainActivity" >
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_marginTop="85dp"
android:text="Ekle" />
<AutoCompleteTextView
android:id="@+id/autoCompleteTextView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginTop="44dp"
android:ems="10" >
<requestFocus />
</AutoCompleteTextView>
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginBottom="22dp"
android:layout_toLeftOf="@+id/button1"
android:text="Large Text"
android:textAppearance="?android:attr/textAppearanceLarge" />
<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="Diger say" />
<Button
android:id="@+id/button3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/button2"
android:layout_below="@+id/button2"
android:layout_marginTop="40dp"
android:text="Analiz" />
</RelativeLayout>
/////////////////////////////////// logcat çıktısı:
09-04 11:01:49.184: E/AndroidRuntime(899): FATAL EXCEPTION: main
09-04 11:01:49.184: E/AndroidRuntime(899): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.deneme/com.example.deneme.MainActivity}: java.lang.ClassCastException: android.widget.AutoCompleteTextView cannot be cast to android.widget.Button
09-04 11:01:49.184: E/AndroidRuntime(899): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)
09-04 11:01:49.184: E/AndroidRuntime(899): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
09-04 11:01:49.184: E/AndroidRuntime(899): at android.app.ActivityThread.access$600(ActivityThread.java:141)
09-04 11:01:49.184: E/AndroidRuntime(899): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
09-04 11:01:49.184: E/AndroidRuntime(899): at android.os.Handler.dispatchMessage(Handler.java:99)
09-04 11:01:49.184: E/AndroidRuntime(899): at android.os.Looper.loop(Looper.java:137)
09-04 11:01:49.184: E/AndroidRuntime(899): at android.app.ActivityThread.main(ActivityThread.java:5103)
09-04 11:01:49.184: E/AndroidRuntime(899): at java.lang.reflect.Method.invokeNative(Native Method)
09-04 11:01:49.184: E/AndroidRuntime(899): at java.lang.reflect.Method.invoke(Method.java:525)
09-04 11:01:49.184: E/AndroidRuntime(899): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
09-04 11:01:49.184: E/AndroidRuntime(899): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-04 11:01:49.184: E/AndroidRuntime(899): at dalvik.system.NativeStart.main(Native Method)
09-04 11:01:49.184: E/AndroidRuntime(899): Caused by: java.lang.ClassCastException: android.widget.AutoCompleteTextView cannot be cast to android.widget.Button
09-04 11:01:49.184: E/AndroidRuntime(899): at com.example.deneme.MainActivity.onCreate(MainActivity.java:31)
09-04 11:01:49.184: E/AndroidRuntime(899): at android.app.Activity.performCreate(Activity.java:5133)
09-04 11:01:49.184: E/AndroidRuntime(899): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
09-04 11:01:49.184: E/AndroidRuntime(899): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
09-04 11:01:49.184: E/AndroidRuntime(899): ... 11 more