Advertisement
mmayoub

Intent, first activity, layout

Sep 5th, 2021
1,233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.81 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:id="@+id/textView7"
  10.        android:layout_width="match_parent"
  11.        android:layout_height="wrap_content"
  12.        android:layout_weight="3"
  13.        android:background="#EF6C00"
  14.        android:gravity="center"
  15.        android:text="First application"
  16.        android:textSize="34sp" />
  17.  
  18.     <Button
  19.        android:id="@+id/button2"
  20.        android:layout_width="match_parent"
  21.        android:layout_height="0dp"
  22.        android:layout_weight="1"
  23.        android:onClick="openSecond"
  24.        android:text="open second activity" />
  25.  
  26. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement