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:
@ -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>
|
||||
|
16
HW5/res/layout/news_site.xml
Normal file
16
HW5/res/layout/news_site.xml
Normal 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>
|
Reference in New Issue
Block a user