Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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:id="@+id/main"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="#ADD8E6"
- android:orientation="vertical"
- tools:context=".MainActivity">
- <TextView
- android:id="@+id/header"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- android:text="@string/header"
- android:textAlignment="center"
- android:textSize="20sp"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
- <TextView
- android:id="@+id/header_subscript"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="5dp"
- android:text="@string/author_text"
- android:textAlignment="center" />
- <LinearLayout
- android:id="@+id/washing_machine_section"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <ImageView
- android:id="@+id/washing_machine_image"
- android:layout_width="wrap_content"
- android:layout_height="150dp"
- android:layout_marginLeft="20dp"
- android:layout_marginTop="0dp"
- android:layout_marginRight="20dp"
- android:layout_marginBottom="20dp"
- android:layout_weight="1"
- app:srcCompat="@drawable/pralka" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:orientation="vertical">
- <TextView
- android:id="@+id/washing_machine_header"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/washing_machine_text"
- android:textSize="20sp" />
- <com.google.android.material.textfield.TextInputLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:textColor="#000080"
- android:textColorHint="#000080"
- >
- <com.google.android.material.textfield.TextInputEditText
- android:id="@+id/program_input"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="#87CEEB"
- android:hint="@string/wasching_machine_hint"
- android:textColor="#000080"
- android:textColorHint="#000080" />
- </com.google.android.material.textfield.TextInputLayout>
- <Button
- android:id="@+id/washing_button"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="10dp"
- android:backgroundTint="#4169E1"
- android:text="@string/washing_button"
- app:cornerRadius="5dp" />
- <TextView
- android:id="@+id/washing_display"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/washing_program" />
- </LinearLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <ImageView
- android:id="@+id/hoover_image"
- android:layout_width="wrap_content"
- android:layout_height="150dp"
- android:layout_marginLeft="20dp"
- android:layout_marginTop="0dp"
- android:layout_marginRight="20dp"
- android:layout_marginBottom="20dp"
- android:layout_weight="1"
- app:srcCompat="@drawable/odkurzacz" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:orientation="vertical">
- <TextView
- android:id="@+id/hoover_header"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/hoover"
- android:textSize="20sp" />
- <Button
- android:id="@+id/hoover_toggle"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="10dp"
- android:backgroundTint="#4169E1"
- android:text="@string/hoover_turn_on"
- app:cornerRadius="5dp" />
- <TextView
- android:id="@+id/hoover_state"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/hoover_off" />
- <TextView
- android:id="@+id/hoover_battery_info"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/battery_status_charged" />
- </LinearLayout>
- </LinearLayout>
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement