1
0
mirror of https://github.com/bspeice/itcs4180 synced 2025-07-03 14:55:11 -04:00

Add the main page functionality for HW 5

This commit is contained in:
DjBushido
2014-04-08 22:43:04 -04:00
parent c81decd705
commit 3a5e0b2918
3 changed files with 86 additions and 4 deletions

View File

@ -8,9 +8,33 @@
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >
<TextView
android:layout_width="wrap_content"
<ListView
android:id="@+id/listNewsFeeds"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
</ListView>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello_world" />
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true" >
<Button
android:id="@+id/btnViewSaved"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="View Saved News"
android:onClick="onViewSaved" />
<Button
android:id="@+id/btnClearSaved"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Clear Saved News"
android:onClick="onClearSaved" />
</LinearLayout>
</RelativeLayout>

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/txtSiteName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:padding="15dp"
android:text="Large Text"
android:textAppearance="?android:attr/textAppearanceLarge" />
</LinearLayout>