├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── drawable │ │ │ │ ├── sign.png │ │ │ │ ├── borrow1.jpeg │ │ │ │ ├── society.jpg │ │ │ │ ├── chat_image.png │ │ │ │ ├── ic_logout.png │ │ │ │ ├── meet_people.gif │ │ │ │ ├── nav_header_bg.png │ │ │ │ ├── profile_header.jpg │ │ │ │ ├── circle.xml │ │ │ │ ├── chat_date_divider_bg.xml │ │ │ │ ├── their_message.xml │ │ │ │ ├── bg_edittext.xml │ │ │ │ ├── my_message.xml │ │ │ │ ├── ic_send.xml │ │ │ │ ├── ic_home.xml │ │ │ │ ├── ic_delete_white.xml │ │ │ │ ├── ic_verified.xml │ │ │ │ ├── launch_screen.xml │ │ │ │ ├── ic_chat_white.xml │ │ │ │ ├── ic_save.xml │ │ │ │ ├── ic_feedback.xml │ │ │ │ ├── ic_error.xml │ │ │ │ ├── ic_chat.xml │ │ │ │ ├── ic_mode_edit.xml │ │ │ │ ├── bg_edittext_normal.xml │ │ │ │ ├── bg_edittext_focused.xml │ │ │ │ ├── ic_location_city_black_24dp.xml │ │ │ │ ├── ic_delete_forever.xml │ │ │ │ ├── ic_account_circle_black_24dp.xml │ │ │ │ ├── ic_my_location.xml │ │ │ │ ├── ic_share.xml │ │ │ │ └── ic_face.xml │ │ │ ├── font │ │ │ │ └── font_montserrat.ttf │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── dimens.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── styles.xml │ │ │ │ └── strings.xml │ │ │ ├── layout │ │ │ │ ├── activity_maps.xml │ │ │ │ ├── activity_peer_to_peer_chat.xml │ │ │ │ ├── activity_pick_location.xml │ │ │ │ ├── activity_contact_list.xml │ │ │ │ ├── activity_splash.xml │ │ │ │ ├── activity_chat.xml │ │ │ │ ├── chat_date_divider_layout.xml │ │ │ │ ├── chat_list_item.xml │ │ │ │ ├── my_message_layout.xml │ │ │ │ ├── nav_header.xml │ │ │ │ ├── recent_chat_list_user.xml │ │ │ │ ├── fragment_recent_chats.xml │ │ │ │ ├── fragment_dashboard.xml │ │ │ │ ├── activity_address.xml │ │ │ │ ├── fragment_post_dashboard.xml │ │ │ │ ├── their_message_layout.xml │ │ │ │ ├── fragment_group_chat.xml │ │ │ │ ├── activity_main.xml │ │ │ │ ├── fragment_pending_requests.xml │ │ │ │ ├── shared_item_layout.xml │ │ │ │ ├── activity_edit_profile.xml │ │ │ │ ├── your_post_query_item.xml │ │ │ │ ├── pending_post_item.xml │ │ │ │ ├── post_item_layout.xml │ │ │ │ ├── activity_post.xml │ │ │ │ ├── pending_post_query_item.xml │ │ │ │ └── show_profile.xml │ │ │ └── menu │ │ │ │ ├── post_menu.xml │ │ │ │ ├── edit_profile_menu.xml │ │ │ │ └── drawer_menu.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── zero │ │ │ │ └── shareby │ │ │ │ ├── Utils │ │ │ │ └── DialogBuilder.java │ │ │ │ ├── activities │ │ │ │ ├── SplashActivity.java │ │ │ │ ├── MyAppIntro.java │ │ │ │ ├── PickLocation.java │ │ │ │ ├── UserProfile.java │ │ │ │ ├── MainActivity.java │ │ │ │ └── PostActivity.java │ │ │ │ ├── adapters │ │ │ │ ├── ChatPagerAdapter.java │ │ │ │ ├── PagerAdapter.java │ │ │ │ ├── GroupContactsAdapter.java │ │ │ │ ├── RecentChatsAdapter.java │ │ │ │ ├── DashboardAdapter.java │ │ │ │ ├── ChatsAdapter.java │ │ │ │ └── PendingRequestsAdapter.java │ │ │ │ ├── models │ │ │ │ ├── SampleSlide.java │ │ │ │ ├── CreateGroup.java │ │ │ │ ├── UserDetails.java │ │ │ │ └── Post.java │ │ │ │ ├── chats │ │ │ │ ├── ChatActivity.java │ │ │ │ ├── Chat.java │ │ │ │ ├── ContactListActivity.java │ │ │ │ └── RecentChats.java │ │ │ │ ├── fcm │ │ │ │ └── FirebaseMessaging.java │ │ │ │ └── utils │ │ │ │ └── Utilities.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── zero │ │ │ └── shareby │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── zero │ │ └── shareby │ │ └── ExampleInstrumentedTest.java ├── release │ └── output.json ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── .idea ├── caches │ ├── gradle_models.ser │ └── build_file_checksums.ser ├── vcs.xml ├── runConfigurations.xml ├── gradle.xml ├── codeStyles │ └── Project.xml ├── assetWizardSettings.xml └── misc.xml ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── scrnshots ├── Screenshot_20190330-211559.png ├── Screenshot_20190330-211703.png ├── Screenshot_20190330-211722.png ├── Screenshot_20190330-211921.png ├── Screenshot_20190330-211927.png ├── Screenshot_20190419-181817.png ├── Screenshot_20190424-112317.png └── Screenshot_20190424-112327.png ├── .gitignore ├── gradle.properties ├── gradlew.bat ├── README.md ├── firebase function └── index.js └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /.idea/caches/gradle_models.ser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/.idea/caches/gradle_models.ser -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/drawable/sign.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/app/src/main/res/drawable/sign.png -------------------------------------------------------------------------------- /.idea/caches/build_file_checksums.ser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/.idea/caches/build_file_checksums.ser -------------------------------------------------------------------------------- /app/src/main/res/drawable/borrow1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/app/src/main/res/drawable/borrow1.jpeg -------------------------------------------------------------------------------- /app/src/main/res/drawable/society.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/app/src/main/res/drawable/society.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/chat_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/app/src/main/res/drawable/chat_image.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_logout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/app/src/main/res/drawable/ic_logout.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/meet_people.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/app/src/main/res/drawable/meet_people.gif -------------------------------------------------------------------------------- /app/src/main/res/font/font_montserrat.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/app/src/main/res/font/font_montserrat.ttf -------------------------------------------------------------------------------- /scrnshots/Screenshot_20190330-211559.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/scrnshots/Screenshot_20190330-211559.png -------------------------------------------------------------------------------- /scrnshots/Screenshot_20190330-211703.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/scrnshots/Screenshot_20190330-211703.png -------------------------------------------------------------------------------- /scrnshots/Screenshot_20190330-211722.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/scrnshots/Screenshot_20190330-211722.png -------------------------------------------------------------------------------- /scrnshots/Screenshot_20190330-211921.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/scrnshots/Screenshot_20190330-211921.png -------------------------------------------------------------------------------- /scrnshots/Screenshot_20190330-211927.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/scrnshots/Screenshot_20190330-211927.png -------------------------------------------------------------------------------- /scrnshots/Screenshot_20190419-181817.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/scrnshots/Screenshot_20190419-181817.png -------------------------------------------------------------------------------- /scrnshots/Screenshot_20190424-112317.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/scrnshots/Screenshot_20190424-112317.png -------------------------------------------------------------------------------- /scrnshots/Screenshot_20190424-112327.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/scrnshots/Screenshot_20190424-112327.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/nav_header_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/app/src/main/res/drawable/nav_header_bg.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/profile_header.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/app/src/main/res/drawable/profile_header.jpg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/app/src/main/res/mipmap-anydpi-v26/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpatel0/ShareBy/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 5 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/circle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /app/release/output.json: -------------------------------------------------------------------------------- 1 | [{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}] -------------------------------------------------------------------------------- /app/src/main/res/drawable/chat_date_divider_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Thu Jan 17 23:12:38 IST 2019 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/their_message.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_maps.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/bg_edittext.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/my_message.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_send.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/libraries 5 | /.idea/modules.xml 6 | /.idea/workspace.xml 7 | .DS_Store 8 | /build 9 | /captures 10 | /app/release/output.json 11 | .externalNativeBuild 12 | *.apk 13 | /app/google-services.json 14 | /app/src/debug/res/values/google_maps_api.xml 15 | /app/src/release/res/values/google_maps_api.xml 16 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_home.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/menu/post_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_delete_white.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_peer_to_peer_chat.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_verified.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/launch_screen.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_chat_white.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_save.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_feedback.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_error.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/test/java/com/zero/shareby/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.zero.shareby; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_chat.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_mode_edit.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/bg_edittext_normal.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/bg_edittext_focused.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_pick_location.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_location_city_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/java/com/zero/shareby/Utils/DialogBuilder.java: -------------------------------------------------------------------------------- 1 | package com.zero.shareby.Utils; 2 | 3 | import android.content.Context; 4 | import android.support.v7.app.AlertDialog; 5 | 6 | public class DialogBuilder { 7 | public static AlertDialog.Builder getDialogBuilder(Context context, String title, String message){ 8 | AlertDialog.Builder builder = new android.support.v7.app.AlertDialog.Builder(context); 9 | builder.setTitle(title); 10 | builder.setMessage(message); 11 | return builder; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_delete_forever.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_contact_list.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_account_circle_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/menu/edit_profile_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 11 | 12 | 13 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_my_location.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_splash.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_chat.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 10 | 11 | 12 | 16 | 17 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_share.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | # IDE (e.g. Android Studio) users: 3 | # Gradle settings configured through the IDE *will override* 4 | # any settings specified in this file. 5 | # For more details on how to configure your build environment visit 6 | # http://www.gradle.org/docs/current/userguide/build_environment.html 7 | # Specifies the JVM arguments used for the daemon process. 8 | # The setting is particularly useful for tweaking memory settings. 9 | org.gradle.jvmargs=-Xmx1536m 10 | # When configured, Gradle will run in incubating parallel mode. 11 | # This option should only be used with decoupled projects. More details, visit 12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 13 | # org.gradle.parallel=true 14 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_face.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/layout/chat_date_divider_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 18 | 19 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 20 | 21 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/zero/shareby/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.zero.shareby; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumented test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.zero.shareby", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | #A9A9A9 7 | #004C00 8 | #4b49d3 9 | #64bdcf 10 | #FFFFFF 11 | #EEEAEA 12 | #48B3FF 13 | #0b0 14 | #FF0000 15 | #feefc3 16 | #FFFFFF 17 | 18 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | 18 | 19 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /app/src/main/res/layout/chat_list_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 15 | 16 | 27 | 28 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | ShareBy 3 | 4 | Open Navigation Drawer 5 | Close Navigation Drawer 6 | Sign Out 7 | Map 8 | lat 9 | lng 10 | old_lat 11 | old_lng 12 | country 13 | pin 14 | key1 15 | key2 16 | Cheers Everyone!!! 17 | 18 | 19 | Hello blank fragment 20 | Pick Location 21 | 22 | 23 | Select from here 24 | Ask a Question 25 | Request an Item 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /app/src/main/res/layout/my_message_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 21 | 30 | 31 | -------------------------------------------------------------------------------- /app/src/main/res/layout/nav_header.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 17 | 18 | 30 | 31 | -------------------------------------------------------------------------------- /app/src/main/java/com/zero/shareby/activities/SplashActivity.java: -------------------------------------------------------------------------------- 1 | package com.zero.shareby.activities; 2 | 3 | import android.content.Intent; 4 | import android.content.SharedPreferences; 5 | import android.os.Handler; 6 | import android.preference.PreferenceManager; 7 | import android.support.v7.app.AppCompatActivity; 8 | import android.os.Bundle; 9 | 10 | import com.zero.shareby.R; 11 | 12 | import static com.zero.shareby.activities.MyAppIntro.APP_INTRO_KEY; 13 | 14 | public class SplashActivity extends AppCompatActivity { 15 | 16 | @Override 17 | protected void onCreate(Bundle savedInstanceState) { 18 | super.onCreate(savedInstanceState); 19 | setContentView(R.layout.activity_splash); 20 | 21 | final SharedPreferences pref= PreferenceManager.getDefaultSharedPreferences(getApplicationContext()); 22 | 23 | 24 | 25 | new Handler().postDelayed(new Runnable() { 26 | @Override 27 | public void run() { 28 | if(!pref.getBoolean(APP_INTRO_KEY,true)){ 29 | startActivity(new Intent(SplashActivity.this,LoginActivity.class)); 30 | finish(); 31 | } 32 | startActivity(new Intent(SplashActivity.this,MyAppIntro.class)); 33 | finish(); 34 | } 35 | },400); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /app/src/main/res/layout/recent_chat_list_user.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 18 | 19 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /app/src/main/java/com/zero/shareby/adapters/ChatPagerAdapter.java: -------------------------------------------------------------------------------- 1 | package com.zero.shareby.adapters; 2 | 3 | import android.support.annotation.Nullable; 4 | import android.support.v4.app.Fragment; 5 | import android.support.v4.app.FragmentManager; 6 | import android.support.v4.app.FragmentStatePagerAdapter; 7 | 8 | import com.zero.shareby.chats.GroupChatFragment; 9 | import com.zero.shareby.chats.RecentChats; 10 | 11 | 12 | public class ChatPagerAdapter extends FragmentStatePagerAdapter { 13 | 14 | public ChatPagerAdapter(FragmentManager fm) { 15 | super(fm); 16 | } 17 | 18 | @Override 19 | public Fragment getItem(int position) { 20 | switch(position){ 21 | case 0: 22 | return new GroupChatFragment(); 23 | 24 | case 1: 25 | return new RecentChats(); 26 | 27 | default: 28 | return null; 29 | } 30 | } 31 | 32 | @Override 33 | public int getCount() { 34 | return 2; 35 | } 36 | 37 | @Nullable 38 | @Override 39 | public CharSequence getPageTitle(int position) { 40 | switch(position){ 41 | case 0: 42 | return "Group Chat"; 43 | 44 | case 1: 45 | return "Recent Chats"; 46 | 47 | default: 48 | return "default"; 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /app/src/main/res/menu/drawer_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 11 | 12 | 16 | 17 | 21 | 22 | 26 | 27 | 28 | 29 | 30 | 31 | 34 | 35 | 36 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /app/src/main/java/com/zero/shareby/models/SampleSlide.java: -------------------------------------------------------------------------------- 1 | package com.zero.shareby.models; 2 | 3 | import android.os.Bundle; 4 | import android.support.annotation.Nullable; 5 | import android.support.v4.app.Fragment; 6 | import android.view.LayoutInflater; 7 | import android.view.View; 8 | import android.view.ViewGroup; 9 | 10 | public class SampleSlide extends Fragment { 11 | 12 | private static final String ARG_LAYOUT_RES_ID = "layoutResId"; 13 | private int layoutResId; 14 | 15 | public static SampleSlide newInstance(int layoutResId) { 16 | SampleSlide sampleSlide = new SampleSlide(); 17 | 18 | Bundle args = new Bundle(); 19 | args.putInt(ARG_LAYOUT_RES_ID, layoutResId); 20 | sampleSlide.setArguments(args); 21 | 22 | return sampleSlide; 23 | } 24 | 25 | @Override 26 | public void onCreate(@Nullable Bundle savedInstanceState) { 27 | super.onCreate(savedInstanceState); 28 | 29 | if (getArguments() != null && getArguments().containsKey(ARG_LAYOUT_RES_ID)) { 30 | layoutResId = getArguments().getInt(ARG_LAYOUT_RES_ID); 31 | } 32 | } 33 | 34 | @Nullable 35 | @Override 36 | public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, 37 | @Nullable Bundle savedInstanceState) { 38 | return inflater.inflate(layoutResId, container, false); 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /app/src/main/java/com/zero/shareby/models/CreateGroup.java: -------------------------------------------------------------------------------- 1 | package com.zero.shareby.models; 2 | 3 | public class CreateGroup { 4 | private String grpName; 5 | private int memberCount; 6 | private double radius; 7 | private double latitude; 8 | private double longitude; 9 | 10 | public CreateGroup(String gName,int mCount,double rad,double lat,double lng){ 11 | grpName=gName; 12 | memberCount=mCount; 13 | radius=rad; 14 | latitude=lat; 15 | longitude=lng; 16 | } 17 | 18 | public String getGrpName() { 19 | return grpName; 20 | } 21 | 22 | public void setGrpName(String grpName) { 23 | this.grpName = grpName; 24 | } 25 | 26 | public int getMemberCount() { 27 | return memberCount; 28 | } 29 | 30 | public void setMemberCount(int memberCount) { 31 | this.memberCount = memberCount; 32 | } 33 | 34 | public double getRadius() { 35 | return radius; 36 | } 37 | 38 | public void setRadius(double radius) { 39 | this.radius = radius; 40 | } 41 | 42 | public double getLatitude() { 43 | return latitude; 44 | } 45 | 46 | public void setLatitude(double latitude) { 47 | this.latitude = latitude; 48 | } 49 | 50 | public double getLongitude() { 51 | return longitude; 52 | } 53 | 54 | public void setLongitude(double longitude) { 55 | this.longitude = longitude; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /app/src/main/java/com/zero/shareby/chats/ChatActivity.java: -------------------------------------------------------------------------------- 1 | package com.zero.shareby.chats; 2 | 3 | import android.support.design.widget.TabLayout; 4 | import android.support.v4.view.ViewPager; 5 | import android.support.v7.app.ActionBar; 6 | import android.support.v7.app.AppCompatActivity; 7 | import android.os.Bundle; 8 | 9 | import com.zero.shareby.R; 10 | import com.zero.shareby.adapters.ChatPagerAdapter; 11 | 12 | public class ChatActivity extends AppCompatActivity { 13 | private static final String TAG = "ChatsActivity"; 14 | 15 | ViewPager viewPager; 16 | ChatPagerAdapter pagerAdapter; 17 | 18 | @Override 19 | protected void onCreate(Bundle savedInstanceState) { 20 | super.onCreate(savedInstanceState); 21 | setContentView(R.layout.activity_chat); 22 | 23 | ActionBar actionBar=getSupportActionBar(); 24 | if (actionBar != null) { 25 | actionBar.setDisplayHomeAsUpEnabled(true); 26 | } 27 | 28 | viewPager= findViewById(R.id.chat_view_pager); 29 | pagerAdapter=new ChatPagerAdapter(getSupportFragmentManager()); 30 | viewPager.setAdapter(pagerAdapter); 31 | TabLayout tab=findViewById(R.id.chat_tab_layout); 32 | tab.setupWithViewPager(viewPager); 33 | } 34 | 35 | 36 | @Override 37 | protected void onResume() { 38 | super.onResume(); 39 | viewPager.setCurrentItem(1); 40 | 41 | } 42 | 43 | @Override 44 | protected void onPause() { 45 | super.onPause(); 46 | 47 | } 48 | 49 | 50 | 51 | } 52 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_recent_chats.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 13 | 14 | 18 | 19 | 20 | 21 | 34 | 35 | -------------------------------------------------------------------------------- /app/src/main/java/com/zero/shareby/adapters/PagerAdapter.java: -------------------------------------------------------------------------------- 1 | package com.zero.shareby.adapters; 2 | 3 | import android.content.Context; 4 | import android.support.annotation.Nullable; 5 | import android.support.v4.app.Fragment; 6 | import android.support.v4.app.FragmentManager; 7 | import android.support.v4.app.FragmentPagerAdapter; 8 | 9 | import com.zero.shareby.fragments.DashboardFragment; 10 | import com.zero.shareby.fragments.PendingRequestsFragment; 11 | import com.zero.shareby.fragments.PostDashboard; 12 | 13 | public class PagerAdapter extends FragmentPagerAdapter { 14 | 15 | private Context mContext; 16 | public PagerAdapter(Context context,FragmentManager fm) { 17 | super(fm); 18 | mContext=context; 19 | } 20 | 21 | @Override 22 | public Fragment getItem(int position) { 23 | switch (position){ 24 | case 0: 25 | return DashboardFragment.getInstance(); 26 | 27 | case 1: 28 | return PendingRequestsFragment.getInstance(); 29 | 30 | case 2: 31 | return PostDashboard.getInstance(); 32 | 33 | } 34 | return null; 35 | } 36 | 37 | @Override 38 | public int getCount() { 39 | return 3; 40 | } 41 | 42 | @Nullable 43 | @Override 44 | public CharSequence getPageTitle(int position) { 45 | switch (position){ 46 | case 0: 47 | return "Dashboard"; 48 | 49 | case 1: 50 | return "Requests"; 51 | 52 | case 2: 53 | return "Your Posts"; 54 | } 55 | return "Default"; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_dashboard.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | 11 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 31 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_address.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 14 | 15 |