ipdan4ik

[lb10] activity_main.xml

Apr 23rd, 2021
600
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout
  3.    xmlns:android="http://schemas.android.com/apk/res/android"
  4.    xmlns:app="http://schemas.android.com/apk/res-auto"
  5.    xmlns:tools="http://schemas.android.com/tools"
  6.    android:layout_width="match_parent"
  7.    android:layout_height="match_parent">
  8.  
  9.     <Button
  10.        android:id="@+id/button"
  11.        android:layout_width="wrap_content"
  12.        android:layout_height="wrap_content"
  13.        android:layout_marginStart="12dp"
  14.        android:layout_marginTop="25dp"
  15.        android:onClick="buttonStartService"
  16.        android:text="@string/start"
  17.        app:layout_constraintBottom_toBottomOf="parent"
  18.        app:layout_constraintStart_toStartOf="parent"
  19.        app:layout_constraintTop_toBottomOf="@+id/editTextNumber3"
  20.        app:layout_constraintVertical_bias="0.0" />
  21.  
  22.     <Button
  23.        android:id="@+id/button2"
  24.        android:layout_width="wrap_content"
  25.        android:layout_height="wrap_content"
  26.        android:layout_marginTop="25dp"
  27.        android:layout_marginEnd="12dp"
  28.        android:onClick="buttonStopService"
  29.        android:text="@string/stop"
  30.        app:layout_constraintBottom_toBottomOf="parent"
  31.        app:layout_constraintEnd_toEndOf="parent"
  32.        app:layout_constraintTop_toBottomOf="@+id/editTextNumber3"
  33.        app:layout_constraintVertical_bias="0.0" />
  34.  
  35.     <TextView
  36.        android:id="@+id/textCounter"
  37.        android:layout_width="wrap_content"
  38.        android:layout_height="wrap_content"
  39.        android:layout_marginTop="40dp"
  40.        android:text="@string/timer_off"
  41.        app:layout_constraintBottom_toBottomOf="parent"
  42.        app:layout_constraintEnd_toStartOf="@+id/button2"
  43.        app:layout_constraintStart_toEndOf="@+id/button"
  44.        app:layout_constraintTop_toBottomOf="@+id/editTextNumber3"
  45.        app:layout_constraintVertical_bias="0.0" />
  46.  
  47.     <EditText
  48.        android:id="@+id/editTextNumber2"
  49.        android:layout_width="wrap_content"
  50.        android:layout_height="wrap_content"
  51.        android:layout_marginStart="12dp"
  52.        android:layout_marginTop="6dp"
  53.        android:ems="10"
  54.        android:inputType="number"
  55.        app:layout_constraintStart_toStartOf="parent"
  56.        app:layout_constraintTop_toBottomOf="@+id/textView3" />
  57.  
  58.     <Button
  59.        android:id="@+id/button4"
  60.        android:onClick="buttonSetCounter"
  61.        android:layout_width="wrap_content"
  62.        android:layout_height="wrap_content"
  63.        android:layout_marginStart="12dp"
  64.        android:layout_marginTop="6dp"
  65.        android:text="@string/Ok"
  66.        app:layout_constraintStart_toEndOf="@+id/editTextNumber2"
  67.        app:layout_constraintTop_toBottomOf="@+id/textView3" />
  68.  
  69.     <EditText
  70.        android:id="@+id/editTextNumber3"
  71.        android:layout_width="wrap_content"
  72.        android:layout_height="wrap_content"
  73.        android:layout_marginStart="12dp"
  74.        android:layout_marginTop="6dp"
  75.        android:ems="10"
  76.        android:inputType="number"
  77.        app:layout_constraintStart_toStartOf="parent"
  78.        app:layout_constraintTop_toBottomOf="@+id/textView4" />
  79.  
  80.     <Button
  81.        android:id="@+id/button5"
  82.        android:onClick="buttonSetInterval"
  83.        android:layout_width="wrap_content"
  84.        android:layout_height="wrap_content"
  85.        android:layout_marginStart="12dp"
  86.        android:layout_marginTop="6dp"
  87.        android:text="@string/Ok"
  88.        app:layout_constraintStart_toEndOf="@+id/editTextNumber3"
  89.        app:layout_constraintTop_toBottomOf="@+id/textView4" />
  90.  
  91.     <TextView
  92.        android:id="@+id/textView3"
  93.        android:layout_width="wrap_content"
  94.        android:layout_height="wrap_content"
  95.        android:layout_marginStart="20dp"
  96.        android:layout_marginTop="12dp"
  97.        android:text="@string/start_value"
  98.        app:layout_constraintStart_toStartOf="parent"
  99.        app:layout_constraintTop_toTopOf="parent" />
  100.  
  101.     <TextView
  102.        android:id="@+id/textView4"
  103.        android:layout_width="wrap_content"
  104.        android:layout_height="wrap_content"
  105.        android:layout_marginStart="20dp"
  106.        android:layout_marginTop="12dp"
  107.        android:text="@string/interval"
  108.        app:layout_constraintStart_toStartOf="parent"
  109.        app:layout_constraintTop_toBottomOf="@+id/editTextNumber2" />
  110.  
  111.     <Button
  112.        android:id="@+id/button6"
  113.        android:onClick="buttonReset"
  114.        android:layout_width="wrap_content"
  115.        android:layout_height="wrap_content"
  116.        android:layout_marginTop="20dp"
  117.        android:text="@string/reset"
  118.        app:layout_constraintEnd_toEndOf="parent"
  119.        app:layout_constraintStart_toStartOf="parent"
  120.        app:layout_constraintTop_toBottomOf="@+id/textCounter" />
  121.  
  122.     <TextView
  123.        android:id="@+id/textView5"
  124.        android:layout_width="wrap_content"
  125.        android:layout_height="wrap_content"
  126.        android:layout_marginBottom="16dp"
  127.        android:text="@string/my_name"
  128.        app:layout_constraintBottom_toBottomOf="parent"
  129.        app:layout_constraintEnd_toEndOf="parent"
  130.        app:layout_constraintStart_toStartOf="parent" />
  131.  
  132. </androidx.constraintlayout.widget.ConstraintLayout>
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×