Advertisement
khamim

Untitled

Jul 16th, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.69 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:tools="http://schemas.android.com/tools"
  4.    android:layout_width="match_parent"
  5.    android:layout_height="match_parent"
  6.    android:orientation="vertical"
  7.    android:paddingBottom="@dimen/activity_vertical_margin"
  8.    android:paddingLeft="@dimen/activity_horizontal_margin"
  9.    android:paddingRight="@dimen/activity_horizontal_margin"
  10.    android:paddingTop="@dimen/activity_vertical_margin"
  11.    tools:context="com.khamim.example.com.hellotoast.MainActivity">
  12.  
  13.     <Button
  14.        android:id="@+id/button_toast"
  15.        android:layout_width="match_parent"
  16.        android:layout_height="wrap_content"
  17.        android:text="@string/button_label_toast"
  18.        android:background="@color/colorPrimary"
  19.        android:textColor="@android:color/white"
  20.        android:onClick="ShowToast"/>
  21.     <TextView
  22.        android:id="@+id/show_count"
  23.        android:layout_width="match_parent"
  24.        android:layout_height="wrap_content"
  25.        android:gravity="center"
  26.        android:text="@string/count_initial_value"
  27.        android:textSize="@dimen/count_text_size"
  28.        android:textStyle="bold"
  29.        android:textColor="@color/colorPrimary"
  30.        android:background="@color/myBackgroundColor"
  31.        android:layout_weight="2"/>
  32.     <Button
  33.        android:id="@+id/button_count"
  34.        android:layout_width="match_parent"
  35.        android:layout_height="wrap_content"
  36.        android:text="@string/button_label_count"
  37.        android:background="@color/colorPrimary"
  38.        android:textColor="@android:color/black"
  39.        android:onClick="countUp"/>
  40. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement