Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- tools:context=".MainActivity">
- <LinearLayout
- android:id="@+id/LineareLayout"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:background="#3B83FFFB"
- android:orientation="vertical"
- android:padding="15dp"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent">
- <com.google.android.material.card.MaterialCardView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginLeft="@dimen/mtrl_card_spacing"
- android:layout_marginTop="@dimen/mtrl_card_spacing"
- android:layout_marginRight="@dimen/mtrl_card_spacing"
- android:minHeight="200dp">
- <TextView
- android:id="@+id/calcTxt"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:fontFamily="monospace"
- android:text="_"
- android:textAlignment="textEnd"
- android:textSize="30sp" />
- </com.google.android.material.card.MaterialCardView>
- <com.google.android.flexbox.FlexboxLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:alignContent="stretch"
- app:alignItems="stretch"
- app:flexWrap="wrap"
- app:justifyContent="space_evenly">
- <com.google.android.material.button.MaterialButton
- android:id="@+id/one"
- style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_margin="1dp"
- android:text="1"
- app:backgroundTint="@color/colorNombres"
- app:layout_flexBasisPercent="30%" />
- <com.google.android.material.button.MaterialButton
- android:id="@+id/two"
- style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_margin="1dp"
- android:text="2"
- app:backgroundTint="@color/colorNombres"
- app:layout_flexBasisPercent="30%" />
- <com.google.android.material.button.MaterialButton
- android:id="@+id/three"
- style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_margin="1dp"
- android:text="3"
- app:backgroundTint="@color/colorNombres"
- app:layout_flexBasisPercent="30%" />
- <com.google.android.material.button.MaterialButton
- android:id="@+id/four"
- style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_margin="1dp"
- android:text="4"
- app:backgroundTint="@color/colorNombres"
- app:layout_flexBasisPercent="30%" />
- <com.google.android.material.button.MaterialButton
- android:id="@+id/five"
- style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_margin="1dp"
- android:text="5"
- app:backgroundTint="@color/colorNombres"
- app:layout_flexBasisPercent="30%" />
- <com.google.android.material.button.MaterialButton
- android:id="@+id/six"
- style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_margin="1dp"
- android:text="6"
- app:backgroundTint="@color/colorNombres"
- app:layout_flexBasisPercent="30%" />
- <com.google.android.material.button.MaterialButton
- android:id="@+id/seven"
- style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_margin="1dp"
- android:text="7"
- app:backgroundTint="@color/colorNombres"
- app:layout_flexBasisPercent="30%" />
- <com.google.android.material.button.MaterialButton
- android:id="@+id/height"
- style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_margin="1dp"
- android:text="8"
- app:backgroundTint="@color/colorNombres"
- app:layout_flexBasisPercent="30%" />
- <com.google.android.material.button.MaterialButton
- android:id="@+id/nine"
- style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_margin="1dp"
- android:text="9"
- app:backgroundTint="@color/colorNombres"
- app:layout_flexBasisPercent="30%" />
- <com.google.android.material.button.MaterialButton
- android:id="@+id/moins"
- style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="#E91E63"
- android:text="-"
- app:backgroundTint="@color/colorSignes"
- app:layout_flexBasisPercent="23%" />
- <com.google.android.material.button.MaterialButton
- android:id="@+id/fois"
- style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="x"
- app:backgroundTint="@color/colorSignes"
- app:layout_flexBasisPercent="23%" />
- <com.google.android.material.button.MaterialButton
- android:id="@+id/plus"
- style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="+"
- app:backgroundTint="@color/colorSignes"
- app:layout_flexBasisPercent="23%" />
- <com.google.android.material.button.MaterialButton
- android:id="@+id/eguale"
- style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="="
- app:backgroundTint="@color/colorEgual"
- app:layout_flexBasisPercent="23%" />
- </com.google.android.flexbox.FlexboxLayout>
- </LinearLayout>
- </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement