Advertisement
mmayoub

עיצוב מסך, קובץ xml

Aug 28th, 2021
1,327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.65 KB | None | 0 0
  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2.    xmlns:app="http://schemas.android.com/apk/res-auto"
  3.    android:layout_width="match_parent"
  4.  
  5.    android:layout_height="match_parent"
  6.    android:layout_margin="16dp"
  7.    android:orientation="vertical">
  8.  
  9.     <ImageView
  10.        android:id="@+id/imageView"
  11.        android:layout_width="match_parent"
  12.        android:layout_height="match_parent"
  13.        android:layout_weight="1"
  14.        app:srcCompat="@android:drawable/btn_star_big_on" />
  15.  
  16.     <TextView
  17.        android:id="@+id/tvBmi"
  18.        android:layout_width="match_parent"
  19.        android:layout_height="match_parent"
  20.        android:layout_weight="1"
  21.        android:text="TextView"
  22.        android:textSize="24sp" />
  23.  
  24.     <EditText
  25.        android:id="@+id/etWeight"
  26.        android:layout_width="match_parent"
  27.        android:layout_height="match_parent"
  28.        android:layout_weight="1"
  29.        android:ems="10"
  30.        android:hint=" Weight (kg)"
  31.        android:inputType="numberDecimal"
  32.        android:textSize="24sp" />
  33.  
  34.     <EditText
  35.        android:id="@+id/etHeight"
  36.        android:layout_width="match_parent"
  37.        android:layout_height="match_parent"
  38.        android:layout_weight="1"
  39.        android:ems="10"
  40.        android:hint="Height (m)"
  41.        android:inputType="numberDecimal"
  42.        android:textSize="24sp" />
  43.  
  44.     <Button
  45.        android:id="@+id/btnCalculate"
  46.        android:layout_width="match_parent"
  47.        android:layout_height="match_parent"
  48.        android:layout_weight="1"
  49.        android:onClick="calaculate"
  50.        android:text="Calculte" />
  51.  
  52. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement