Facebook
From Colorant Curlew, 5 Years ago, written in XML.
Embed
Download Paste or View Raw
Hits: 239
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.constraint.ConstraintLayout 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.    tools:context=".MainActivity">
  8.  
  9.     <LinearLayout
  10.        android:layout_width="368dp"
  11.        android:layout_height="551dp"
  12.        android:orientation="vertical"
  13.        tools:layout_editor_absoluteX="8dp"
  14.        tools:layout_editor_absoluteY="8dp">
  15.  
  16.         <EditText
  17.            android:id="@+id/nameEditText"
  18.            android:layout_width="match_parent"
  19.            android:layout_height="wrap_content"
  20.            android:ems="10"
  21.            android:inputType="textPersonName"
  22.            android:text="Nazwa" />
  23.  
  24.         <EditText
  25.            android:id="@+id/numberEditText"
  26.            android:layout_width="match_parent"
  27.            android:layout_height="wrap_content"
  28.            android:ems="10"
  29.            android:inputType="textPersonName"
  30.            android:text="Numer" />
  31.  
  32.         <Button
  33.            android:id="@+id/addButton"
  34.            android:layout_width="match_parent"
  35.            android:layout_height="wrap_content"
  36.            android:onClick="onClickAdd"
  37.            android:text="DODAJ" />
  38.  
  39.         <Button
  40.            android:id="@+id/delButton"
  41.            android:layout_width="match_parent"
  42.            android:layout_height="wrap_content"
  43.            android:onClick="onClickDel"
  44.            android:text="USUŃ" />
  45.  
  46.         <TextView
  47.            android:id="@+id/textView"
  48.            android:layout_width="match_parent"
  49.            android:layout_height="wrap_content"
  50.            android:text="Zawartość bazy:" />
  51.  
  52.         <TextView
  53.            android:id="@+id/resultTextView"
  54.            android:layout_width="match_parent"
  55.            android:layout_height="wrap_content"
  56.            android:text="......................" />
  57.  
  58.         <ListView
  59.            android:id="@+id/listview"
  60.            android:layout_width="match_parent"
  61.            android:layout_height="match_parent" />
  62.     </LinearLayout>
  63. </android.support.constraint.ConstraintLayout>