Skip to content

Instantly share code, notes, and snippets.

@bcswartz
Created November 23, 2017 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcswartz/6d5996e01cbf1ee43ec1fdd6b0679992 to your computer and use it in GitHub Desktop.
Save bcswartz/6d5996e01cbf1ee43ec1fdd6b0679992 to your computer and use it in GitHub Desktop.
Simple example of importing a layout XML definition in Android in early days
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/pageColor">
<include android:id="@+id/header" layout="@layout/main_header" />
<ListView android:id="@+id/android:list"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/pageColor" />
<TextView android:id="@+id/android:empty"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/pageColor"
android:textColor="@color/listItemColor"
android:text="No Events Found"/>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment