mnakruf
80+
- Katılım
- 26 Kasım 2023
- Mesajlar
- 46
- Reaksiyon skoru
- 7
Merhaba, derste Android Studio'da Java kodlama dilinde bir program yazıyoruz. Ancak ActivityMain.xml dosyasına yazdığım kodda sıkıntı çıkıyor. Nasıl çözebilirim?
XML:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<EditText
android:id="@+id/editText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
<Button
android:id="@+id/button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="İşlem yap"
android:onClick="islemYap"
/>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>