mirror of
https://github.com/bspeice/itcs4180
synced 2025-07-02 22:35:11 -04:00
Fixed main activity errors and added click function to start
GalleryActivity. Started working on GalleryActivity.
This commit is contained in:
18
HW4/res/layout/activity_gallery.xml
Normal file
18
HW4/res/layout/activity_gallery.xml
Normal file
@ -0,0 +1,18 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context="com.example.hw4.GalleryActivity"
|
||||
tools:ignore="MergeRootFrame" >
|
||||
|
||||
<GridView
|
||||
android:id="@+id/gallery"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:numColumns="4" >
|
||||
</GridView>
|
||||
|
||||
</LinearLayout>
|
||||
|
12
HW4/res/menu/gallery.xml
Normal file
12
HW4/res/menu/gallery.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="com.example.hw4.GalleryActivity" >
|
||||
|
||||
<item
|
||||
android:id="@+id/action_settings"
|
||||
android:orderInCategory="100"
|
||||
android:title="@string/action_settings"
|
||||
app:showAsAction="never"/>
|
||||
|
||||
</menu>
|
10
HW4/res/values-w820dp/dimens.xml
Normal file
10
HW4/res/values-w820dp/dimens.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<resources>
|
||||
|
||||
<!--
|
||||
Example customization of dimensions originally defined in res/values/dimens.xml
|
||||
(such as screen margins) for screens with more than 820dp of available width. This
|
||||
would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively).
|
||||
-->
|
||||
<dimen name="activity_horizontal_margin">64dp</dimen>
|
||||
|
||||
</resources>
|
@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string name="action_settings">Settings</string>
|
||||
<string name="app_name">UNC Charlotte Photos</string>
|
||||
<string name="title_activity_main">Main Activity</string>
|
||||
<string name="menu_settings">Settings</string>
|
||||
@ -210,4 +211,6 @@
|
||||
<item>http://farm9.staticflickr.com/8372/8481740075_c3e1c3a7b2_z.jpg</item>
|
||||
</string-array>
|
||||
|
||||
<string name="hello_world">Hello world!</string>
|
||||
|
||||
</resources>
|
Reference in New Issue
Block a user