اقای ادمین من اینجوری درستش کردم
باید بگم که برنامه برنامه بدون هیچ ارروری اجرا میشه ولی اون دوتا دکمه محاسباتی کار نمیکنن یعنی روشون کلیک میکنی هیچ اتفاغی نمیوفته
اینم تصویری از برنامه
اینم کدهای مربوط به activity_main.xml
مشکل این کدها کجاست که اون دکمه ها اجرا نمیشه؟
باید بگم که برنامه برنامه بدون هیچ ارروری اجرا میشه ولی اون دوتا دکمه محاسباتی کار نمیکنن یعنی روشون کلیک میکنی هیچ اتفاغی نمیوفته
اینم تصویری از برنامه
اینم کدهای مربوط به activity_main.xml
کد پیاچپی:
<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=".MainActivity" >
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:text="yes" />
<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/button1"
android:layout_alignBottom="@+id/button1"
android:layout_toRightOf="@+id/button1"
android:text="no" />
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/button2"
android:layout_alignBottom="@+id/button2"
android:layout_marginLeft="29dp"
android:layout_toRightOf="@+id/button2"
android:text="TextView" />
<ImageSwitcher
android:id="@+id/switcher"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignLeft="@+id/gallery"
android:layout_below="@+id/button1" />
<Gallery
android:id="@+id/gallery"
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:background="#55000000"
android:gravity="center_vertical"
android:spacing="16dp" />
</RelativeLayout>
مشکل این کدها کجاست که اون دکمه ها اجرا نمیشه؟