Created
November 23, 2017 20:03
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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