12
Як відкрити другу активність натисканням кнопки в додатку для Android
Я вчуся створювати програми для Android, і мені потрібна певна допомога. Я не можу зрозуміти, які біти коду шаблону я повинен змінити, а які біти статичні. У папці LAYOUT у мене є ACTIVITY_MAIN.XML, який читає <?xml version="1.0" encoding="utf-8"?> <LinearLayout 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:orientation="horizontal"> <Button android:id="@+id/button1" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/main_buttons_photos" /> …