Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 8.09 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.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:id="@+id/LineareLayout"
  11.        android:layout_width="fill_parent"
  12.        android:layout_height="fill_parent"
  13.        android:background="#3B83FFFB"
  14.        android:orientation="vertical"
  15.        android:padding="15dp"
  16.        app:layout_constraintBottom_toBottomOf="parent"
  17.        app:layout_constraintEnd_toEndOf="parent"
  18.        app:layout_constraintStart_toStartOf="parent"
  19.        app:layout_constraintTop_toTopOf="parent">
  20.  
  21.         <com.google.android.material.card.MaterialCardView
  22.            android:layout_width="match_parent"
  23.            android:layout_height="wrap_content"
  24.            android:layout_marginLeft="@dimen/mtrl_card_spacing"
  25.            android:layout_marginTop="@dimen/mtrl_card_spacing"
  26.            android:layout_marginRight="@dimen/mtrl_card_spacing"
  27.            android:minHeight="200dp">
  28.  
  29.             <TextView
  30.                android:id="@+id/calcTxt"
  31.                android:layout_width="fill_parent"
  32.                android:layout_height="fill_parent"
  33.                android:fontFamily="monospace"
  34.                android:text="_"
  35.                android:textAlignment="textEnd"
  36.                android:textSize="30sp" />
  37.         </com.google.android.material.card.MaterialCardView>
  38.  
  39.         <com.google.android.flexbox.FlexboxLayout
  40.            android:layout_width="match_parent"
  41.            android:layout_height="match_parent"
  42.            app:alignContent="stretch"
  43.            app:alignItems="stretch"
  44.            app:flexWrap="wrap"
  45.            app:justifyContent="space_evenly">
  46.  
  47.             <com.google.android.material.button.MaterialButton
  48.                android:id="@+id/one"
  49.                style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
  50.                android:layout_width="wrap_content"
  51.                android:layout_height="wrap_content"
  52.                android:layout_margin="1dp"
  53.                android:text="1"
  54.                app:backgroundTint="@color/colorNombres"
  55.                app:layout_flexBasisPercent="30%" />
  56.  
  57.             <com.google.android.material.button.MaterialButton
  58.                android:id="@+id/two"
  59.                style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
  60.                android:layout_width="wrap_content"
  61.                android:layout_height="wrap_content"
  62.                android:layout_margin="1dp"
  63.                android:text="2"
  64.                app:backgroundTint="@color/colorNombres"
  65.                app:layout_flexBasisPercent="30%" />
  66.  
  67.             <com.google.android.material.button.MaterialButton
  68.                android:id="@+id/three"
  69.                style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
  70.                android:layout_width="wrap_content"
  71.                android:layout_height="wrap_content"
  72.                android:layout_margin="1dp"
  73.                android:text="3"
  74.                app:backgroundTint="@color/colorNombres"
  75.                app:layout_flexBasisPercent="30%" />
  76.  
  77.             <com.google.android.material.button.MaterialButton
  78.                android:id="@+id/four"
  79.                style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
  80.                android:layout_width="wrap_content"
  81.                android:layout_height="wrap_content"
  82.                android:layout_margin="1dp"
  83.                android:text="4"
  84.                app:backgroundTint="@color/colorNombres"
  85.                app:layout_flexBasisPercent="30%" />
  86.  
  87.             <com.google.android.material.button.MaterialButton
  88.                android:id="@+id/five"
  89.                style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
  90.                android:layout_width="wrap_content"
  91.                android:layout_height="wrap_content"
  92.                android:layout_margin="1dp"
  93.                android:text="5"
  94.                app:backgroundTint="@color/colorNombres"
  95.                app:layout_flexBasisPercent="30%" />
  96.  
  97.             <com.google.android.material.button.MaterialButton
  98.                android:id="@+id/six"
  99.                style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
  100.                android:layout_width="wrap_content"
  101.                android:layout_height="wrap_content"
  102.                android:layout_margin="1dp"
  103.                android:text="6"
  104.                app:backgroundTint="@color/colorNombres"
  105.                app:layout_flexBasisPercent="30%" />
  106.  
  107.             <com.google.android.material.button.MaterialButton
  108.                android:id="@+id/seven"
  109.                style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
  110.                android:layout_width="wrap_content"
  111.                android:layout_height="wrap_content"
  112.                android:layout_margin="1dp"
  113.                android:text="7"
  114.                app:backgroundTint="@color/colorNombres"
  115.                app:layout_flexBasisPercent="30%" />
  116.  
  117.             <com.google.android.material.button.MaterialButton
  118.                android:id="@+id/height"
  119.                style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
  120.                android:layout_width="wrap_content"
  121.                android:layout_height="wrap_content"
  122.                android:layout_margin="1dp"
  123.                android:text="8"
  124.                app:backgroundTint="@color/colorNombres"
  125.                app:layout_flexBasisPercent="30%" />
  126.  
  127.             <com.google.android.material.button.MaterialButton
  128.                android:id="@+id/nine"
  129.                style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
  130.                android:layout_width="wrap_content"
  131.                android:layout_height="wrap_content"
  132.                android:layout_margin="1dp"
  133.                android:text="9"
  134.                app:backgroundTint="@color/colorNombres"
  135.                app:layout_flexBasisPercent="30%" />
  136.  
  137.             <com.google.android.material.button.MaterialButton
  138.                android:id="@+id/moins"
  139.                style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
  140.                android:layout_width="wrap_content"
  141.                android:layout_height="wrap_content"
  142.                android:background="#E91E63"
  143.                android:text="-"
  144.                app:backgroundTint="@color/colorSignes"
  145.                app:layout_flexBasisPercent="23%" />
  146.  
  147.             <com.google.android.material.button.MaterialButton
  148.                android:id="@+id/fois"
  149.                style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
  150.                android:layout_width="wrap_content"
  151.                android:layout_height="wrap_content"
  152.                android:text="x"
  153.                app:backgroundTint="@color/colorSignes"
  154.                app:layout_flexBasisPercent="23%" />
  155.  
  156.             <com.google.android.material.button.MaterialButton
  157.                android:id="@+id/plus"
  158.                style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
  159.                android:layout_width="wrap_content"
  160.                android:layout_height="wrap_content"
  161.                android:text="+"
  162.                app:backgroundTint="@color/colorSignes"
  163.                app:layout_flexBasisPercent="23%" />
  164.  
  165.             <com.google.android.material.button.MaterialButton
  166.                android:id="@+id/eguale"
  167.                style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
  168.                android:layout_width="wrap_content"
  169.                android:layout_height="wrap_content"
  170.                android:text="="
  171.                app:backgroundTint="@color/colorEgual"
  172.                app:layout_flexBasisPercent="23%" />
  173.         </com.google.android.flexbox.FlexboxLayout>
  174.     </LinearLayout>
  175. </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement