Skip to content

Instantly share code, notes, and snippets.

@FelipeBerbert
Forked from ZahidRasheed/Code Sample-2.kt
Last active July 21, 2022 13:47
Show Gist options
  • Select an option

  • Save FelipeBerbert/46cf7c137ef7dbbf14e27e0a81eb402a to your computer and use it in GitHub Desktop.

Select an option

Save FelipeBerbert/46cf7c137ef7dbbf14e27e0a81eb402a to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="match_parent">
<!-- TextView to welcome users into the app -->
<TextView
android:id="@id/logo_text"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:paddingBottom="10px"
android:textSize="32dp"
android:text="Welcome!!" />
<!-- ImageView with logo -->
<ImageView
android:id="@+id/logo"
android:layout_width="150dp"
android:layout_height="75sp"
android:src="@android:drawable/star_big_on"
tools:src="@null"/>
<!-- View to hold the solid background color -->
<View
android:id="@+id/background_color"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ccc" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment