1
0
mirror of https://github.com/bspeice/itcs4180 synced 2024-12-04 13:18:16 -05:00

Fixed main activity errors and added click function to start

GalleryActivity. Started working on GalleryActivity.
This commit is contained in:
tokugawa 2014-03-23 20:56:39 -04:00
parent 5e66a9d27a
commit 7d937009e8
21 changed files with 749 additions and 11 deletions

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.hw4"
android:versionCode="1"
@ -7,6 +7,7 @@
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="16" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
@ -22,6 +23,10 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.example.hw4.GalleryActivity"
android:label="@string/title_activity_gallery" >
</activity>
</application>
</manifest>

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.hw4"
android:versionCode="1"
@ -7,6 +7,7 @@
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="16" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
@ -22,6 +23,10 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.example.hw4.GalleryActivity"
android:label="@string/title_activity_gallery" >
</activity>
</application>
</manifest>

BIN
HW4/bin/HW4.apk Normal file

Binary file not shown.

608
HW4/bin/R.txt Normal file
View File

@ -0,0 +1,608 @@
int anim abc_fade_in 0x7f040000
int anim abc_fade_out 0x7f040001
int anim abc_slide_in_bottom 0x7f040002
int anim abc_slide_in_top 0x7f040003
int anim abc_slide_out_bottom 0x7f040004
int anim abc_slide_out_top 0x7f040005
int array commencement_photos 0x7f0c0003
int array commencement_thumbs 0x7f0c0002
int array football_photos 0x7f0c0005
int array football_thumbs 0x7f0c0004
int array ifest_photos 0x7f0c0001
int array ifest_thumbs 0x7f0c0000
int array uncc_photos 0x7f0c0007
int array uncc_thumbs 0x7f0c0006
int attr actionBarDivider 0x7f01000b
int attr actionBarItemBackground 0x7f01000c
int attr actionBarSize 0x7f01000a
int attr actionBarSplitStyle 0x7f010008
int attr actionBarStyle 0x7f010007
int attr actionBarTabBarStyle 0x7f010004
int attr actionBarTabStyle 0x7f010003
int attr actionBarTabTextStyle 0x7f010005
int attr actionBarWidgetTheme 0x7f010009
int attr actionButtonStyle 0x7f010012
int attr actionDropDownStyle 0x7f010043
int attr actionLayout 0x7f01004a
int attr actionMenuTextAppearance 0x7f01000d
int attr actionMenuTextColor 0x7f01000e
int attr actionModeBackground 0x7f010038
int attr actionModeCloseButtonStyle 0x7f010037
int attr actionModeCloseDrawable 0x7f01003a
int attr actionModeCopyDrawable 0x7f01003c
int attr actionModeCutDrawable 0x7f01003b
int attr actionModeFindDrawable 0x7f010040
int attr actionModePasteDrawable 0x7f01003d
int attr actionModePopupWindowStyle 0x7f010042
int attr actionModeSelectAllDrawable 0x7f01003e
int attr actionModeShareDrawable 0x7f01003f
int attr actionModeSplitBackground 0x7f010039
int attr actionModeStyle 0x7f010036
int attr actionModeWebSearchDrawable 0x7f010041
int attr actionOverflowButtonStyle 0x7f010006
int attr actionProviderClass 0x7f01004c
int attr actionViewClass 0x7f01004b
int attr activityChooserViewStyle 0x7f010068
int attr background 0x7f01002b
int attr backgroundSplit 0x7f01002d
int attr backgroundStacked 0x7f01002c
int attr buttonBarButtonStyle 0x7f010014
int attr buttonBarStyle 0x7f010013
int attr customNavigationLayout 0x7f01002e
int attr disableChildrenWhenDisabled 0x7f010050
int attr displayOptions 0x7f010024
int attr divider 0x7f01002a
int attr dividerHorizontal 0x7f010017
int attr dividerPadding 0x7f010052
int attr dividerVertical 0x7f010016
int attr dropDownListViewStyle 0x7f01001d
int attr dropdownListPreferredItemHeight 0x7f010044
int attr expandActivityOverflowButtonDrawable 0x7f010067
int attr height 0x7f010022
int attr homeAsUpIndicator 0x7f01000f
int attr homeLayout 0x7f01002f
int attr icon 0x7f010028
int attr iconifiedByDefault 0x7f010056
int attr indeterminateProgressStyle 0x7f010031
int attr initialActivityCount 0x7f010066
int attr isLightTheme 0x7f010055
int attr itemPadding 0x7f010033
int attr listChoiceBackgroundIndicator 0x7f010048
int attr listPopupWindowStyle 0x7f01001e
int attr listPreferredItemHeight 0x7f010018
int attr listPreferredItemHeightLarge 0x7f01001a
int attr listPreferredItemHeightSmall 0x7f010019
int attr listPreferredItemPaddingLeft 0x7f01001b
int attr listPreferredItemPaddingRight 0x7f01001c
int attr logo 0x7f010029
int attr navigationMode 0x7f010023
int attr paddingEnd 0x7f010035
int attr paddingStart 0x7f010034
int attr panelMenuListTheme 0x7f010047
int attr panelMenuListWidth 0x7f010046
int attr popupMenuStyle 0x7f010045
int attr popupPromptView 0x7f01004f
int attr progressBarPadding 0x7f010032
int attr progressBarStyle 0x7f010030
int attr prompt 0x7f01004d
int attr queryHint 0x7f010057
int attr searchDropdownBackground 0x7f010058
int attr searchResultListItemHeight 0x7f010061
int attr searchViewAutoCompleteTextView 0x7f010065
int attr searchViewCloseIcon 0x7f010059
int attr searchViewEditQuery 0x7f01005d
int attr searchViewEditQueryBackground 0x7f01005e
int attr searchViewGoIcon 0x7f01005a
int attr searchViewSearchIcon 0x7f01005b
int attr searchViewTextField 0x7f01005f
int attr searchViewTextFieldRight 0x7f010060
int attr searchViewVoiceIcon 0x7f01005c
int attr selectableItemBackground 0x7f010015
int attr showAsAction 0x7f010049
int attr showDividers 0x7f010051
int attr spinnerDropDownItemStyle 0x7f010054
int attr spinnerMode 0x7f01004e
int attr spinnerStyle 0x7f010053
int attr subtitle 0x7f010025
int attr subtitleTextStyle 0x7f010027
int attr textAllCaps 0x7f010069
int attr textAppearanceLargePopupMenu 0x7f010010
int attr textAppearanceListItem 0x7f01001f
int attr textAppearanceListItemSmall 0x7f010020
int attr textAppearanceSearchResultSubtitle 0x7f010063
int attr textAppearanceSearchResultTitle 0x7f010062
int attr textAppearanceSmallPopupMenu 0x7f010011
int attr textColorSearchUrl 0x7f010064
int attr title 0x7f010021
int attr titleTextStyle 0x7f010026
int attr windowActionBar 0x7f010000
int attr windowActionBarOverlay 0x7f010001
int attr windowSplitActionBar 0x7f010002
int bool abc_action_bar_embed_tabs_pre_jb 0x7f060000
int bool abc_action_bar_expanded_action_views_exclusive 0x7f060001
int bool abc_config_actionMenuItemAllCaps 0x7f060005
int bool abc_config_allowActionMenuItemTextWithIcon 0x7f060004
int bool abc_config_showMenuShortcutsWhenKeyboardPresent 0x7f060003
int bool abc_split_action_bar_is_narrow 0x7f060002
int color abc_search_url_text_holo 0x7f070003
int color abc_search_url_text_normal 0x7f070000
int color abc_search_url_text_pressed 0x7f070002
int color abc_search_url_text_selected 0x7f070001
int dimen abc_action_bar_default_height 0x7f080002
int dimen abc_action_bar_icon_vertical_padding 0x7f080003
int dimen abc_action_bar_progress_bar_size 0x7f08000a
int dimen abc_action_bar_stacked_max_height 0x7f080009
int dimen abc_action_bar_stacked_tab_max_width 0x7f080001
int dimen abc_action_bar_subtitle_bottom_margin 0x7f080007
int dimen abc_action_bar_subtitle_text_size 0x7f080005
int dimen abc_action_bar_subtitle_top_margin 0x7f080006
int dimen abc_action_bar_title_text_size 0x7f080004
int dimen abc_action_button_min_width 0x7f080008
int dimen abc_config_prefDialogWidth 0x7f080000
int dimen abc_dropdownitem_icon_width 0x7f080010
int dimen abc_dropdownitem_text_padding_left 0x7f08000e
int dimen abc_dropdownitem_text_padding_right 0x7f08000f
int dimen abc_panel_menu_list_width 0x7f08000b
int dimen abc_search_view_preferred_width 0x7f08000d
int dimen abc_search_view_text_min_width 0x7f08000c
int dimen activity_horizontal_margin 0x7f080011
int dimen activity_vertical_margin 0x7f080012
int dimen image_height 0x7f080014
int dimen image_padding 0x7f080013
int dimen image_width 0x7f080015
int drawable abc_ab_bottom_solid_dark_holo 0x7f020000
int drawable abc_ab_bottom_solid_light_holo 0x7f020001
int drawable abc_ab_bottom_transparent_dark_holo 0x7f020002
int drawable abc_ab_bottom_transparent_light_holo 0x7f020003
int drawable abc_ab_share_pack_holo_dark 0x7f020004
int drawable abc_ab_share_pack_holo_light 0x7f020005
int drawable abc_ab_solid_dark_holo 0x7f020006
int drawable abc_ab_solid_light_holo 0x7f020007
int drawable abc_ab_stacked_solid_dark_holo 0x7f020008
int drawable abc_ab_stacked_solid_light_holo 0x7f020009
int drawable abc_ab_stacked_transparent_dark_holo 0x7f02000a
int drawable abc_ab_stacked_transparent_light_holo 0x7f02000b
int drawable abc_ab_transparent_dark_holo 0x7f02000c
int drawable abc_ab_transparent_light_holo 0x7f02000d
int drawable abc_cab_background_bottom_holo_dark 0x7f02000e
int drawable abc_cab_background_bottom_holo_light 0x7f02000f
int drawable abc_cab_background_top_holo_dark 0x7f020010
int drawable abc_cab_background_top_holo_light 0x7f020011
int drawable abc_ic_ab_back_holo_dark 0x7f020012
int drawable abc_ic_ab_back_holo_light 0x7f020013
int drawable abc_ic_cab_done_holo_dark 0x7f020014
int drawable abc_ic_cab_done_holo_light 0x7f020015
int drawable abc_ic_clear 0x7f020016
int drawable abc_ic_clear_disabled 0x7f020017
int drawable abc_ic_clear_holo_light 0x7f020018
int drawable abc_ic_clear_normal 0x7f020019
int drawable abc_ic_clear_search_api_disabled_holo_light 0x7f02001a
int drawable abc_ic_clear_search_api_holo_light 0x7f02001b
int drawable abc_ic_commit_search_api_holo_dark 0x7f02001c
int drawable abc_ic_commit_search_api_holo_light 0x7f02001d
int drawable abc_ic_go 0x7f02001e
int drawable abc_ic_go_search_api_holo_light 0x7f02001f
int drawable abc_ic_menu_moreoverflow_normal_holo_dark 0x7f020020
int drawable abc_ic_menu_moreoverflow_normal_holo_light 0x7f020021
int drawable abc_ic_menu_share_holo_dark 0x7f020022
int drawable abc_ic_menu_share_holo_light 0x7f020023
int drawable abc_ic_search 0x7f020024
int drawable abc_ic_search_api_holo_light 0x7f020025
int drawable abc_ic_voice_search 0x7f020026
int drawable abc_ic_voice_search_api_holo_light 0x7f020027
int drawable abc_item_background_holo_dark 0x7f020028
int drawable abc_item_background_holo_light 0x7f020029
int drawable abc_list_divider_holo_dark 0x7f02002a
int drawable abc_list_divider_holo_light 0x7f02002b
int drawable abc_list_focused_holo 0x7f02002c
int drawable abc_list_longpressed_holo 0x7f02002d
int drawable abc_list_pressed_holo_dark 0x7f02002e
int drawable abc_list_pressed_holo_light 0x7f02002f
int drawable abc_list_selector_background_transition_holo_dark 0x7f020030
int drawable abc_list_selector_background_transition_holo_light 0x7f020031
int drawable abc_list_selector_disabled_holo_dark 0x7f020032
int drawable abc_list_selector_disabled_holo_light 0x7f020033
int drawable abc_list_selector_holo_dark 0x7f020034
int drawable abc_list_selector_holo_light 0x7f020035
int drawable abc_menu_dropdown_panel_holo_dark 0x7f020036
int drawable abc_menu_dropdown_panel_holo_light 0x7f020037
int drawable abc_menu_hardkey_panel_holo_dark 0x7f020038
int drawable abc_menu_hardkey_panel_holo_light 0x7f020039
int drawable abc_search_dropdown_dark 0x7f02003a
int drawable abc_search_dropdown_light 0x7f02003b
int drawable abc_spinner_ab_default_holo_dark 0x7f02003c
int drawable abc_spinner_ab_default_holo_light 0x7f02003d
int drawable abc_spinner_ab_disabled_holo_dark 0x7f02003e
int drawable abc_spinner_ab_disabled_holo_light 0x7f02003f
int drawable abc_spinner_ab_focused_holo_dark 0x7f020040
int drawable abc_spinner_ab_focused_holo_light 0x7f020041
int drawable abc_spinner_ab_holo_dark 0x7f020042
int drawable abc_spinner_ab_holo_light 0x7f020043
int drawable abc_spinner_ab_pressed_holo_dark 0x7f020044
int drawable abc_spinner_ab_pressed_holo_light 0x7f020045
int drawable abc_tab_indicator_ab_holo 0x7f020046
int drawable abc_tab_selected_focused_holo 0x7f020047
int drawable abc_tab_selected_holo 0x7f020048
int drawable abc_tab_selected_pressed_holo 0x7f020049
int drawable abc_tab_unselected_pressed_holo 0x7f02004a
int drawable abc_textfield_search_default_holo_dark 0x7f02004b
int drawable abc_textfield_search_default_holo_light 0x7f02004c
int drawable abc_textfield_search_right_default_holo_dark 0x7f02004d
int drawable abc_textfield_search_right_default_holo_light 0x7f02004e
int drawable abc_textfield_search_right_selected_holo_dark 0x7f02004f
int drawable abc_textfield_search_right_selected_holo_light 0x7f020050
int drawable abc_textfield_search_selected_holo_dark 0x7f020051
int drawable abc_textfield_search_selected_holo_light 0x7f020052
int drawable abc_textfield_searchview_holo_dark 0x7f020053
int drawable abc_textfield_searchview_holo_light 0x7f020054
int drawable abc_textfield_searchview_right_holo_dark 0x7f020055
int drawable abc_textfield_searchview_right_holo_light 0x7f020056
int drawable ic_launcher 0x7f020057
int id action_bar 0x7f05001c
int id action_bar_activity_content 0x7f050015
int id action_bar_container 0x7f05001b
int id action_bar_overlay_layout 0x7f05001f
int id action_bar_root 0x7f05001a
int id action_bar_subtitle 0x7f050023
int id action_bar_title 0x7f050022
int id action_context_bar 0x7f05001d
int id action_menu_divider 0x7f050016
int id action_menu_presenter 0x7f050017
int id action_mode_close_button 0x7f050024
int id action_settings 0x7f050043
int id activity_chooser_view_content 0x7f050025
int id always 0x7f05000b
int id beginning 0x7f050011
int id btn_exit_async 0x7f050040
int id checkbox 0x7f05002d
int id collapseActionView 0x7f05000d
int id container 0x7f05003c
int id default_activity_button 0x7f050028
int id dialog 0x7f05000e
int id disableHome 0x7f050008
int id dropdown 0x7f05000f
int id edit_query 0x7f050030
int id end 0x7f050013
int id expand_activities_button 0x7f050026
int id expanded_menu 0x7f05002c
int id gallery 0x7f05003d
int id grid_async 0x7f05003f
int id home 0x7f050014
int id homeAsUp 0x7f050005
int id icon 0x7f05002a
int id ifRoom 0x7f05000a
int id image 0x7f050027
int id imageView1 0x7f050041
int id layout_async 0x7f05003e
int id listMode 0x7f050001
int id list_item 0x7f050029
int id middle 0x7f050012
int id never 0x7f050009
int id none 0x7f050010
int id normal 0x7f050000
int id progress_circular 0x7f050018
int id progress_horizontal 0x7f050019
int id radio 0x7f05002f
int id search_badge 0x7f050032
int id search_bar 0x7f050031
int id search_button 0x7f050033
int id search_close_btn 0x7f050038
int id search_edit_frame 0x7f050034
int id search_go_btn 0x7f05003a
int id search_mag_icon 0x7f050035
int id search_plate 0x7f050036
int id search_src_text 0x7f050037
int id search_voice_btn 0x7f05003b
int id shortcut 0x7f05002e
int id showCustom 0x7f050007
int id showHome 0x7f050004
int id showTitle 0x7f050006
int id split_action_bar 0x7f05001e
int id submit_area 0x7f050039
int id tabMode 0x7f050002
int id textView1 0x7f050042
int id title 0x7f05002b
int id top_action_bar 0x7f050020
int id up 0x7f050021
int id useLogo 0x7f050003
int id withText 0x7f05000c
int integer abc_max_action_buttons 0x7f090000
int integer column_count 0x7f090001
int layout abc_action_bar_decor 0x7f030000
int layout abc_action_bar_decor_include 0x7f030001
int layout abc_action_bar_decor_overlay 0x7f030002
int layout abc_action_bar_home 0x7f030003
int layout abc_action_bar_tab 0x7f030004
int layout abc_action_bar_tabbar 0x7f030005
int layout abc_action_bar_title_item 0x7f030006
int layout abc_action_bar_view_list_nav_layout 0x7f030007
int layout abc_action_menu_item_layout 0x7f030008
int layout abc_action_menu_layout 0x7f030009
int layout abc_action_mode_bar 0x7f03000a
int layout abc_action_mode_close_item 0x7f03000b
int layout abc_activity_chooser_view 0x7f03000c
int layout abc_activity_chooser_view_include 0x7f03000d
int layout abc_activity_chooser_view_list_item 0x7f03000e
int layout abc_expanded_menu_layout 0x7f03000f
int layout abc_list_menu_item_checkbox 0x7f030010
int layout abc_list_menu_item_icon 0x7f030011
int layout abc_list_menu_item_layout 0x7f030012
int layout abc_list_menu_item_radio 0x7f030013
int layout abc_popup_menu_item_layout 0x7f030014
int layout abc_search_dropdown_item_icons_2line 0x7f030015
int layout abc_search_view 0x7f030016
int layout activity_gallery 0x7f030017
int layout activity_main 0x7f030018
int layout grid_schema 0x7f030019
int layout support_simple_spinner_dropdown_item 0x7f03001a
int menu gallery 0x7f0d0000
int menu main 0x7f0d0001
int string abc_action_bar_home_description 0x7f0a0001
int string abc_action_bar_up_description 0x7f0a0002
int string abc_action_menu_overflow_description 0x7f0a0003
int string abc_action_mode_done 0x7f0a0000
int string abc_activity_chooser_view_see_all 0x7f0a000a
int string abc_activitychooserview_choose_application 0x7f0a0009
int string abc_searchview_description_clear 0x7f0a0006
int string abc_searchview_description_query 0x7f0a0005
int string abc_searchview_description_search 0x7f0a0004
int string abc_searchview_description_submit 0x7f0a0007
int string abc_searchview_description_voice 0x7f0a0008
int string abc_shareactionprovider_share_with 0x7f0a000c
int string abc_shareactionprovider_share_with_application 0x7f0a000b
int string action_settings 0x7f0a000d
int string app_name 0x7f0a000e
int string commencement_main_thumb 0x7f0a0016
int string download_error 0x7f0a0012
int string exit_button_text 0x7f0a0011
int string football_main_thumb 0x7f0a0018
int string hello_world 0x7f0a001d
int string ifest_main_thumb 0x7f0a0015
int string label_commencement 0x7f0a001c
int string label_ifest 0x7f0a001b
int string label_sports 0x7f0a001a
int string label_uncc 0x7f0a0019
int string menu_settings 0x7f0a0010
int string title_activity_gallery 0x7f0a0013
int string title_activity_image_viewer 0x7f0a0014
int string title_activity_main 0x7f0a000f
int string uncc_main_thumb 0x7f0a0017
int style AppBaseTheme 0x7f0b0083
int style AppTheme 0x7f0b0084
int style TextAppearance_AppCompat_Base_CompactMenu_Dialog 0x7f0b0063
int style TextAppearance_AppCompat_Base_SearchResult 0x7f0b006d
int style TextAppearance_AppCompat_Base_SearchResult_Subtitle 0x7f0b006f
int style TextAppearance_AppCompat_Base_SearchResult_Title 0x7f0b006e
int style TextAppearance_AppCompat_Base_Widget_PopupMenu_Large 0x7f0b0069
int style TextAppearance_AppCompat_Base_Widget_PopupMenu_Small 0x7f0b006a
int style TextAppearance_AppCompat_Light_Base_SearchResult 0x7f0b0070
int style TextAppearance_AppCompat_Light_Base_SearchResult_Subtitle 0x7f0b0072
int style TextAppearance_AppCompat_Light_Base_SearchResult_Title 0x7f0b0071
int style TextAppearance_AppCompat_Light_Base_Widget_PopupMenu_Large 0x7f0b006b
int style TextAppearance_AppCompat_Light_Base_Widget_PopupMenu_Small 0x7f0b006c
int style TextAppearance_AppCompat_Light_SearchResult_Subtitle 0x7f0b0035
int style TextAppearance_AppCompat_Light_SearchResult_Title 0x7f0b0034
int style TextAppearance_AppCompat_Light_Widget_PopupMenu_Large 0x7f0b0030
int style TextAppearance_AppCompat_Light_Widget_PopupMenu_Small 0x7f0b0031
int style TextAppearance_AppCompat_SearchResult_Subtitle 0x7f0b0033
int style TextAppearance_AppCompat_SearchResult_Title 0x7f0b0032
int style TextAppearance_AppCompat_Widget_ActionBar_Menu 0x7f0b001a
int style TextAppearance_AppCompat_Widget_ActionBar_Subtitle 0x7f0b0006
int style TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse 0x7f0b0008
int style TextAppearance_AppCompat_Widget_ActionBar_Title 0x7f0b0005
int style TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse 0x7f0b0007
int style TextAppearance_AppCompat_Widget_ActionMode_Subtitle 0x7f0b001e
int style TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse 0x7f0b0020
int style TextAppearance_AppCompat_Widget_ActionMode_Title 0x7f0b001d
int style TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse 0x7f0b001f
int style TextAppearance_AppCompat_Widget_Base_ActionBar_Menu 0x7f0b0054
int style TextAppearance_AppCompat_Widget_Base_ActionBar_Subtitle 0x7f0b0056
int style TextAppearance_AppCompat_Widget_Base_ActionBar_Subtitle_Inverse 0x7f0b0058
int style TextAppearance_AppCompat_Widget_Base_ActionBar_Title 0x7f0b0055
int style TextAppearance_AppCompat_Widget_Base_ActionBar_Title_Inverse 0x7f0b0057
int style TextAppearance_AppCompat_Widget_Base_ActionMode_Subtitle 0x7f0b0051
int style TextAppearance_AppCompat_Widget_Base_ActionMode_Subtitle_Inverse 0x7f0b0053
int style TextAppearance_AppCompat_Widget_Base_ActionMode_Title 0x7f0b0050
int style TextAppearance_AppCompat_Widget_Base_ActionMode_Title_Inverse 0x7f0b0052
int style TextAppearance_AppCompat_Widget_Base_DropDownItem 0x7f0b0061
int style TextAppearance_AppCompat_Widget_DropDownItem 0x7f0b0021
int style TextAppearance_AppCompat_Widget_PopupMenu_Large 0x7f0b002e
int style TextAppearance_AppCompat_Widget_PopupMenu_Small 0x7f0b002f
int style TextAppearance_Widget_AppCompat_Base_ExpandedMenu_Item 0x7f0b0062
int style TextAppearance_Widget_AppCompat_ExpandedMenu_Item 0x7f0b0028
int style Theme_AppCompat 0x7f0b0077
int style Theme_AppCompat_Base_CompactMenu 0x7f0b0081
int style Theme_AppCompat_Base_CompactMenu_Dialog 0x7f0b0082
int style Theme_AppCompat_CompactMenu 0x7f0b007a
int style Theme_AppCompat_CompactMenu_Dialog 0x7f0b007b
int style Theme_AppCompat_Light 0x7f0b0078
int style Theme_AppCompat_Light_DarkActionBar 0x7f0b0079
int style Theme_Base 0x7f0b007c
int style Theme_Base_AppCompat 0x7f0b007e
int style Theme_Base_AppCompat_Light 0x7f0b007f
int style Theme_Base_AppCompat_Light_DarkActionBar 0x7f0b0080
int style Theme_Base_Light 0x7f0b007d
int style Widget_AppCompat_ActionBar 0x7f0b0000
int style Widget_AppCompat_ActionBar_Solid 0x7f0b0002
int style Widget_AppCompat_ActionBar_TabBar 0x7f0b0011
int style Widget_AppCompat_ActionBar_TabText 0x7f0b0017
int style Widget_AppCompat_ActionBar_TabView 0x7f0b0014
int style Widget_AppCompat_ActionButton 0x7f0b000b
int style Widget_AppCompat_ActionButton_CloseMode 0x7f0b000d
int style Widget_AppCompat_ActionButton_Overflow 0x7f0b000f
int style Widget_AppCompat_ActionMode 0x7f0b001b
int style Widget_AppCompat_ActivityChooserView 0x7f0b0038
int style Widget_AppCompat_AutoCompleteTextView 0x7f0b0036
int style Widget_AppCompat_Base_ActionBar 0x7f0b003a
int style Widget_AppCompat_Base_ActionBar_Solid 0x7f0b003c
int style Widget_AppCompat_Base_ActionBar_TabBar 0x7f0b0045
int style Widget_AppCompat_Base_ActionBar_TabText 0x7f0b004b
int style Widget_AppCompat_Base_ActionBar_TabView 0x7f0b0048
int style Widget_AppCompat_Base_ActionButton 0x7f0b003f
int style Widget_AppCompat_Base_ActionButton_CloseMode 0x7f0b0041
int style Widget_AppCompat_Base_ActionButton_Overflow 0x7f0b0043
int style Widget_AppCompat_Base_ActionMode 0x7f0b004e
int style Widget_AppCompat_Base_ActivityChooserView 0x7f0b0075
int style Widget_AppCompat_Base_AutoCompleteTextView 0x7f0b0073
int style Widget_AppCompat_Base_DropDownItem_Spinner 0x7f0b005d
int style Widget_AppCompat_Base_ListPopupWindow 0x7f0b0065
int style Widget_AppCompat_Base_ListView_DropDown 0x7f0b005f
int style Widget_AppCompat_Base_ListView_Menu 0x7f0b0064
int style Widget_AppCompat_Base_PopupMenu 0x7f0b0067
int style Widget_AppCompat_Base_ProgressBar 0x7f0b005a
int style Widget_AppCompat_Base_ProgressBar_Horizontal 0x7f0b0059
int style Widget_AppCompat_Base_Spinner 0x7f0b005b
int style Widget_AppCompat_DropDownItem_Spinner 0x7f0b0024
int style Widget_AppCompat_Light_ActionBar 0x7f0b0001
int style Widget_AppCompat_Light_ActionBar_Solid 0x7f0b0003
int style Widget_AppCompat_Light_ActionBar_Solid_Inverse 0x7f0b0004
int style Widget_AppCompat_Light_ActionBar_TabBar 0x7f0b0012
int style Widget_AppCompat_Light_ActionBar_TabBar_Inverse 0x7f0b0013
int style Widget_AppCompat_Light_ActionBar_TabText 0x7f0b0018
int style Widget_AppCompat_Light_ActionBar_TabText_Inverse 0x7f0b0019
int style Widget_AppCompat_Light_ActionBar_TabView 0x7f0b0015
int style Widget_AppCompat_Light_ActionBar_TabView_Inverse 0x7f0b0016
int style Widget_AppCompat_Light_ActionButton 0x7f0b000c
int style Widget_AppCompat_Light_ActionButton_CloseMode 0x7f0b000e
int style Widget_AppCompat_Light_ActionButton_Overflow 0x7f0b0010
int style Widget_AppCompat_Light_ActionMode_Inverse 0x7f0b001c
int style Widget_AppCompat_Light_ActivityChooserView 0x7f0b0039
int style Widget_AppCompat_Light_AutoCompleteTextView 0x7f0b0037
int style Widget_AppCompat_Light_Base_ActionBar 0x7f0b003b
int style Widget_AppCompat_Light_Base_ActionBar_Solid 0x7f0b003d
int style Widget_AppCompat_Light_Base_ActionBar_Solid_Inverse 0x7f0b003e
int style Widget_AppCompat_Light_Base_ActionBar_TabBar 0x7f0b0046
int style Widget_AppCompat_Light_Base_ActionBar_TabBar_Inverse 0x7f0b0047
int style Widget_AppCompat_Light_Base_ActionBar_TabText 0x7f0b004c
int style Widget_AppCompat_Light_Base_ActionBar_TabText_Inverse 0x7f0b004d
int style Widget_AppCompat_Light_Base_ActionBar_TabView 0x7f0b0049
int style Widget_AppCompat_Light_Base_ActionBar_TabView_Inverse 0x7f0b004a
int style Widget_AppCompat_Light_Base_ActionButton 0x7f0b0040
int style Widget_AppCompat_Light_Base_ActionButton_CloseMode 0x7f0b0042
int style Widget_AppCompat_Light_Base_ActionButton_Overflow 0x7f0b0044
int style Widget_AppCompat_Light_Base_ActionMode_Inverse 0x7f0b004f
int style Widget_AppCompat_Light_Base_ActivityChooserView 0x7f0b0076
int style Widget_AppCompat_Light_Base_AutoCompleteTextView 0x7f0b0074
int style Widget_AppCompat_Light_Base_DropDownItem_Spinner 0x7f0b005e
int style Widget_AppCompat_Light_Base_ListPopupWindow 0x7f0b0066
int style Widget_AppCompat_Light_Base_ListView_DropDown 0x7f0b0060
int style Widget_AppCompat_Light_Base_PopupMenu 0x7f0b0068
int style Widget_AppCompat_Light_Base_Spinner 0x7f0b005c
int style Widget_AppCompat_Light_DropDownItem_Spinner 0x7f0b0025
int style Widget_AppCompat_Light_ListPopupWindow 0x7f0b002a
int style Widget_AppCompat_Light_ListView_DropDown 0x7f0b0027
int style Widget_AppCompat_Light_PopupMenu 0x7f0b002c
int style Widget_AppCompat_Light_Spinner_DropDown_ActionBar 0x7f0b0023
int style Widget_AppCompat_ListPopupWindow 0x7f0b0029
int style Widget_AppCompat_ListView_DropDown 0x7f0b0026
int style Widget_AppCompat_ListView_Menu 0x7f0b002d
int style Widget_AppCompat_PopupMenu 0x7f0b002b
int style Widget_AppCompat_ProgressBar 0x7f0b000a
int style Widget_AppCompat_ProgressBar_Horizontal 0x7f0b0009
int style Widget_AppCompat_Spinner_DropDown_ActionBar 0x7f0b0022
int[] styleable ActionBar { 0x7f010021, 0x7f010022, 0x7f010023, 0x7f010024, 0x7f010025, 0x7f010026, 0x7f010027, 0x7f010028, 0x7f010029, 0x7f01002a, 0x7f01002b, 0x7f01002c, 0x7f01002d, 0x7f01002e, 0x7f01002f, 0x7f010030, 0x7f010031, 0x7f010032, 0x7f010033 }
int styleable ActionBar_background 10
int styleable ActionBar_backgroundSplit 12
int styleable ActionBar_backgroundStacked 11
int styleable ActionBar_customNavigationLayout 13
int styleable ActionBar_displayOptions 3
int styleable ActionBar_divider 9
int styleable ActionBar_height 1
int styleable ActionBar_homeLayout 14
int styleable ActionBar_icon 7
int styleable ActionBar_indeterminateProgressStyle 16
int styleable ActionBar_itemPadding 18
int styleable ActionBar_logo 8
int styleable ActionBar_navigationMode 2
int styleable ActionBar_progressBarPadding 17
int styleable ActionBar_progressBarStyle 15
int styleable ActionBar_subtitle 4
int styleable ActionBar_subtitleTextStyle 6
int styleable ActionBar_title 0
int styleable ActionBar_titleTextStyle 5
int[] styleable ActionBarLayout { 0x010100b3 }
int styleable ActionBarLayout_android_layout_gravity 0
int[] styleable ActionBarWindow { 0x7f010000, 0x7f010001, 0x7f010002 }
int styleable ActionBarWindow_windowActionBar 0
int styleable ActionBarWindow_windowActionBarOverlay 1
int styleable ActionBarWindow_windowSplitActionBar 2
int[] styleable ActionMenuItemView { 0x0101013f }
int styleable ActionMenuItemView_android_minWidth 0
int[] styleable ActionMenuView { }
int[] styleable ActionMode { 0x7f010022, 0x7f010026, 0x7f010027, 0x7f01002b, 0x7f01002d }
int styleable ActionMode_background 3
int styleable ActionMode_backgroundSplit 4
int styleable ActionMode_height 0
int styleable ActionMode_subtitleTextStyle 2
int styleable ActionMode_titleTextStyle 1
int[] styleable ActivityChooserView { 0x7f010066, 0x7f010067 }
int styleable ActivityChooserView_expandActivityOverflowButtonDrawable 1
int styleable ActivityChooserView_initialActivityCount 0
int[] styleable CompatTextView { 0x7f010069 }
int styleable CompatTextView_textAllCaps 0
int[] styleable LinearLayoutICS { 0x7f01002a, 0x7f010051, 0x7f010052 }
int styleable LinearLayoutICS_divider 0
int styleable LinearLayoutICS_dividerPadding 2
int styleable LinearLayoutICS_showDividers 1
int[] styleable MenuGroup { 0x0101000e, 0x010100d0, 0x01010194, 0x010101de, 0x010101df, 0x010101e0 }
int styleable MenuGroup_android_checkableBehavior 5
int styleable MenuGroup_android_enabled 0
int styleable MenuGroup_android_id 1
int styleable MenuGroup_android_menuCategory 3
int styleable MenuGroup_android_orderInCategory 4
int styleable MenuGroup_android_visible 2
int[] styleable MenuItem { 0x01010002, 0x0101000e, 0x010100d0, 0x01010106, 0x01010194, 0x010101de, 0x010101df, 0x010101e1, 0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5, 0x0101026f, 0x7f010049, 0x7f01004a, 0x7f01004b, 0x7f01004c }
int styleable MenuItem_actionLayout 14
int styleable MenuItem_actionProviderClass 16
int styleable MenuItem_actionViewClass 15
int styleable MenuItem_android_alphabeticShortcut 9
int styleable MenuItem_android_checkable 11
int styleable MenuItem_android_checked 3
int styleable MenuItem_android_enabled 1
int styleable MenuItem_android_icon 0
int styleable MenuItem_android_id 2
int styleable MenuItem_android_menuCategory 5
int styleable MenuItem_android_numericShortcut 10
int styleable MenuItem_android_onClick 12
int styleable MenuItem_android_orderInCategory 6
int styleable MenuItem_android_title 7
int styleable MenuItem_android_titleCondensed 8
int styleable MenuItem_android_visible 4
int styleable MenuItem_showAsAction 13
int[] styleable MenuView { 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e, 0x0101012f, 0x01010130, 0x01010131, 0x01010435 }
int styleable MenuView_android_headerBackground 4
int styleable MenuView_android_horizontalDivider 2
int styleable MenuView_android_itemBackground 5
int styleable MenuView_android_itemIconDisabledAlpha 6
int styleable MenuView_android_itemTextAppearance 1
int styleable MenuView_android_preserveIconSpacing 7
int styleable MenuView_android_verticalDivider 3
int styleable MenuView_android_windowAnimationStyle 0
int[] styleable SearchView { 0x0101011f, 0x01010220, 0x01010264, 0x7f010056, 0x7f010057 }
int styleable SearchView_android_imeOptions 2
int styleable SearchView_android_inputType 1
int styleable SearchView_android_maxWidth 0
int styleable SearchView_iconifiedByDefault 3
int styleable SearchView_queryHint 4
int[] styleable Spinner { 0x010100af, 0x01010175, 0x01010176, 0x01010262, 0x010102ac, 0x010102ad, 0x7f01004d, 0x7f01004e, 0x7f01004f, 0x7f010050 }
int styleable Spinner_android_dropDownHorizontalOffset 4
int styleable Spinner_android_dropDownSelector 1
int styleable Spinner_android_dropDownVerticalOffset 5
int styleable Spinner_android_dropDownWidth 3
int styleable Spinner_android_gravity 0
int styleable Spinner_android_popupBackground 2
int styleable Spinner_disableChildrenWhenDisabled 9
int styleable Spinner_popupPromptView 8
int styleable Spinner_prompt 6
int styleable Spinner_spinnerMode 7
int[] styleable Theme { 0x7f010043, 0x7f010044, 0x7f010045, 0x7f010046, 0x7f010047, 0x7f010048 }
int styleable Theme_actionDropDownStyle 0
int styleable Theme_dropdownListPreferredItemHeight 1
int styleable Theme_listChoiceBackgroundIndicator 5
int styleable Theme_panelMenuListTheme 4
int styleable Theme_panelMenuListWidth 3
int styleable Theme_popupMenuStyle 2
int[] styleable View { 0x010100da, 0x7f010034, 0x7f010035 }
int styleable View_android_focusable 0
int styleable View_paddingEnd 2
int styleable View_paddingStart 1

BIN
HW4/bin/classes.dex Normal file

Binary file not shown.

3
HW4/bin/jarlist.cache Normal file
View File

@ -0,0 +1,3 @@
# cache for current jar dependency. DO NOT EDIT.
# format is <lastModified> <length> <SHA-1> <path>
# Encoding is UTF-8

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
HW4/bin/resources.ap_ Normal file

Binary file not shown.

View File

@ -12,3 +12,4 @@
# Project target.
target=android-19
android.library.reference.1=../../../workspace/appcompat_v7_2

View 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
View 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>

View 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>

View File

@ -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>

View File

@ -0,0 +1,53 @@
package com.example.hw4;
/*
* Bradlee Speice, Brandon Rodenmayer
* ITIS 4180
* Homework 4
* GalleryActivity.java
*/
import android.app.Activity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.GridView;
import android.widget.Toast;
public class GalleryActivity extends Activity
{
GridView gallery;
int thumbsId;
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_gallery);
thumbsId = getIntent().getExtras().getInt("thumbsId");
Toast.makeText(getApplicationContext(), thumbsId, Toast.LENGTH_LONG).show();
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.gallery, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}

View File

@ -3,8 +3,8 @@ package com.example.hw4;
/*
* Bradlee Speice, Brandon Rodenmayer
* ITIS 4180
* In Class 3
* PhotoActivity.java
* Homework 4
* MainActivity.java
*/
import java.net.URL;
@ -15,12 +15,15 @@ import android.os.Bundle;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.BaseAdapter;
import android.widget.Button;
import android.widget.GridView;
@ -33,19 +36,23 @@ public class MainActivity extends Activity {
ProgressDialog progress;
LinearLayout root;
GridView photoGrid;
int[] imageUrlIds = {R.string.uncc_main_image, R.string.football_main_image,
R.string.ifest_main_image, R.string.commencement_main_image
};
int[] imageNames = {R.string.uncc, R.string.sports, R.string.ifest, R.string.commencement};
int[] imageUrlIds = {R.string.uncc_main_thumb, R.string.football_main_thumb,
R.string.ifest_main_thumb, R.string.commencement_main_thumb
};
int[] imageNames = {R.string.label_uncc, R.string.label_sports, R.string.label_ifest, R.string.label_commencement};
int[] thumbNames = {R.array.uncc_thumbs, R.array.football_thumbs, R.array.ifest_thumbs, R.array.commencement_thumbs};
ArrayList<Bitmap> bitmapList = new ArrayList<Bitmap>();
ArrayList<String> bitmapNames = new ArrayList<String>();
int downloadProgress;
Intent galleryIntent;
ImageAdapter imageAdapter;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
galleryIntent = new Intent(this, GalleryActivity.class);
root = (LinearLayout)findViewById(R.id.layout_async);
photoGrid = (GridView)findViewById(R.id.grid_async);
downloadProgress = 0;
@ -109,7 +116,20 @@ public class MainActivity extends Activity {
{
progress.dismiss();
//all images are loaded, so set them in the grid
photoGrid.setAdapter(new ImageAdapter(photoGrid.getContext()));
imageAdapter = new ImageAdapter(photoGrid.getContext());
photoGrid.setAdapter(imageAdapter);
photoGrid.setOnItemClickListener(new OnItemClickListener()
{
@Override
public void onItemClick(AdapterView<?> parent, View view,
int position, long id)
{
//Send intent with R.array.label
galleryIntent.putExtra("thumbsId", (int)(imageAdapter.getItem(position)));
startActivity(galleryIntent);
}
});
}
}
}
@ -130,9 +150,9 @@ public class MainActivity extends Activity {
}
@Override
public Object getItem(int position)//no purpose. only to fill the requirement of needing the method.
public Object getItem(int position)
{
return position;
return thumbNames[position];
}
@Override