Skip to content

Instantly share code, notes, and snippets.

@ZahidRasheed
Forked from MizzleDK/XML puzzle
Last active July 21, 2022 13:44
Show Gist options
  • Select an option

  • Save ZahidRasheed/4b0f9ab1a4815713c7c3e10a8892da0b to your computer and use it in GitHub Desktop.

Select an option

Save ZahidRasheed/4b0f9ab1a4815713c7c3e10a8892da0b to your computer and use it in GitHub Desktop.

Revisions

  1. ZahidRasheed renamed this gist Jun 12, 2021. 1 changed file with 2 additions and 5 deletions.
    7 changes: 2 additions & 5 deletions XML puzzle → Code Sample-2.kt
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,9 @@
    <?xml version="1.0" encoding="utf-8"?>
    <!-- LinearLayout because life is linear -->
    <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"
    android:gravity="right">
    android:layout_height="match_parent">

    <!-- TextView to welcome users into the app -->
    <TextView
    @@ -24,8 +22,7 @@
    android:layout_width="150dp"
    android:layout_height="75sp"
    android:src="@android:drawable/star_big_on"
    tools:src="@null"
    />
    tools:src="@null"/>

    <!-- View to hold the solid background color -->
    <View
  2. ZahidRasheed revised this gist Jun 12, 2021. No changes.
  3. @MizzleDK MizzleDK created this gist Mar 26, 2020.
    37 changes: 37 additions & 0 deletions XML puzzle
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,37 @@
    <?xml version="1.0" encoding="utf-8"?>
    <!-- LinearLayout because life is linear -->
    <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"
    android:gravity="right">

    <!-- 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 to YouSee" />

    <!-- ImageView with YouSee 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>