Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- style="@style/tema"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="0.3"
- android:orientation="vertical">
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- android:layout_centerVertical="true"
- android:orientation="vertical">
- <TextView
- android:id="@+id/visor"
- style="@style/visor"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center" />
- <TextView
- android:id="@+id/visorPrincipal"
- style="@style/visorPrincipal"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center" />
- </LinearLayout>
- </RelativeLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="0.14"
- android:orientation="horizontal">
- <Button
- style="@style/botaoDestaque"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="0.25"
- android:onClick="handleButtonLimpar"
- android:text="C" />
- <ImageButton
- style="@style/botaoDestaque"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="0.25"
- android:onClick="handleButtonDesfazer"
- android:src="@mipmap/ic_launcher_foreground"
- android:adjustViewBounds="true"
- android:padding="24dp"
- android:scaleType="fitCenter" />
- <Button
- style="@style/botaoDestaque"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="0.25"
- android:onClick="handleButtonPorcentagem"
- android:text="%" />
- <Button
- style="@style/botaoDestaque"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="0.25"
- android:onClick="handleButtonDivide"
- android:text="÷" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="0.14"
- android:orientation="horizontal">
- <Button
- style="@style/botao"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="0.25"
- android:onClick="handleButtonSete"
- android:text="7" />
- <Button
- style="@style/botao"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="0.25"
- android:onClick="handleButtonOito"
- android:text="8" />
- <Button
- style="@style/botao"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="0.25"
- android:onClick="handleButtonNove"
- android:text="9" />
- <Button
- style="@style/botaoDestaque"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="0.25"
- android:onClick="handleButtonMultiplica"
- android:text="×" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="0.14"
- android:orientation="horizontal">
- <Button
- style="@style/botao"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="0.25"
- android:onClick="handleButtonQuatro"
- android:text="4" />
- <Button
- style="@style/botao"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="0.25"
- android:onClick="handleButtonCinco"
- android:text="5" />
- <Button
- style="@style/botao"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="0.25"
- android:onClick="handleButtonSeis"
- android:text="6" />
- <Button
- style="@style/botaoDestaque"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="0.25"
- android:onClick="handleButtonSubtrai"
- android:text="-" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="0.14"
- android:orientation="horizontal">
- <Button
- style="@style/botao"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="0.25"
- android:onClick="handleButtonUm"
- android:text="1" />
- <Button
- style="@style/botao"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="0.25"
- android:onClick="handleButtonDois"
- android:text="2" />
- <Button
- style="@style/botao"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="0.25"
- android:onClick="handleButtonTres"
- android:text="3" />
- <Button
- style="@style/botaoDestaque"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="0.25"
- android:onClick="handleButtonSoma"
- android:text="+" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="0.14"
- android:orientation="horizontal">
- <Button
- style="@style/botao"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="0.15"
- android:onClick="handleButtonZero"
- android:text="0" />
- <Button
- style="@style/botao"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="0.15"
- android:onClick="handleButtonVirgula"
- android:text="," />
- <Button
- style="@style/botaoDestaque"
- android:layout_width="@dimen/default_margin_duo"
- android:layout_height="match_parent"
- android:layout_weight="0.30"
- android:onClick="handleButtonResultado"
- android:text="=" />
- </LinearLayout>
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement