Advertisement
hamidms

inikoding_findviewbyid_xml

Sep 29th, 2018
457
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.77 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.constraint.ConstraintLayout
  3.    xmlns:android="http://schemas.android.com/apk/res/android"
  4.    xmlns:app="http://schemas.android.com/apk/res-auto"
  5.    xmlns:tools="http://schemas.android.com/tools"
  6.    android:layout_width="match_parent"
  7.    android:layout_height="match_parent"
  8.    tools:context=".MainActivity">
  9.  
  10.     <LinearLayout
  11.        android:gravity="center"
  12.        android:layout_width="match_parent"
  13.        android:layout_height="match_parent">
  14.  
  15.         <Button
  16.            android:id="@+id/btn_toast"
  17.            android:layout_width="wrap_content"
  18.            android:layout_height="wrap_content"
  19.            android:text="Say Hallo"/>
  20.     </LinearLayout>
  21.  
  22. </android.support.constraint.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement