Advertisement
rabbitekk312

Untitled

Nov 2nd, 2021
1,064
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.18 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    xmlns:tools="http://schemas.android.com/tools"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.     android:backgroud="#4082CD"
  8.    tools:context=".MainActivity">
  9.  
  10.     <TextView
  11.        android:layout_width="150dp"
  12.        android:layout_height="20dp"
  13.        android:text="Wynik"
  14.        android:id="@+id/wynik"
  15.        android:textAlignment="center"
  16.        android:layout_above="@+id/dodaj"
  17.        android:layout_marginBottom="30pt"
  18.        android:layout_centerInParent="true"
  19.        android:background="#03BCD4"/>
  20.  
  21.     <EditText
  22.        android:id="@+id/editLiczba1"
  23.        android:layout_width="100dp"
  24.        android:layout_height="30dp"
  25.        android:layout_above="@id/wynik"
  26.        android:layout_marginBottom="30dp"
  27.        android:background="#8BC34A"
  28.        android:hint="Liczba 1"
  29.        android:textAlignment="center"
  30.        android:layout_marginLeft="70dp"
  31.        android:textColor="#850404"/>
  32.  
  33.     <EditText
  34.        android:id="@+id/editLiczba2"
  35.        android:layout_width="100dp"
  36.        android:layout_height="30dp"
  37.        android:layout_above="@id/wynik"
  38.        android:background="#BBC34A"
  39.        android:hint="Liczba 2"
  40.        android:textAlignment="center"
  41.        android:textColor="#000000"
  42.        android:layout_marginLeft="240dp"
  43.        android:layout_marginBottom="30dp"/>
  44.  
  45.     <Button
  46.        android:id="@+id/dodaj"
  47.        android:layout_width="wrap_content"
  48.        android:layout_height="wrap_content"
  49.        android:layout_centerInParent="true"
  50.        android:textColor="#078484"
  51.        android:background="#FF8688"
  52.        android:text="dodaj" />
  53.  
  54.     <ImageView
  55.        android:id="@+id/plus"
  56.        android:layout_width="wrap_content"
  57.        android:layout_height="wrap_content"
  58.        android:layout_above="@id/wynik"
  59.  
  60.        android:layout_marginLeft="195dp"
  61.        android:layout_marginBottom="25dp"
  62.        android:paddingBottom="5pt"
  63.        app:srcCompat="@drawable/plus"
  64.        />
  65.  
  66. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement