Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- SyncImageSelectionFragment: changed type of photosGrid to
StickyGridHeadersGridView
- SyncImageSelectionFragment: replaced setNumbColumn with reseting of
item height of adapter in the onDetach method
- SyncImageSelectionFragment: added dummy adapter for photos grid to the
on init method to avoid errors of StickyGridHeaders
- SyncImageSelectionFragment: replaced initiated check in the view tree
observer in the init method with the item height check. Removed
setNumbColumns call
- SyncImageSelectionFragment: changed condition for the refresh call in
the init method (grid adapter is not null anymore, it is either set or
is dummy)
- SyncImageSelectionFragment.ImageData: added additional field folder
and its handling to the constructor and parcelable implementation
- SyncImageSelectionFragment.ImageData: added new method
getFolderFromPath
- SyncImageSelectionFragment.InitTask: replaced setAdapter(null) with
setting of dummy adapter to photosGrid such as StickyGridHeaders doesn't
support null adapter on the onPreExecute method
- SyncImageSelectionFragment.DummyImageAdapter: added
- SyncImageSelectionFragment.CustomImageAdapter: now it implements
StickyGridHeadersSimpleAdapter
- SyncImageSelectionFragment.CustomImageAdapter: added viewholder
optimization to the getViewAdditional method
- SyncImageSelectionFragment.CustomImageAdapter: added new methods
implementation: getHeaderId, getHeaderView
- SyncImageSelectionFragment.CustomImageAdapter.ViewHolder: added
- SyncImageSelectionFragment.CustomImageAdapter.HeaderViewHolder: added
- SyncImageSelectionFragment.ImageAdapter: removed fields mNumColumns,
mActionBarHeight. Added inflater field. Removed setNumbColumns and
getNumColumns methods
- SyncImageSelectionFragment.ImageAdapter: removed top row handling from
the getView method
- SyncImageSelectionFragment.CustomImageWorkerAdapter: updated sorting
in the sort method to be by folder first and then by processed/not
processed
- /res/layout/fragment_sync_select_photos.xml: replaced GridView with
StickyGridHeadersGridView
- /res/layout/sync_category_separator.xml: added
- /project.properties: removed PhotoView library (now it is included as
source folder) and added StickyGridHeaders library
- /submodules/StickyGridHeaders: added
- /.classpath: added photoview src folder and adt 22 library export
record
- /.project: added new linked resource and variable
  • Loading branch information
httpdispatch committed Jul 12, 2013
1 parent d247b8d commit 6443449
Show file tree
Hide file tree
Showing 7 changed files with 199 additions and 110 deletions.
2 changes: 2 additions & 0 deletions app/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="photoview"/>
<classpathentry kind="src" path="gen"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
13 changes: 13 additions & 0 deletions app/.project
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,17 @@
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<linkedResources>
<link>
<name>photoview</name>
<type>2</type>
<locationURI>SUBMODULES/PhotoView/library/src</locationURI>
</link>
</linkedResources>
<variableList>
<variable>
<name>SUBMODULES</name>
<value>$%7BPARENT-1-PROJECT_LOC%7D/submodules</value>
</variable>
</variableList>
</projectDescription>
14 changes: 7 additions & 7 deletions app/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

# Project target.
target=android-17
android.library.reference.1=../submodules/PhotoView/library
android.library.reference.2=../submodules/facebook-android-sdk/facebook
android.library.reference.3=../submodules/Android-Feather
android.library.reference.4=../submodules/HoloEverywhere/library
android.library.reference.5=../submodules/HoloEverywhere/addons/preferences
android.library.reference.6=../submodules/HoloEverywhere/addons/slider
android.library.reference.7=../submodules/google-play-services_lib
android.library.reference.1=../submodules/facebook-android-sdk/facebook
android.library.reference.2=../submodules/Android-Feather
android.library.reference.3=../submodules/HoloEverywhere/library
android.library.reference.4=../submodules/HoloEverywhere/addons/preferences
android.library.reference.5=../submodules/HoloEverywhere/addons/slider
android.library.reference.6=../submodules/google-play-services_lib
android.library.reference.7=../submodules/StickyGridHeaders/Library
2 changes: 1 addition & 1 deletion app/res/layout/fragment_sync_select_photos.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
android:text="@string/sync_next_button" />
</LinearLayout>

<GridView
<com.tonicartos.widget.stickygridheaders.StickyGridHeadersGridView
android:id="@+id/grid_photos"
style="@style/PhotoGridLayout"
android:layout_width="match_parent"
Expand Down
15 changes: 15 additions & 0 deletions app/res/layout/sync_category_separator.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?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="wrap_content"
android:orientation="vertical" >

<TextView
android:id="@android:id/text1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="left"
android:padding="5dp"
android:textAppearance="?android:attr/textAppearanceMedium" />

</LinearLayout>
Loading

0 comments on commit 6443449

Please sign in to comment.