diff --git a/SETUP.md b/SETUP.md index 777406f6627..44b02c4db96 100644 --- a/SETUP.md +++ b/SETUP.md @@ -91,6 +91,7 @@ The generated APK file is saved in android/build/outputs/apk as android-debug.ap - owncloud-android - android-support-appcompat-v7-exploded-aar - android-support-design-exploded-aar + - com-getbase-floatingactionbutton-1-10-0-exploded-aar - owncloud-android-workaround-accounts (optional) - ownCloud Android Library - ownCloud Sample Client (optional) @@ -104,6 +105,7 @@ The generated APK file is saved in android/build/outputs/apk as android-debug.ap - ownCloud Android Library - android-support-appcompat-v7-exploded-aar - android-support-design-exploded-aar + - com-getbase-floatingactionbutton-1-10-0-exploded-aar - owncloud-android * If any error on those projects persists, check the project properties. In the 'Android' section, API Level should be - ownCloud Android Library -> API level 19 diff --git a/THIRD_PARTY.txt b/THIRD_PARTY.txt index 6fd3e5b3d13..7b21bfc321d 100644 --- a/THIRD_PARTY.txt +++ b/THIRD_PARTY.txt @@ -59,4 +59,8 @@ The third party software included and used by this project is: modifications com.ortiz.touch.ExtendedViewPager and com.ortiz.touch.TouchImageView classes. See https://github.com/MikeOrtiz/TouchImageView - \ No newline at end of file + * floatingactionbutton 1.10.1. + Copyright (c) 2014 Jerzy Chalupski + Licensed under Apache License, Version 2.0. + placed at libs/com-getbase-floatingactionbutton-1-10-0-exploded-aar has been exploded by ownCloud Inc. + See https://github.com/futuresimple/android-floating-action-button \ No newline at end of file diff --git a/build.gradle b/build.gradle index 5caf111ef9e..3979ad1d844 100644 --- a/build.gradle +++ b/build.gradle @@ -25,6 +25,7 @@ dependencies { compile 'com.android.support:design:23.1.1' compile 'com.jakewharton:disklrucache:2.0.2' compile 'com.android.support:appcompat-v7:23.1.1' + compile 'com.getbase:floatingactionbutton:1.10.1' } android { diff --git a/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/.classpath b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/.classpath new file mode 100644 index 00000000000..7bc01d9a9c6 --- /dev/null +++ b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/.classpath @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/AndroidManifest.xml b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/AndroidManifest.xml new file mode 100644 index 00000000000..f29e9873c8c --- /dev/null +++ b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/AndroidManifest.xml @@ -0,0 +1,14 @@ + + + + + + + + \ No newline at end of file diff --git a/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/R.txt b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/R.txt new file mode 100644 index 00000000000..c6d56648817 --- /dev/null +++ b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/R.txt @@ -0,0 +1,55 @@ +int attr fab_addButtonColorNormal 0x7f010009 +int attr fab_addButtonColorPressed 0x7f010008 +int attr fab_addButtonPlusIconColor 0x7f01000b +int attr fab_addButtonSize 0x7f01000a +int attr fab_addButtonStrokeVisible 0x7f01000c +int attr fab_colorDisabled 0x7f010002 +int attr fab_colorNormal 0x7f010003 +int attr fab_colorPressed 0x7f010001 +int attr fab_expandDirection 0x7f01000f +int attr fab_icon 0x7f010004 +int attr fab_labelStyle 0x7f01000d +int attr fab_labelsPosition 0x7f01000e +int attr fab_plusIconColor 0x7f010000 +int attr fab_size 0x7f010005 +int attr fab_stroke_visible 0x7f010007 +int attr fab_title 0x7f010006 +int dimen fab_actions_spacing 0x7f030000 +int dimen fab_icon_size 0x7f030001 +int dimen fab_labels_margin 0x7f030002 +int dimen fab_plus_icon_size 0x7f030003 +int dimen fab_plus_icon_stroke 0x7f030004 +int dimen fab_shadow_offset 0x7f030005 +int dimen fab_shadow_radius 0x7f030006 +int dimen fab_size_mini 0x7f030007 +int dimen fab_size_normal 0x7f030008 +int dimen fab_stroke_width 0x7f030009 +int drawable fab_bg_mini 0x7f020000 +int drawable fab_bg_normal 0x7f020001 +int id down 0x7f040006 +int id fab_expand_menu_button 0x7f040000 +int id fab_label 0x7f040001 +int id left 0x7f040004 +int id mini 0x7f040002 +int id normal 0x7f040003 +int id right 0x7f040005 +int id up 0x7f040007 +int[] styleable AddFloatingActionButton { 0x7f010000 } +int styleable AddFloatingActionButton_fab_plusIconColor 0 +int[] styleable FloatingActionButton { 0x7f010001, 0x7f010002, 0x7f010003, 0x7f010004, 0x7f010005, 0x7f010006, 0x7f010007 } +int styleable FloatingActionButton_fab_colorDisabled 1 +int styleable FloatingActionButton_fab_colorNormal 2 +int styleable FloatingActionButton_fab_colorPressed 0 +int styleable FloatingActionButton_fab_icon 3 +int styleable FloatingActionButton_fab_size 4 +int styleable FloatingActionButton_fab_stroke_visible 6 +int styleable FloatingActionButton_fab_title 5 +int[] styleable FloatingActionsMenu { 0x7f010008, 0x7f010009, 0x7f01000a, 0x7f01000b, 0x7f01000c, 0x7f01000d, 0x7f01000e, 0x7f01000f } +int styleable FloatingActionsMenu_fab_addButtonColorNormal 1 +int styleable FloatingActionsMenu_fab_addButtonColorPressed 0 +int styleable FloatingActionsMenu_fab_addButtonPlusIconColor 3 +int styleable FloatingActionsMenu_fab_addButtonSize 2 +int styleable FloatingActionsMenu_fab_addButtonStrokeVisible 4 +int styleable FloatingActionsMenu_fab_expandDirection 7 +int styleable FloatingActionsMenu_fab_labelStyle 5 +int styleable FloatingActionsMenu_fab_labelsPosition 6 diff --git a/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/aapt/AndroidManifest.xml b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/aapt/AndroidManifest.xml new file mode 100644 index 00000000000..f29e9873c8c --- /dev/null +++ b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/aapt/AndroidManifest.xml @@ -0,0 +1,14 @@ + + + + + + + + \ No newline at end of file diff --git a/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/annotations.zip b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/annotations.zip new file mode 100644 index 00000000000..a46d2cee895 Binary files /dev/null and b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/annotations.zip differ diff --git a/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/build.xml b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/build.xml new file mode 100644 index 00000000000..4317fb0c5ec --- /dev/null +++ b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/build.xml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/jars/classes.jar b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/jars/classes.jar new file mode 100644 index 00000000000..723d01e0bc3 Binary files /dev/null and b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/jars/classes.jar differ diff --git a/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/libs/classes.jar b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/libs/classes.jar new file mode 100644 index 00000000000..723d01e0bc3 Binary files /dev/null and b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/libs/classes.jar differ diff --git a/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/proguard.txt b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/proguard.txt new file mode 100644 index 00000000000..b5429595076 --- /dev/null +++ b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/proguard.txt @@ -0,0 +1,5 @@ +# keep getters/setters in RotatingDrawable so that animations can still work. +-keepclassmembers class com.getbase.floatingactionbutton.FloatingActionsMenu$RotatingDrawable { + void set*(***); + *** get*(); +} diff --git a/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/project.properties b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/project.properties new file mode 100644 index 00000000000..362a0a3082a --- /dev/null +++ b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/project.properties @@ -0,0 +1,15 @@ +# This file is automatically generated by Android Tools. +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! +# +# This file must be checked in Version Control Systems. +# +# To customize properties used by the Ant build system edit +# "ant.properties", and override values to adapt the script to your +# project structure. +# +# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): +#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt + +# Project target. +target=android-22 +android.library=true diff --git a/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-hdpi-v4/fab_bg_mini.png b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-hdpi-v4/fab_bg_mini.png new file mode 100644 index 00000000000..4b48351c279 Binary files /dev/null and b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-hdpi-v4/fab_bg_mini.png differ diff --git a/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-hdpi-v4/fab_bg_normal.png b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-hdpi-v4/fab_bg_normal.png new file mode 100644 index 00000000000..4daec66d6b1 Binary files /dev/null and b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-hdpi-v4/fab_bg_normal.png differ diff --git a/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-mdpi-v4/fab_bg_mini.png b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-mdpi-v4/fab_bg_mini.png new file mode 100644 index 00000000000..218cf044c1d Binary files /dev/null and b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-mdpi-v4/fab_bg_mini.png differ diff --git a/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-mdpi-v4/fab_bg_normal.png b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-mdpi-v4/fab_bg_normal.png new file mode 100644 index 00000000000..c157df36889 Binary files /dev/null and b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-mdpi-v4/fab_bg_normal.png differ diff --git a/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-xhdpi-v4/fab_bg_mini.png b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-xhdpi-v4/fab_bg_mini.png new file mode 100644 index 00000000000..d56bfe820a3 Binary files /dev/null and b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-xhdpi-v4/fab_bg_mini.png differ diff --git a/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-xhdpi-v4/fab_bg_normal.png b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-xhdpi-v4/fab_bg_normal.png new file mode 100644 index 00000000000..41614b93d00 Binary files /dev/null and b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-xhdpi-v4/fab_bg_normal.png differ diff --git a/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-xxhdpi-v4/fab_bg_mini.png b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-xxhdpi-v4/fab_bg_mini.png new file mode 100644 index 00000000000..1cdd2b1de96 Binary files /dev/null and b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-xxhdpi-v4/fab_bg_mini.png differ diff --git a/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-xxhdpi-v4/fab_bg_normal.png b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-xxhdpi-v4/fab_bg_normal.png new file mode 100644 index 00000000000..14608fff505 Binary files /dev/null and b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-xxhdpi-v4/fab_bg_normal.png differ diff --git a/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-xxxhdpi-v4/fab_bg_mini.png b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-xxxhdpi-v4/fab_bg_mini.png new file mode 100644 index 00000000000..6fea6746d9d Binary files /dev/null and b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-xxxhdpi-v4/fab_bg_mini.png differ diff --git a/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-xxxhdpi-v4/fab_bg_normal.png b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-xxxhdpi-v4/fab_bg_normal.png new file mode 100644 index 00000000000..0e78ff6016e Binary files /dev/null and b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/drawable-xxxhdpi-v4/fab_bg_normal.png differ diff --git a/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/values/values.xml b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/values/values.xml new file mode 100644 index 00000000000..8139c61de3a --- /dev/null +++ b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/res/values/values.xml @@ -0,0 +1,22 @@ + + + + + + + + 16dp + 24dp + 8dp + 14dp + 2dp + 3dp + 9dp + 40dp + 56dp + 1dp + + + + + \ No newline at end of file diff --git a/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/src/.readme b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/src/.readme new file mode 100644 index 00000000000..4bcebad80c8 --- /dev/null +++ b/libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar/src/.readme @@ -0,0 +1,2 @@ +This hidden file is there to ensure there is an src folder. +Once we support binary library this will go away. \ No newline at end of file diff --git a/project.properties b/project.properties index db73d46da87..74e62649cfc 100644 --- a/project.properties +++ b/project.properties @@ -12,5 +12,6 @@ target=android-23 android.library.reference.1=owncloud-android-library android.library.reference.2=libs/android-support-appcompat-v7-exploded-aar android.library.reference.3=libs/android-support-design-exploded-aar +android.library.reference.4=libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar java.source=7 java.target=7 diff --git a/res/drawable-hdpi-v9/ic_action_download.png b/res/drawable-hdpi-v9/ic_action_download.png deleted file mode 100644 index 25476cd7f09..00000000000 Binary files a/res/drawable-hdpi-v9/ic_action_download.png and /dev/null differ diff --git a/res/drawable-hdpi-v9/ic_action_refresh.png b/res/drawable-hdpi-v9/ic_action_refresh.png deleted file mode 100644 index a7fdc0dfcb1..00000000000 Binary files a/res/drawable-hdpi-v9/ic_action_refresh.png and /dev/null differ diff --git a/res/drawable-hdpi-v9/ic_action_settings.png b/res/drawable-hdpi-v9/ic_action_settings.png deleted file mode 100644 index 86b54f4c711..00000000000 Binary files a/res/drawable-hdpi-v9/ic_action_settings.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_checkbox_blank_outline.png b/res/drawable-hdpi/ic_checkbox_blank_outline.png index 198568dea06..164dcb537a6 100644 Binary files a/res/drawable-hdpi/ic_checkbox_blank_outline.png and b/res/drawable-hdpi/ic_checkbox_blank_outline.png differ diff --git a/res/drawable-hdpi/ic_checkbox_marked.png b/res/drawable-hdpi/ic_checkbox_marked.png index 92d4109c504..330d7b950ba 100644 Binary files a/res/drawable-hdpi/ic_checkbox_marked.png and b/res/drawable-hdpi/ic_checkbox_marked.png differ diff --git a/res/drawable-hdpi/ic_import.png b/res/drawable-hdpi/ic_import.png new file mode 100644 index 00000000000..ad72837893f Binary files /dev/null and b/res/drawable-hdpi/ic_import.png differ diff --git a/res/drawable-mdpi-v9/ic_action_download.png b/res/drawable-mdpi-v9/ic_action_download.png deleted file mode 100644 index 2684c83ff19..00000000000 Binary files a/res/drawable-mdpi-v9/ic_action_download.png and /dev/null differ diff --git a/res/drawable-mdpi-v9/ic_action_refresh.png b/res/drawable-mdpi-v9/ic_action_refresh.png deleted file mode 100644 index bb9d855f776..00000000000 Binary files a/res/drawable-mdpi-v9/ic_action_refresh.png and /dev/null differ diff --git a/res/drawable-mdpi-v9/ic_action_settings.png b/res/drawable-mdpi-v9/ic_action_settings.png deleted file mode 100644 index 47ef3f44290..00000000000 Binary files a/res/drawable-mdpi-v9/ic_action_settings.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_checkbox_blank_outline.png b/res/drawable-mdpi/ic_checkbox_blank_outline.png new file mode 100644 index 00000000000..d4ca47c66a3 Binary files /dev/null and b/res/drawable-mdpi/ic_checkbox_blank_outline.png differ diff --git a/res/drawable-mdpi/ic_checkbox_marked.png b/res/drawable-mdpi/ic_checkbox_marked.png new file mode 100644 index 00000000000..99df27422e2 Binary files /dev/null and b/res/drawable-mdpi/ic_checkbox_marked.png differ diff --git a/res/drawable-mdpi/ic_import.png b/res/drawable-mdpi/ic_import.png new file mode 100644 index 00000000000..3bc69d1bffb Binary files /dev/null and b/res/drawable-mdpi/ic_import.png differ diff --git a/res/drawable-xhdpi/ic_import.png b/res/drawable-xhdpi/ic_import.png new file mode 100644 index 00000000000..bf2f72ea392 Binary files /dev/null and b/res/drawable-xhdpi/ic_import.png differ diff --git a/res/drawable-xxhdpi/ic_import.png b/res/drawable-xxhdpi/ic_import.png new file mode 100644 index 00000000000..a4412aac01f Binary files /dev/null and b/res/drawable-xxhdpi/ic_import.png differ diff --git a/res/drawable-xxhdpi/ic_sort_variant.png b/res/drawable-xxhdpi/ic_sort_variant.png new file mode 100644 index 00000000000..2918126d1c9 Binary files /dev/null and b/res/drawable-xxhdpi/ic_sort_variant.png differ diff --git a/res/drawable/fab_label_background.xml b/res/drawable/fab_label_background.xml new file mode 100644 index 00000000000..4460dab0ae4 --- /dev/null +++ b/res/drawable/fab_label_background.xml @@ -0,0 +1,11 @@ + + + + + + \ No newline at end of file diff --git a/res/layout-land/account_setup.xml b/res/layout-land/account_setup.xml index df21748a0f7..0c34f5f4821 100644 --- a/res/layout-land/account_setup.xml +++ b/res/layout-land/account_setup.xml @@ -110,7 +110,6 @@ android:padding="0dp" android:scaleType="fitCenter" android:src="@drawable/ic_action_refresh_grey" - android:onClick="onRefreshClick" android:visibility="gone" android:background="@android:color/transparent" android:contentDescription="@string/auth_refresh_button" diff --git a/res/layout/list_footer.xml b/res/layout/list_footer.xml index a5a0e264ca5..00ae10ad6ab 100644 --- a/res/layout/list_footer.xml +++ b/res/layout/list_footer.xml @@ -1,7 +1,7 @@ \ No newline at end of file diff --git a/res/layout/list_fragment.xml b/res/layout/list_fragment.xml index 7160b32ecdf..17c152323c6 100644 --- a/res/layout/list_fragment.xml +++ b/res/layout/list_fragment.xml @@ -17,17 +17,21 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . --> + + + android:layout_height="match_parent"> @@ -81,4 +85,52 @@ - \ No newline at end of file + + + + + + + + + + + \ No newline at end of file diff --git a/res/menu/main_menu.xml b/res/menu/main_menu.xml index e03960f19bc..097807a3618 100644 --- a/res/menu/main_menu.xml +++ b/res/menu/main_menu.xml @@ -20,18 +20,11 @@ - diff --git a/res/values/colors.xml b/res/values/colors.xml index 53ed724323c..45f20091e05 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -23,10 +23,14 @@ #35537A #00ddff - #989898 + @color/secondaryTextColor #000000 #FFFFFF - #303030 + #fafafa + #f1f1f1 + #808080 + #B2000000 + @color/black #000000 #eee #DDDDDD @@ -35,6 +39,9 @@ #757575 #D6D7D7 #00000000 + #a0a0a0 + #f8f8f8 + #55739a @color/owncloud_blue_accent diff --git a/res/values/styles.xml b/res/values/styles.xml index 5d4d64ba8b6..512e7f582d7 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -51,7 +51,9 @@ @color/primary - @@ -127,6 +130,11 @@ @style/Theme.ownCloud.Dialog.ButtonBar + +