Advertisement
Baru_Berbagi

activity_main.xml

May 29th, 2021
497
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.53 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout 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:orientation="vertical"
  8.    android:padding="10dp"
  9.    android:background="#6D45C4B6"
  10.    tools:context=".MainActivity">
  11.  
  12.     <EditText
  13.        android:id="@+id/edtNomor"
  14.        android:layout_width="match_parent"
  15.        android:layout_height="wrap_content"
  16.        android:layout_marginTop="10dp"
  17.        android:padding="10dp"
  18.        android:inputType="number"
  19.        android:background="#ffffff"
  20.        android:textColor="#000000"/>
  21.     <Button
  22.        android:id="@+id/btnKonversi"
  23.        android:layout_width="match_parent"
  24.        android:layout_height="wrap_content"
  25.        android:layout_marginTop="10dp"
  26.        android:text="Konversi"
  27.        android:padding="10dp"
  28.        android:textColor="#000000"/>
  29.  
  30.  
  31.     <LinearLayout
  32.        android:layout_width="match_parent"
  33.        android:layout_height="wrap_content"
  34.        android:orientation="horizontal"
  35.        android:layout_marginTop="30dp">
  36.  
  37.         <TextView
  38.            android:layout_width="match_parent"
  39.            android:layout_height="wrap_content"
  40.            android:textColor="#000000"
  41.            android:gravity="center"
  42.            android:text="BIN:"
  43.            android:textSize="25dp"
  44.            android:layout_weight="3"/>
  45.  
  46.         <TextView
  47.            android:id="@+id/txtBin"
  48.            android:layout_width="match_parent"
  49.            android:layout_height="wrap_content"
  50.            android:background="#7A7979"
  51.            android:textColor="#FFFFFF"
  52.            android:padding="10dp"
  53.            android:layout_weight="1"/>
  54.     </LinearLayout>
  55.  
  56.     <LinearLayout
  57.        android:layout_width="match_parent"
  58.        android:layout_height="wrap_content"
  59.        android:orientation="horizontal"
  60.        android:layout_marginTop="30dp">
  61.  
  62.         <TextView
  63.            android:layout_width="match_parent"
  64.            android:layout_height="wrap_content"
  65.            android:textColor="#000000"
  66.            android:gravity="center"
  67.            android:text="OCT:"
  68.            android:textSize="25dp"
  69.            android:layout_weight="3"/>
  70.  
  71.         <TextView
  72.            android:id="@+id/txtOct"
  73.            android:layout_width="match_parent"
  74.            android:layout_height="wrap_content"
  75.            android:background="#7A7979"
  76.            android:textColor="#FFFFFF"
  77.            android:padding="10dp"
  78.            android:layout_weight="1"/>
  79.     </LinearLayout>
  80.  
  81.     <LinearLayout
  82.        android:layout_width="match_parent"
  83.        android:layout_height="wrap_content"
  84.        android:orientation="horizontal"
  85.        android:layout_marginTop="30dp">
  86.  
  87.         <TextView
  88.            android:layout_width="match_parent"
  89.            android:layout_height="wrap_content"
  90.            android:textColor="#000000"
  91.            android:gravity="center"
  92.            android:text="HEX:"
  93.            android:textSize="25dp"
  94.            android:layout_weight="3"/>
  95.  
  96.         <TextView
  97.            android:id="@+id/txtHex"
  98.            android:layout_width="match_parent"
  99.            android:layout_height="wrap_content"
  100.            android:background="#7A7979"
  101.            android:textColor="#FFFFFF"
  102.            android:padding="10dp"
  103.            android:layout_weight="1"/>
  104.     </LinearLayout>
  105.  
  106. </LinearLayout>
  107.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement