Advertisement
mmayoub

Intent, second activity, layout

Sep 5th, 2021
1,318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.74 KB | None | 0 0
  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2.    android:layout_width="match_parent"
  3.  
  4.    android:layout_height="match_parent"
  5.    android:layout_margin="16dp"
  6.    android:orientation="vertical">
  7.  
  8.     <TextView
  9.        android:layout_width="match_parent"
  10.        android:layout_height="wrap_content"
  11.        android:layout_weight="3"
  12.        android:background="#2CEF00"
  13.        android:gravity="center"
  14.        android:text="Second application"
  15.        android:textSize="34sp" />
  16.  
  17.     <Button
  18.        android:layout_width="match_parent"
  19.        android:layout_height="0dp"
  20.        android:layout_weight="1"
  21.        android:onClick="openFirst"
  22.        android:text="open first activity" />
  23.  
  24. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement