├── .gitignore ├── README.md ├── app ├── .gitignore ├── app.iml ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── quintus │ │ └── labs │ │ └── datingapp │ │ └── ExampleInstrumentedTest.java │ ├── main │ ├── AndroidManifest.xml │ ├── assets │ │ └── font │ │ │ ├── AlexBrush-Regular.ttf │ │ │ ├── GreatVibes-Regular.ttf │ │ │ ├── Parisienne-Regular.ttf │ │ │ ├── Roboto-Black.ttf │ │ │ ├── Roboto-Bold.ttf │ │ │ ├── Roboto-Italic.ttf │ │ │ ├── Roboto-Light.ttf │ │ │ ├── Roboto-Medium.ttf │ │ │ ├── Roboto-Regular.ttf │ │ │ ├── roboto_bold.ttf │ │ │ ├── roboto_light.ttf │ │ │ ├── roboto_medium.ttf │ │ │ └── roboto_regular.ttf │ ├── java │ │ └── com │ │ │ └── quintus │ │ │ └── labs │ │ │ └── datingapp │ │ │ ├── Introduction │ │ │ └── IntroductionMain.java │ │ │ ├── Login │ │ │ ├── Login.java │ │ │ ├── RegisterAge.java │ │ │ ├── RegisterBasicInfo.java │ │ │ ├── RegisterGender.java │ │ │ ├── RegisterGenderPrefection.java │ │ │ └── RegisterHobby.java │ │ │ ├── Main │ │ │ ├── BtnDislikeActivity.java │ │ │ ├── BtnLikeActivity.java │ │ │ ├── Cards.java │ │ │ ├── MainActivity.java │ │ │ ├── NotificationHelper.java │ │ │ ├── PhotoAdapter.java │ │ │ └── ProfileCheckinMain.java │ │ │ ├── Matched │ │ │ ├── ActiveUserAdapter.java │ │ │ ├── MatchUserAdapter.java │ │ │ ├── Matched_Activity.java │ │ │ ├── ProfileAdapter.java │ │ │ ├── ProfileCheckinMatched.java │ │ │ └── Users.java │ │ │ ├── Profile │ │ │ ├── EditProfileActivity.java │ │ │ ├── Profile_Activity.java │ │ │ └── SettingsActivity.java │ │ │ ├── Utils │ │ │ ├── CalculateAge.java │ │ │ ├── GPS.java │ │ │ ├── PulsatorLayout.java │ │ │ ├── SquareImageView.java │ │ │ ├── StringManipulation.java │ │ │ ├── TopNavigationViewHelper.java │ │ │ ├── User.java │ │ │ └── UserSettings.java │ │ │ └── customfonts │ │ │ ├── Button_Roboto_Medium.java │ │ │ ├── EditText_Roboto_Bold.java │ │ │ ├── EditText_Roboto_Italic.java │ │ │ ├── EditText_Roboto_Light.java │ │ │ ├── EditText_Roboto_Meidum.java │ │ │ ├── EditText_Roboto_Regular.java │ │ │ ├── MyTextView_AlexBrush_Regular.java │ │ │ ├── MyTextView_GreatVibes_Regular.java │ │ │ ├── MyTextView_Parisienne_Regular.java │ │ │ ├── MyTextView_Roboto_Black.java │ │ │ ├── MyTextView_Roboto_Bold.java │ │ │ ├── MyTextView_Roboto_Italic.java │ │ │ ├── MyTextView_Roboto_Light.java │ │ │ ├── MyTextView_Roboto_Medium.java │ │ │ └── MyTextView_Roboto_Regular.java │ └── res │ │ ├── drawable-hdpi │ │ ├── custom_seekbar_progress.xml │ │ └── custom_switch.xml │ │ ├── drawable-mdpi │ │ ├── custom_circle.xml │ │ ├── ic_backarrow.png │ │ ├── ic_comment.png │ │ ├── ic_dislike.png │ │ ├── ic_edit.png │ │ ├── ic_info.png │ │ ├── ic_like1.png │ │ ├── ic_location.png │ │ ├── ic_search.png │ │ ├── ic_settings.png │ │ ├── ic_video.png │ │ └── profile_bg.png │ │ ├── drawable-v21 │ │ ├── ic_menu_camera.xml │ │ ├── ic_menu_gallery.xml │ │ ├── ic_menu_manage.xml │ │ ├── ic_menu_send.xml │ │ ├── ic_menu_share.xml │ │ └── ic_menu_slideshow.xml │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable │ │ ├── circle_background.xml │ │ ├── default_man.png │ │ ├── default_woman.png │ │ ├── dislike_border.xml │ │ ├── edit_text_focused_bg.xml │ │ ├── ic_add_circle_black_24dp.xml │ │ ├── ic_check_select.xml │ │ ├── ic_check_unselect.xml │ │ ├── ic_chevron_left_black_24dp.xml │ │ ├── ic_close_black_24dp.xml │ │ ├── ic_down_arrow.xml │ │ ├── ic_launcher_background.xml │ │ ├── ic_lens_black_24dp.xml │ │ ├── ic_main.xml │ │ ├── ic_matched.xml │ │ ├── ic_profile.xml │ │ ├── ic_switch_select.xml │ │ ├── ic_switch_unselect.xml │ │ ├── img1.png │ │ ├── img2.png │ │ ├── img3.png │ │ ├── img4.png │ │ ├── like_border.xml │ │ ├── loginlogo.png │ │ ├── logo.png │ │ ├── monkey.png │ │ ├── notification_app_icon.png │ │ ├── round_button_with_border.xml │ │ ├── rounded_corner_layout.xml │ │ ├── seek_bar_thumb.xml │ │ ├── side_nav_bar.xml │ │ ├── white_grey_border_bottom.xml │ │ └── white_rounded_button.xml │ │ ├── layout │ │ ├── active_user_item.xml │ │ ├── activity_btn_dislike.xml │ │ ├── activity_btn_like.xml │ │ ├── activity_edit_profile.xml │ │ ├── activity_introduction_main.xml │ │ ├── activity_login.xml │ │ ├── activity_main.xml │ │ ├── activity_matched.xml │ │ ├── activity_profile.xml │ │ ├── activity_profile_checkin_main.xml │ │ ├── activity_profile_checkin_matched.xml │ │ ├── activity_register_age.xml │ │ ├── activity_register_gender.xml │ │ ├── activity_register_gender_prefection.xml │ │ ├── activity_register_hobby.xml │ │ ├── activity_registerbasic_info.xml │ │ ├── activity_settings.xml │ │ ├── app_bar_main.xml │ │ ├── content_main.xml │ │ ├── item.xml │ │ ├── layout_top_navigation_back.xml │ │ ├── layout_top_navigation_view.xml │ │ ├── matched_item.xml │ │ ├── matched_user_item.xml │ │ └── nav_header_main.xml │ │ ├── menu │ │ ├── activity_main_drawer.xml │ │ ├── main.xml │ │ └── top_navigation_toolbar.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── 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 │ │ ├── values-v21 │ │ └── styles.xml │ │ └── values │ │ ├── attrs.xml │ │ ├── colors.xml │ │ ├── dimens.xml │ │ ├── drawables.xml │ │ ├── strings.xml │ │ └── styles.xml │ └── test │ └── java │ └── com │ └── quintus │ └── labs │ └── datingapp │ └── ExampleUnitTest.java ├── build.gradle ├── dating.iml ├── datingapp.iml ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── local.properties ├── lovedating1.0.apk ├── lovedating1.1.apk ├── lovedating1.2.apk ├── screen ├── Love Dating Logo.png ├── screen1.png ├── screen2.png ├── screen3.png └── screen4.png └── settings.gradle /.gitignore: -------------------------------------------------------------------------------- 1 | '.idea' 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 |
3 | # DatingApp 4 | Android app like Tinder. 5 |
6 | 7 |
8 |
9 |
10 |
11 | 12 | ## Download 13 | 14 | * [LoveDating](https://github.com/quintuslabs/DatingApp/blob/master/lovedating1.2.apk) - Download APK 15 |
16 | 17 |
18 | Dating UI kit is used for online meet up with girls and boys . The screen contains more than 30 icons and most of all required elements required to design an application like this. 19 | The XML and JAVA files contains comments at each and every point for easy understanding. 20 | Everything was made with a detail oriented style and followed by today's web trends. Clean coded & Layers are well-organized, carefully named, and grouped. 21 | Change text, colours and graphics, add or place photos. 22 | Customize every elements as much, or as little as you want. 23 | Customise elements (easy to edit) 24 | 100% free fonts 25 | Perfect pixel (high quality design) 26 | Very clean and cool UI 27 | Free updates 28 | 29 | This awesome multipurpose dating app designed with a strong sense of modern and new UI, UX concepts. The application has been created with Ansdroid Studio. This awesome template app is highly customizable, user and developer friendly which holds high code quality, reflects module based project structure and many more. 30 | 31 | By using this template UI app save your 1000% development time. This app presents a lot of layouts (Slider Landing Page, Sign In Page, Multiple Slider Sign Up Page, Swipe Page, Match Page, Gorgeous Chat Page with Giphy Support, User Public Profile, User Own Profile, Edit Profile Page and Settings pages) etc. 32 | 33 | Therefore, this well-organized design concepts template app will help to build your dating app exactly what you’re looking for. 34 | 35 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 30 5 | defaultConfig { 6 | applicationId "com.quintus.labs.datingapp" 7 | minSdkVersion 15 8 | targetSdkVersion 30 9 | versionCode 1 10 | versionName "1.1" 11 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled false 16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17 | } 18 | } 19 | } 20 | 21 | allprojects { 22 | repositories { 23 | mavenLocal() 24 | jcenter() 25 | // ADD IT HERE 26 | maven { url "https://jitpack.io" } 27 | } 28 | } 29 | 30 | dependencies { 31 | implementation fileTree(dir: 'libs', include: ['*.jar']) 32 | //noinspection GradleCompatible 33 | implementation 'androidx.appcompat:appcompat:1.0.0' 34 | implementation 'com.google.android.material:material:1.0.0' 35 | implementation 'androidx.constraintlayout:constraintlayout:1.1.3' 36 | implementation 'com.google.code.gson:gson:2.8.5' 37 | implementation 'com.yahoo.mobile.client.android.util.rangeseekbar:rangeseekbar-library:0.1.0' 38 | implementation 'com.squareup.picasso:picasso:2.71828' 39 | //swipecard dependency 40 | implementation 'com.lorentzos.swipecards:library:1.0.9' 41 | //navigation 42 | implementation 'com.github.ittianyu:BottomNavigationViewEx:1.2.4' 43 | 44 | //Circle ImageView 45 | implementation 'de.hdodenhof:circleimageview:2.2.0' 46 | 47 | //sliding dot splash 48 | implementation 'com.chabbal:slidingdotsplash:1.0.2' 49 | 50 | //add cardview 51 | implementation 'androidx.cardview:cardview:1.0.0' 52 | 53 | //glide for cache image 54 | implementation 'com.github.bumptech.glide:glide:4.7.1' 55 | annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1' 56 | testImplementation 'junit:junit:4.12' 57 | androidTestImplementation 'androidx.test.ext:junit:1.1.1' 58 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0' 59 | } 60 | -------------------------------------------------------------------------------- /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/quintus/labs/datingapp/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp; 2 | 3 | import android.content.Context; 4 | import androidx.test.platform.app.InstrumentationRegistry; 5 | import androidx.test.ext.junit.runners.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.assertEquals; 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.quintus.labs.datingapp", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 20 | 21 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /app/src/main/assets/font/AlexBrush-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/assets/font/AlexBrush-Regular.ttf -------------------------------------------------------------------------------- /app/src/main/assets/font/GreatVibes-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/assets/font/GreatVibes-Regular.ttf -------------------------------------------------------------------------------- /app/src/main/assets/font/Parisienne-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/assets/font/Parisienne-Regular.ttf -------------------------------------------------------------------------------- /app/src/main/assets/font/Roboto-Black.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/assets/font/Roboto-Black.ttf -------------------------------------------------------------------------------- /app/src/main/assets/font/Roboto-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/assets/font/Roboto-Bold.ttf -------------------------------------------------------------------------------- /app/src/main/assets/font/Roboto-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/assets/font/Roboto-Italic.ttf -------------------------------------------------------------------------------- /app/src/main/assets/font/Roboto-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/assets/font/Roboto-Light.ttf -------------------------------------------------------------------------------- /app/src/main/assets/font/Roboto-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/assets/font/Roboto-Medium.ttf -------------------------------------------------------------------------------- /app/src/main/assets/font/Roboto-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/assets/font/Roboto-Regular.ttf -------------------------------------------------------------------------------- /app/src/main/assets/font/roboto_bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/assets/font/roboto_bold.ttf -------------------------------------------------------------------------------- /app/src/main/assets/font/roboto_light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/assets/font/roboto_light.ttf -------------------------------------------------------------------------------- /app/src/main/assets/font/roboto_medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/assets/font/roboto_medium.ttf -------------------------------------------------------------------------------- /app/src/main/assets/font/roboto_regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/assets/font/roboto_regular.ttf -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/Introduction/IntroductionMain.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.Introduction; 2 | 3 | import android.content.Intent; 4 | import android.os.Bundle; 5 | import androidx.appcompat.app.AppCompatActivity; 6 | import android.view.View; 7 | import android.widget.Button; 8 | 9 | import com.quintus.labs.datingapp.Login.Login; 10 | import com.quintus.labs.datingapp.Login.RegisterBasicInfo; 11 | import com.quintus.labs.datingapp.R; 12 | 13 | 14 | /** 15 | * DatingApp 16 | * https://github.com/quintuslabs/DatingApp 17 | * Created on 25-sept-2018. 18 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 19 | */ 20 | 21 | public class IntroductionMain extends AppCompatActivity { 22 | 23 | private Button signupButton; 24 | private Button loginButton; 25 | 26 | @Override 27 | protected void onCreate(Bundle savedInstanceState) { 28 | super.onCreate(savedInstanceState); 29 | setContentView(R.layout.activity_introduction_main); 30 | 31 | signupButton = findViewById(R.id.signup_button); 32 | 33 | signupButton.setOnClickListener(new View.OnClickListener() { 34 | @Override 35 | public void onClick(View v) { 36 | openEmailAddressEntryPage(); 37 | } 38 | }); 39 | 40 | loginButton = findViewById(R.id.login_button); 41 | loginButton.setOnClickListener(new View.OnClickListener() { 42 | @Override 43 | public void onClick(View v) { 44 | openLoginPage(); 45 | } 46 | }); 47 | } 48 | 49 | public void openLoginPage() { 50 | Intent intent = new Intent(this, Login.class); 51 | startActivity(intent); 52 | } 53 | 54 | public void openEmailAddressEntryPage() { 55 | Intent intent = new Intent(this, RegisterBasicInfo.class); 56 | startActivity(intent); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/Login/Login.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.Login; 2 | 3 | import android.content.Context; 4 | import android.content.Intent; 5 | import android.os.Bundle; 6 | import androidx.annotation.Nullable; 7 | import androidx.appcompat.app.AppCompatActivity; 8 | import android.util.Log; 9 | import android.view.View; 10 | import android.widget.Button; 11 | import android.widget.EditText; 12 | import android.widget.TextView; 13 | import android.widget.Toast; 14 | 15 | import com.quintus.labs.datingapp.Main.MainActivity; 16 | import com.quintus.labs.datingapp.R; 17 | 18 | 19 | /** 20 | * DatingApp 21 | * https://github.com/quintuslabs/DatingApp 22 | * Created on 25-sept-2018. 23 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 24 | */ 25 | public class Login extends AppCompatActivity { 26 | private static final String TAG = "LoginActivity"; 27 | 28 | private Context mContext; 29 | private EditText mEmail, mPassword; 30 | 31 | @Override 32 | protected void onCreate(@Nullable Bundle savedInstanceState) { 33 | super.onCreate(savedInstanceState); 34 | setContentView(R.layout.activity_login); 35 | mEmail = findViewById(R.id.input_email); 36 | mPassword = findViewById(R.id.input_password); 37 | mContext = Login.this; 38 | 39 | 40 | init(); 41 | } 42 | 43 | private boolean isStringNull(String string) { 44 | Log.d(TAG, "isStringNull: checking string if null."); 45 | 46 | return string.equals(""); 47 | } 48 | 49 | //----------------------------------------Firebase---------------------------------------- 50 | 51 | private void init() { 52 | //initialize the button for logging in 53 | Button btnLogin = findViewById(R.id.btn_login); 54 | btnLogin.setOnClickListener(new View.OnClickListener() { 55 | 56 | @Override 57 | public void onClick(View v) { 58 | Log.d(TAG, "onClick: attempting to log in"); 59 | 60 | String email = mEmail.getText().toString(); 61 | String password = mPassword.getText().toString(); 62 | 63 | if (isStringNull(email) || isStringNull(password)) { 64 | Toast.makeText(mContext, "You must fill out all the fields", Toast.LENGTH_SHORT).show(); 65 | } else { 66 | 67 | Intent intent = new Intent(Login.this, MainActivity.class); 68 | startActivity(intent); 69 | } 70 | } 71 | }); 72 | 73 | TextView linkSignUp = findViewById(R.id.link_signup); 74 | linkSignUp.setOnClickListener(new View.OnClickListener() { 75 | @Override 76 | public void onClick(View v) { 77 | Log.d(TAG, "onClick: navigating to register screen"); 78 | Intent intent = new Intent(Login.this, RegisterBasicInfo.class); 79 | startActivity(intent); 80 | } 81 | }); 82 | 83 | 84 | } 85 | 86 | 87 | @Override 88 | public void onBackPressed() { 89 | 90 | } 91 | 92 | 93 | } 94 | -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/Login/RegisterAge.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.Login; 2 | 3 | import android.content.Intent; 4 | import android.os.Bundle; 5 | import androidx.appcompat.app.AppCompatActivity; 6 | import android.view.View; 7 | import android.widget.Button; 8 | import android.widget.DatePicker; 9 | import android.widget.Toast; 10 | 11 | import com.quintus.labs.datingapp.R; 12 | import com.quintus.labs.datingapp.Utils.User; 13 | 14 | import java.text.SimpleDateFormat; 15 | import java.util.Calendar; 16 | import java.util.Date; 17 | 18 | /** 19 | * Grocery App 20 | * https://github.com/quintuslabs/GroceryStore 21 | * Created on 18-Feb-2019. 22 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 23 | */ 24 | 25 | public class RegisterAge extends AppCompatActivity { 26 | 27 | String password; 28 | User user; 29 | SimpleDateFormat dateFormatter = new SimpleDateFormat("MM-dd-yyyy"); 30 | private DatePicker ageSelectionPicker; 31 | private Button ageContinueButton; 32 | // age limit attribute 33 | private int ageLimit = 13; 34 | 35 | @Override 36 | protected void onCreate(Bundle savedInstanceState) { 37 | super.onCreate(savedInstanceState); 38 | setContentView(R.layout.activity_register_age); 39 | 40 | Intent intent = getIntent(); 41 | user = (User) intent.getSerializableExtra("classUser"); 42 | password = intent.getStringExtra("password"); 43 | 44 | ageSelectionPicker = findViewById(R.id.ageSelectionPicker); 45 | 46 | 47 | ageContinueButton = findViewById(R.id.ageContinueButton); 48 | 49 | ageContinueButton.setOnClickListener(new View.OnClickListener() { 50 | @Override 51 | public void onClick(View v) { 52 | openHobbiesEntryPage(); 53 | } 54 | }); 55 | 56 | 57 | } 58 | 59 | public void openHobbiesEntryPage() { 60 | int age = getAge(ageSelectionPicker.getYear(), ageSelectionPicker.getMonth(), ageSelectionPicker.getDayOfMonth()); 61 | 62 | // if user is above 13 years old then only he/she will be allowed to register to the system. 63 | if (age > ageLimit) { 64 | // code for converting date to string 65 | Calendar cal = Calendar.getInstance(); 66 | cal.set(Calendar.YEAR, ageSelectionPicker.getYear()); 67 | cal.set(Calendar.MONTH, ageSelectionPicker.getMonth()); 68 | cal.set(Calendar.DAY_OF_MONTH, ageSelectionPicker.getDayOfMonth()); 69 | Date dateOfBirth = cal.getTime(); 70 | String strDateOfBirth = dateFormatter.format(dateOfBirth); 71 | 72 | // code to set the dateOfBirthAttribute. 73 | user.setDateOfBirth(strDateOfBirth); 74 | 75 | Intent intent = new Intent(this, RegisterHobby.class); 76 | intent.putExtra("password", password); 77 | intent.putExtra("classUser", user); 78 | startActivity(intent); 79 | } else { 80 | Toast.makeText(getApplicationContext(), "Age of the user should be greater than " + ageLimit + " !!!", Toast.LENGTH_SHORT).show(); 81 | } 82 | 83 | } 84 | 85 | // method to get the current age of the user. 86 | private int getAge(int year, int month, int day) { 87 | Calendar dateOfBirth = Calendar.getInstance(); 88 | Calendar today = Calendar.getInstance(); 89 | 90 | dateOfBirth.set(year, month, day); 91 | 92 | int age = today.get(Calendar.YEAR) - dateOfBirth.get(Calendar.YEAR); 93 | 94 | if (today.get(Calendar.DAY_OF_YEAR) < dateOfBirth.get(Calendar.DAY_OF_YEAR)) { 95 | age--; 96 | } 97 | 98 | return age; 99 | } 100 | } 101 | -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/Login/RegisterBasicInfo.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.Login; 2 | 3 | import android.content.Context; 4 | import android.content.Intent; 5 | import android.location.Location; 6 | import android.os.Bundle; 7 | import androidx.appcompat.app.AppCompatActivity; 8 | import android.util.Log; 9 | import android.view.View; 10 | import android.widget.Button; 11 | import android.widget.EditText; 12 | import android.widget.TextView; 13 | import android.widget.Toast; 14 | 15 | import com.quintus.labs.datingapp.R; 16 | import com.quintus.labs.datingapp.Utils.GPS; 17 | import com.quintus.labs.datingapp.Utils.User; 18 | 19 | /** 20 | * Grocery App 21 | * https://github.com/quintuslabs/GroceryStore 22 | * Created on 18-Feb-2019. 23 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 24 | */ 25 | 26 | public class RegisterBasicInfo extends AppCompatActivity { 27 | private static final String TAG = "RegisterActivity"; 28 | GPS gps; 29 | private Context mContext; 30 | private String email, username, password; 31 | private EditText mEmail, mPassword, mUsername; 32 | private TextView loadingPleaseWait; 33 | private Button btnRegister; 34 | private String append = ""; 35 | 36 | private String emailPattern = "[a-zA-Z0-9._-]+@[a-z]+\\.+[a-z]+"; 37 | 38 | 39 | @Override 40 | protected void onCreate(Bundle savedInstanceState) { 41 | super.onCreate(savedInstanceState); 42 | setContentView(R.layout.activity_registerbasic_info); 43 | mContext = RegisterBasicInfo.this; 44 | Log.d(TAG, "onCreate: started"); 45 | 46 | gps = new GPS(getApplicationContext()); 47 | 48 | initWidgets(); 49 | init(); 50 | } 51 | 52 | private void init() { 53 | btnRegister.setOnClickListener(new View.OnClickListener() { 54 | @Override 55 | public void onClick(View v) { 56 | 57 | email = mEmail.getText().toString(); 58 | username = mUsername.getText().toString(); 59 | password = mPassword.getText().toString(); 60 | 61 | if (checkInputs(email, username, password)) { 62 | //find geo location 63 | //find geo location 64 | Location location = gps.getLocation(); 65 | double latitude = 37.349642; 66 | double longtitude = -121.938987; 67 | if (location != null) { 68 | latitude = location.getLatitude(); 69 | longtitude = location.getLongitude(); 70 | } 71 | Log.d("Location==>", longtitude + " " + latitude); 72 | 73 | 74 | Intent intent = new Intent(RegisterBasicInfo.this, RegisterGender.class); 75 | User user = new User("", "", "", "", email, username, false, false, false, false, "", "", "", latitude, longtitude); 76 | intent.putExtra("password", password); 77 | intent.putExtra("classUser", user); 78 | startActivity(intent); 79 | } 80 | } 81 | }); 82 | } 83 | 84 | private boolean checkInputs(String email, String username, String password) { 85 | Log.d(TAG, "checkInputs: checking inputs for null values."); 86 | if (email.equals("") || username.equals("") || password.equals("")) { 87 | Toast.makeText(mContext, "All fields must be filed out.", Toast.LENGTH_SHORT).show(); 88 | return false; 89 | } 90 | 91 | // Below code checks if the email id is valid or not. 92 | if (!email.matches(emailPattern)) { 93 | Toast.makeText(getApplicationContext(), "Invalid email address, enter valid email id and click on Continue", Toast.LENGTH_SHORT).show(); 94 | return false; 95 | 96 | } 97 | 98 | 99 | return true; 100 | } 101 | 102 | private void initWidgets() { 103 | Log.d(TAG, "initWidgets: initializing widgets"); 104 | mEmail = findViewById(R.id.input_email); 105 | mUsername = findViewById(R.id.input_username); 106 | btnRegister = findViewById(R.id.btn_register); 107 | mPassword = findViewById(R.id.input_password); 108 | mContext = RegisterBasicInfo.this; 109 | 110 | } 111 | 112 | public void onLoginClicked(View view) { 113 | startActivity(new Intent(getApplicationContext(), Login.class)); 114 | 115 | } 116 | } 117 | -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/Login/RegisterGender.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.Login; 2 | 3 | import android.content.Intent; 4 | import android.graphics.Color; 5 | import android.os.Bundle; 6 | import androidx.appcompat.app.AppCompatActivity; 7 | import android.view.View; 8 | import android.widget.Button; 9 | 10 | import com.quintus.labs.datingapp.R; 11 | import com.quintus.labs.datingapp.Utils.User; 12 | 13 | 14 | /** 15 | * Grocery App 16 | * https://github.com/quintuslabs/GroceryStore 17 | * Created on 18-Feb-2019. 18 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 19 | */ 20 | 21 | public class RegisterGender extends AppCompatActivity { 22 | 23 | String password; 24 | User user; 25 | boolean male = true; 26 | private Button genderContinueButton; 27 | private Button maleSelectionButton; 28 | private Button femaleSelectionButton; 29 | 30 | @Override 31 | protected void onCreate(Bundle savedInstanceState) { 32 | super.onCreate(savedInstanceState); 33 | setContentView(R.layout.activity_register_gender); 34 | 35 | Intent intent = getIntent(); 36 | user = (User) intent.getSerializableExtra("classUser"); 37 | password = intent.getStringExtra("password"); 38 | 39 | maleSelectionButton = findViewById(R.id.maleSelectionButton); 40 | femaleSelectionButton = findViewById(R.id.femaleSelectionButton); 41 | genderContinueButton = findViewById(R.id.genderContinueButton); 42 | 43 | //By default male has to be selected so below code is added 44 | 45 | femaleSelectionButton.setAlpha(.5f); 46 | femaleSelectionButton.setBackgroundColor(Color.GRAY); 47 | 48 | 49 | maleSelectionButton.setOnClickListener(new View.OnClickListener() { 50 | @Override 51 | public void onClick(View v) { 52 | maleButtonSelected(); 53 | } 54 | }); 55 | 56 | femaleSelectionButton.setOnClickListener(new View.OnClickListener() { 57 | @Override 58 | public void onClick(View v) { 59 | femaleButtonSelected(); 60 | } 61 | }); 62 | 63 | genderContinueButton.setOnClickListener(new View.OnClickListener() { 64 | @Override 65 | public void onClick(View v) { 66 | openPreferenceEntryPage(); 67 | } 68 | }); 69 | 70 | } 71 | 72 | public void maleButtonSelected() { 73 | male = true; 74 | maleSelectionButton.setBackgroundColor(Color.parseColor("#FF4081")); 75 | maleSelectionButton.setAlpha(1.0f); 76 | femaleSelectionButton.setAlpha(.5f); 77 | femaleSelectionButton.setBackgroundColor(Color.GRAY); 78 | } 79 | 80 | public void femaleButtonSelected() { 81 | male = false; 82 | femaleSelectionButton.setBackgroundColor(Color.parseColor("#FF4081")); 83 | femaleSelectionButton.setAlpha(1.0f); 84 | maleSelectionButton.setAlpha(.5f); 85 | maleSelectionButton.setBackgroundColor(Color.GRAY); 86 | } 87 | 88 | public void openPreferenceEntryPage() { 89 | 90 | String ownSex = male ? "male" : "female"; 91 | user.setSex(ownSex); 92 | //set default photo 93 | String defaultPhoto = male ? "defaultMale" : "defaultFemale"; 94 | user.setProfileImageUrl(defaultPhoto); 95 | 96 | Intent intent = new Intent(this, RegisterGenderPrefection.class); 97 | intent.putExtra("password", password); 98 | intent.putExtra("classUser", user); 99 | startActivity(intent); 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/Login/RegisterGenderPrefection.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.Login; 2 | 3 | import android.content.Intent; 4 | import android.graphics.Color; 5 | import android.os.Bundle; 6 | import androidx.appcompat.app.AppCompatActivity; 7 | import android.view.View; 8 | import android.widget.Button; 9 | 10 | import com.quintus.labs.datingapp.R; 11 | import com.quintus.labs.datingapp.Utils.User; 12 | 13 | 14 | /** 15 | * DatingApp 16 | * https://github.com/quintuslabs/DatingApp 17 | * Created on 25-sept-2018. 18 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 19 | */ 20 | 21 | public class RegisterGenderPrefection extends AppCompatActivity { 22 | 23 | String password; 24 | User user; 25 | boolean preferMale = true; 26 | private Button preferenceContinueButton; 27 | private Button hobbiesContinueButton; 28 | private Button maleSelectionButton; 29 | private Button femaleSelectionButton; 30 | 31 | @Override 32 | protected void onCreate(Bundle savedInstanceState) { 33 | super.onCreate(savedInstanceState); 34 | setContentView(R.layout.activity_register_gender_prefection); 35 | 36 | Intent intent = getIntent(); 37 | user = (User) intent.getSerializableExtra("classUser"); 38 | password = intent.getStringExtra("password"); 39 | 40 | 41 | maleSelectionButton = findViewById(R.id.maleSelectionButton); 42 | femaleSelectionButton = findViewById(R.id.femaleSelectionButton); 43 | preferenceContinueButton = findViewById(R.id.preferenceContinueButton); 44 | //By default male has to be selected so below code is added 45 | 46 | femaleSelectionButton.setAlpha(.5f); 47 | femaleSelectionButton.setBackgroundColor(Color.GRAY); 48 | 49 | 50 | maleSelectionButton.setOnClickListener(new View.OnClickListener() { 51 | @Override 52 | public void onClick(View v) { 53 | maleButtonSelected(); 54 | } 55 | }); 56 | 57 | femaleSelectionButton.setOnClickListener(new View.OnClickListener() { 58 | @Override 59 | public void onClick(View v) { 60 | femaleButtonSelected(); 61 | } 62 | }); 63 | 64 | preferenceContinueButton.setOnClickListener(new View.OnClickListener() { 65 | @Override 66 | public void onClick(View v) { 67 | openAgeEntryPage(); 68 | } 69 | }); 70 | 71 | 72 | } 73 | 74 | public void maleButtonSelected() { 75 | preferMale = true; 76 | maleSelectionButton.setBackgroundColor(Color.parseColor("#FF4081")); 77 | maleSelectionButton.setAlpha(1.0f); 78 | femaleSelectionButton.setAlpha(.5f); 79 | femaleSelectionButton.setBackgroundColor(Color.GRAY); 80 | } 81 | 82 | public void femaleButtonSelected() { 83 | preferMale = false; 84 | femaleSelectionButton.setBackgroundColor(Color.parseColor("#FF4081")); 85 | femaleSelectionButton.setAlpha(1.0f); 86 | maleSelectionButton.setAlpha(.5f); 87 | maleSelectionButton.setBackgroundColor(Color.GRAY); 88 | } 89 | 90 | public void openAgeEntryPage() { 91 | String preferSex = preferMale ? "male" : "female"; 92 | user.setPreferSex(preferSex); 93 | Intent intent = new Intent(this, RegisterAge.class); 94 | intent.putExtra("password", password); 95 | intent.putExtra("classUser", user); 96 | startActivity(intent); 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/Main/BtnDislikeActivity.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.Main; 2 | 3 | import android.content.Context; 4 | import android.content.Intent; 5 | import android.os.Bundle; 6 | import androidx.appcompat.app.AppCompatActivity; 7 | import android.util.Log; 8 | import android.view.Menu; 9 | import android.view.MenuItem; 10 | import android.widget.ImageView; 11 | 12 | import com.bumptech.glide.Glide; 13 | import com.ittianyu.bottomnavigationviewex.BottomNavigationViewEx; 14 | import com.quintus.labs.datingapp.R; 15 | import com.quintus.labs.datingapp.Utils.TopNavigationViewHelper; 16 | 17 | /** 18 | * DatingApp 19 | * https://github.com/quintuslabs/DatingApp 20 | * Created on 25-sept-2018. 21 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 22 | */ 23 | 24 | public class BtnDislikeActivity extends AppCompatActivity { 25 | private static final String TAG = "BtnDislikeActivity"; 26 | private static final int ACTIVITY_NUM = 1; 27 | private Context mContext = BtnDislikeActivity.this; 28 | private ImageView dislike; 29 | 30 | @Override 31 | protected void onCreate(Bundle savedInstanceState) { 32 | super.onCreate(savedInstanceState); 33 | setContentView(R.layout.activity_btn_dislike); 34 | 35 | 36 | setupTopNavigationView(); 37 | dislike = findViewById(R.id.dislike); 38 | 39 | Intent intent = getIntent(); 40 | String profileUrl = intent.getStringExtra("url"); 41 | 42 | switch (profileUrl) { 43 | case "defaultFemale": 44 | Glide.with(mContext).load(R.drawable.default_woman).into(dislike); 45 | break; 46 | case "defaultMale": 47 | Glide.with(mContext).load(R.drawable.default_man).into(dislike); 48 | break; 49 | default: 50 | Glide.with(mContext).load(profileUrl).into(dislike); 51 | break; 52 | } 53 | 54 | new Thread(new Runnable() { 55 | @Override 56 | public void run() { 57 | 58 | try { 59 | Thread.sleep(1000); 60 | } catch (InterruptedException e) { 61 | e.printStackTrace(); 62 | } 63 | 64 | Intent mainIntent = new Intent(BtnDislikeActivity.this, MainActivity.class); 65 | startActivity(mainIntent); 66 | } 67 | }).start(); 68 | } 69 | 70 | private void setupTopNavigationView() { 71 | Log.d(TAG, "setupTopNavigationView: setting up TopNavigationView"); 72 | BottomNavigationViewEx tvEx = findViewById(R.id.topNavViewBar); 73 | TopNavigationViewHelper.setupTopNavigationView(tvEx); 74 | TopNavigationViewHelper.enableNavigation(mContext, tvEx); 75 | Menu menu = tvEx.getMenu(); 76 | MenuItem menuItem = menu.getItem(ACTIVITY_NUM); 77 | menuItem.setChecked(true); 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/Main/BtnLikeActivity.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.Main; 2 | 3 | import android.content.Context; 4 | import android.content.Intent; 5 | import android.os.Bundle; 6 | import androidx.appcompat.app.AppCompatActivity; 7 | import android.util.Log; 8 | import android.view.Menu; 9 | import android.view.MenuItem; 10 | import android.widget.ImageView; 11 | 12 | import com.bumptech.glide.Glide; 13 | import com.ittianyu.bottomnavigationviewex.BottomNavigationViewEx; 14 | import com.quintus.labs.datingapp.R; 15 | import com.quintus.labs.datingapp.Utils.TopNavigationViewHelper; 16 | 17 | 18 | /** 19 | * DatingApp 20 | * https://github.com/quintuslabs/DatingApp 21 | * Created on 25-sept-2018. 22 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 23 | */ 24 | 25 | public class BtnLikeActivity extends AppCompatActivity { 26 | private static final String TAG = "BtnLikeActivity"; 27 | private static final int ACTIVITY_NUM = 1; 28 | private Context mContext = BtnLikeActivity.this; 29 | private ImageView like; 30 | 31 | @Override 32 | protected void onCreate(Bundle savedInstanceState) { 33 | super.onCreate(savedInstanceState); 34 | setContentView(R.layout.activity_btn_like); 35 | 36 | setupTopNavigationView(); 37 | like = findViewById(R.id.like); 38 | 39 | Intent intent = getIntent(); 40 | String profileUrl = intent.getStringExtra("url"); 41 | 42 | switch (profileUrl) { 43 | case "defaultFemale": 44 | Glide.with(mContext).load(R.drawable.default_woman).into(like); 45 | break; 46 | case "defaultMale": 47 | Glide.with(mContext).load(R.drawable.default_man).into(like); 48 | break; 49 | default: 50 | Glide.with(mContext).load(profileUrl).into(like); 51 | break; 52 | } 53 | 54 | new Thread(new Runnable() { 55 | @Override 56 | public void run() { 57 | 58 | try { 59 | Thread.sleep(1000); 60 | } catch (InterruptedException e) { 61 | e.printStackTrace(); 62 | } 63 | 64 | 65 | Intent mainIntent = new Intent(BtnLikeActivity.this, MainActivity.class); 66 | startActivity(mainIntent); 67 | } 68 | }).start(); 69 | } 70 | 71 | private void setupTopNavigationView() { 72 | Log.d(TAG, "setupTopNavigationView: setting up TopNavigationView"); 73 | BottomNavigationViewEx tvEx = findViewById(R.id.topNavViewBar); 74 | TopNavigationViewHelper.setupTopNavigationView(tvEx); 75 | TopNavigationViewHelper.enableNavigation(mContext, tvEx); 76 | Menu menu = tvEx.getMenu(); 77 | MenuItem menuItem = menu.getItem(ACTIVITY_NUM); 78 | menuItem.setChecked(true); 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/Main/Cards.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.Main; 2 | 3 | 4 | /** 5 | * DatingApp 6 | * https://github.com/quintuslabs/DatingApp 7 | * Created on 25-sept-2018. 8 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 9 | */ 10 | 11 | public class Cards { 12 | private String userId; 13 | private String name, profileImageUrl, bio, interest; 14 | private int age; 15 | private int distance; 16 | 17 | public Cards(String userId, String name, int age, String profileImageUrl, String bio, String interest, int distance) { 18 | this.userId = userId; 19 | this.name = name; 20 | this.age = age; 21 | this.profileImageUrl = profileImageUrl; 22 | this.bio = bio; 23 | this.interest = interest; 24 | this.distance = distance; 25 | } 26 | 27 | public Cards(String profileImageUrl) { 28 | this.profileImageUrl = profileImageUrl; 29 | } 30 | 31 | public int getDistance() { 32 | return distance; 33 | } 34 | 35 | public String getBio() { 36 | return bio; 37 | } 38 | 39 | public String getInterest() { 40 | return interest; 41 | } 42 | 43 | public int getAge() { 44 | return age; 45 | } 46 | 47 | public void setAge(int age) { 48 | this.age = age; 49 | } 50 | 51 | public String getProfileImageUrl() { 52 | return profileImageUrl; 53 | } 54 | 55 | public void setProfileImageUrl(String profileImageUrl) { 56 | this.profileImageUrl = profileImageUrl; 57 | } 58 | 59 | public String getUserId() { 60 | return userId; 61 | } 62 | 63 | public void setUserId(String userId) { 64 | this.userId = userId; 65 | } 66 | 67 | public String getName() { 68 | return name; 69 | } 70 | 71 | public void setName(String name) { 72 | this.name = name; 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/Main/NotificationHelper.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.Main; 2 | 3 | import android.annotation.TargetApi; 4 | import android.app.Notification; 5 | import android.app.NotificationChannel; 6 | import android.app.NotificationManager; 7 | import android.app.PendingIntent; 8 | import android.content.Context; 9 | import android.content.ContextWrapper; 10 | import android.content.Intent; 11 | import android.graphics.Color; 12 | import android.os.Build; 13 | import androidx.core.app.NotificationCompat; 14 | import android.util.Log; 15 | 16 | import com.quintus.labs.datingapp.Matched.Matched_Activity; 17 | import com.quintus.labs.datingapp.R; 18 | 19 | 20 | 21 | /** 22 | * DatingApp 23 | * https://github.com/quintuslabs/DatingApp 24 | * Created on 25-sept-2018. 25 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 26 | */ 27 | 28 | public class NotificationHelper extends ContextWrapper { 29 | public static final String channel1ID = "channel1ID"; 30 | public static final String channel1Name = "channel 1"; 31 | 32 | private NotificationManager mManager; 33 | 34 | public NotificationHelper(Context base) { 35 | super(base); 36 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { 37 | createChannels(); 38 | } 39 | } 40 | 41 | @TargetApi(Build.VERSION_CODES.O) 42 | public void createChannels() { 43 | NotificationChannel channel1 = new NotificationChannel(channel1ID, channel1Name, NotificationManager.IMPORTANCE_HIGH); 44 | channel1.enableLights(true); 45 | channel1.enableVibration(true); 46 | channel1.setLightColor(Color.GREEN); 47 | channel1.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE); 48 | channel1.setVibrationPattern(new long[]{0, 1000, 1000, 1000}); 49 | Log.d("notification", "we are in create channels1 \n "); 50 | 51 | getManager().createNotificationChannel(channel1); 52 | Log.d("notification", "we are in create channels2 \n "); 53 | 54 | } 55 | 56 | public NotificationManager getManager() { 57 | if (mManager == null) { 58 | mManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); 59 | } 60 | 61 | return mManager; 62 | } 63 | 64 | public NotificationCompat.Builder getChannel1Notification(String title, String message) { 65 | Intent intent = new Intent(this, Matched_Activity.class); 66 | PendingIntent pi = PendingIntent.getActivity(this, 0, intent, 0); 67 | Log.d("notification", "we are in getChaneel1Notification function \n "); 68 | 69 | return new NotificationCompat.Builder(getApplicationContext(), channel1ID) 70 | .setContentTitle(title) 71 | .setContentText(message) 72 | .setSmallIcon(getNotificationIcon()) 73 | .setAutoCancel(true) 74 | .setColor(getResources().getColor(R.color.colorPrimary)) 75 | .setContentIntent(pi); 76 | } 77 | 78 | //compare SDK version to set the app icon as silhouette or regular one 79 | private int getNotificationIcon() { 80 | boolean useWhiteIcon = (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP); 81 | return useWhiteIcon ? R.drawable.notification_app_icon : R.drawable.ic_location; 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/Main/PhotoAdapter.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.Main; 2 | 3 | import android.content.Context; 4 | import android.content.Intent; 5 | import androidx.annotation.NonNull; 6 | import android.view.LayoutInflater; 7 | import android.view.View; 8 | import android.view.ViewGroup; 9 | import android.widget.ArrayAdapter; 10 | import android.widget.ImageButton; 11 | import android.widget.ImageView; 12 | import android.widget.TextView; 13 | 14 | import com.bumptech.glide.Glide; 15 | import com.quintus.labs.datingapp.R; 16 | 17 | import java.util.List; 18 | 19 | /** 20 | * DatingApp 21 | * https://github.com/quintuslabs/DatingApp 22 | * Created on 25-sept-2018. 23 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 24 | */ 25 | 26 | public class PhotoAdapter extends ArrayAdapter { 27 | Context mContext; 28 | 29 | 30 | public PhotoAdapter(@NonNull Context context, int resource, @NonNull List objects) { 31 | super(context, resource, objects); 32 | this.mContext = context; 33 | } 34 | 35 | public View getView(final int position, View convertView, ViewGroup parent) { 36 | final Cards card_item = getItem(position); 37 | 38 | if (convertView == null) { 39 | convertView = LayoutInflater.from(getContext()).inflate(R.layout.item, parent, false); 40 | } 41 | 42 | TextView name = convertView.findViewById(R.id.name); 43 | ImageView image = convertView.findViewById(R.id.image); 44 | ImageButton btnInfo = convertView.findViewById(R.id.checkInfoBeforeMatched); 45 | 46 | name.setText(card_item.getName() + ", " + card_item.getAge()); 47 | btnInfo.setOnClickListener(new View.OnClickListener() { 48 | @Override 49 | public void onClick(View v) { 50 | Intent intent = new Intent(mContext, ProfileCheckinMain.class); 51 | intent.putExtra("name", card_item.getName() + ", " + card_item.getAge()); 52 | intent.putExtra("photo", card_item.getProfileImageUrl()); 53 | intent.putExtra("bio", card_item.getBio()); 54 | intent.putExtra("interest", card_item.getInterest()); 55 | intent.putExtra("distance", card_item.getDistance()); 56 | mContext.startActivity(intent); 57 | } 58 | }); 59 | 60 | name.setText(card_item.getName() + ", " + card_item.getAge()); 61 | 62 | switch (card_item.getProfileImageUrl()) { 63 | case "defaultFemale": 64 | Glide.with(getContext()).load(R.drawable.default_woman).into(image); 65 | break; 66 | case "defaultMale": 67 | Glide.with(getContext()).load(R.drawable.default_man).into(image); 68 | break; 69 | default: 70 | Glide.with(getContext()).load(card_item.getProfileImageUrl()).into(image); 71 | break; 72 | } 73 | 74 | return convertView; 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/Main/ProfileCheckinMain.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.Main; 2 | 3 | import android.content.Context; 4 | import android.content.Intent; 5 | import android.os.Bundle; 6 | import androidx.appcompat.app.AppCompatActivity; 7 | import android.view.View; 8 | import android.widget.ImageView; 9 | import android.widget.TextView; 10 | 11 | import com.bumptech.glide.Glide; 12 | import com.quintus.labs.datingapp.R; 13 | 14 | /** 15 | * DatingApp 16 | * https://github.com/quintuslabs/DatingApp 17 | * Created on 25-sept-2018. 18 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 19 | */ 20 | public class ProfileCheckinMain extends AppCompatActivity { 21 | 22 | private Context mContext; 23 | String profileImageUrl; 24 | @Override 25 | protected void onCreate(Bundle savedInstanceState) { 26 | super.onCreate(savedInstanceState); 27 | setContentView(R.layout.activity_profile_checkin_main); 28 | 29 | mContext = ProfileCheckinMain.this; 30 | 31 | /* ImageButton back = findViewById(R.id.back); 32 | back.setOnClickListener(new View.OnClickListener() { 33 | @Override 34 | public void onClick(View v) { 35 | onBackPressed(); 36 | } 37 | }); 38 | */ 39 | 40 | TextView profileName = findViewById(R.id.name_main); 41 | ImageView profileImage = findViewById(R.id.profileImage); 42 | TextView profileBio = findViewById(R.id.bio_beforematch); 43 | TextView profileInterest = findViewById(R.id.interests_beforematch); 44 | TextView profileDistance = findViewById(R.id.distance_main); 45 | 46 | Intent intent = getIntent(); 47 | String name = intent.getStringExtra("name"); 48 | String bio = intent.getStringExtra("bio"); 49 | String interest = intent.getStringExtra("interest"); 50 | int distance = intent.getIntExtra("distance", 1); 51 | String append = (distance == 1) ? "mile away" : "miles away"; 52 | 53 | profileDistance.setText(distance + " " + append); 54 | profileName.setText(name); 55 | profileBio.setText(bio); 56 | profileInterest.setText(interest); 57 | 58 | profileImageUrl = intent.getStringExtra("photo"); 59 | switch (profileImageUrl) { 60 | case "defaultFemale": 61 | Glide.with(mContext).load(R.drawable.default_woman).into(profileImage); 62 | break; 63 | case "defaultMale": 64 | Glide.with(mContext).load(R.drawable.default_man).into(profileImage); 65 | break; 66 | default: 67 | Glide.with(mContext).load(profileImageUrl).into(profileImage); 68 | break; 69 | } 70 | } 71 | 72 | 73 | public void DislikeBtn(View v) { 74 | 75 | Intent btnClick = new Intent(mContext, BtnDislikeActivity.class); 76 | btnClick.putExtra("url", profileImageUrl); 77 | startActivity(btnClick); 78 | 79 | } 80 | 81 | public void LikeBtn(View v) { 82 | Intent btnClick = new Intent(mContext, BtnLikeActivity.class); 83 | btnClick.putExtra("url", profileImageUrl); 84 | startActivity(btnClick); 85 | 86 | } 87 | 88 | } 89 | -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/Matched/ActiveUserAdapter.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.Matched; 2 | 3 | import android.content.Context; 4 | import androidx.annotation.NonNull; 5 | import androidx.recyclerview.widget.RecyclerView; 6 | import android.view.LayoutInflater; 7 | import android.view.View; 8 | import android.view.ViewGroup; 9 | import android.widget.TextView; 10 | 11 | import com.quintus.labs.datingapp.R; 12 | import com.squareup.picasso.Picasso; 13 | 14 | import java.util.List; 15 | 16 | import de.hdodenhof.circleimageview.CircleImageView; 17 | 18 | /** 19 | * DatingApp 20 | * https://github.com/quintuslabs/DatingApp 21 | * Created on 25-sept-2018. 22 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 23 | */ 24 | 25 | public class ActiveUserAdapter extends RecyclerView.Adapter { 26 | List usersList; 27 | Context context; 28 | 29 | public ActiveUserAdapter(List usersList, Context context) { 30 | this.usersList = usersList; 31 | this.context = context; 32 | } 33 | 34 | @NonNull 35 | @Override 36 | public ActiveUserAdapter.MyViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { 37 | View itemView = LayoutInflater.from(parent.getContext()) 38 | .inflate(R.layout.active_user_item, parent, false); 39 | 40 | return new MyViewHolder(itemView); 41 | } 42 | 43 | @Override 44 | public void onBindViewHolder(@NonNull ActiveUserAdapter.MyViewHolder holder, int position) { 45 | Users users = usersList.get(position); 46 | holder.name.setText(users.getName()); 47 | if (users.getProfileImageUrl() != null) { 48 | Picasso.get().load(users.getProfileImageUrl()).into(holder.imageView); 49 | } 50 | } 51 | 52 | @Override 53 | public int getItemCount() { 54 | return usersList.size(); 55 | } 56 | 57 | public class MyViewHolder extends RecyclerView.ViewHolder { 58 | CircleImageView imageView; 59 | TextView name; 60 | 61 | public MyViewHolder(@NonNull View itemView) { 62 | super(itemView); 63 | imageView = itemView.findViewById(R.id.aui_image); 64 | name = itemView.findViewById(R.id.aui_name); 65 | } 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/Matched/MatchUserAdapter.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.Matched; 2 | 3 | import android.content.Context; 4 | import androidx.annotation.NonNull; 5 | import androidx.recyclerview.widget.RecyclerView; 6 | import android.view.LayoutInflater; 7 | import android.view.View; 8 | import android.view.ViewGroup; 9 | import android.widget.TextView; 10 | 11 | import com.quintus.labs.datingapp.R; 12 | import com.squareup.picasso.Picasso; 13 | 14 | import java.util.List; 15 | 16 | import de.hdodenhof.circleimageview.CircleImageView; 17 | 18 | /** 19 | * DatingApp 20 | * https://github.com/quintuslabs/DatingApp 21 | * Created on 25-sept-2018. 22 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 23 | */ 24 | 25 | public class MatchUserAdapter extends RecyclerView.Adapter { 26 | List usersList; 27 | Context context; 28 | 29 | public MatchUserAdapter(List usersList, Context context) { 30 | this.usersList = usersList; 31 | this.context = context; 32 | } 33 | 34 | @NonNull 35 | @Override 36 | public MatchUserAdapter.MyViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { 37 | View itemView = LayoutInflater.from(parent.getContext()) 38 | .inflate(R.layout.matched_user_item, parent, false); 39 | 40 | return new MyViewHolder(itemView); 41 | } 42 | 43 | @Override 44 | public void onBindViewHolder(@NonNull MatchUserAdapter.MyViewHolder holder, int position) { 45 | Users users = usersList.get(position); 46 | holder.name.setText(users.getName()); 47 | holder.profession.setText(users.getBio()); 48 | if (users.getProfileImageUrl() != null) { 49 | Picasso.get().load(users.getProfileImageUrl()).into(holder.imageView); 50 | } 51 | } 52 | 53 | @Override 54 | public int getItemCount() { 55 | return usersList.size(); 56 | } 57 | 58 | public class MyViewHolder extends RecyclerView.ViewHolder { 59 | CircleImageView imageView; 60 | TextView name, profession; 61 | 62 | public MyViewHolder(@NonNull View itemView) { 63 | super(itemView); 64 | imageView = itemView.findViewById(R.id.mui_image); 65 | name = itemView.findViewById(R.id.mui_name); 66 | profession = itemView.findViewById(R.id.mui_profession); 67 | } 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/Matched/ProfileAdapter.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.Matched; 2 | 3 | import android.content.Context; 4 | import androidx.annotation.NonNull; 5 | import androidx.annotation.Nullable; 6 | import android.view.LayoutInflater; 7 | import android.view.View; 8 | import android.view.ViewGroup; 9 | import android.widget.ArrayAdapter; 10 | import android.widget.ImageButton; 11 | import android.widget.ImageView; 12 | import android.widget.TextView; 13 | 14 | import com.bumptech.glide.Glide; 15 | import com.quintus.labs.datingapp.R; 16 | import com.quintus.labs.datingapp.Utils.User; 17 | 18 | import java.util.List; 19 | 20 | /** 21 | * DatingApp 22 | * https://github.com/quintuslabs/DatingApp 23 | * Created on 25-sept-2018. 24 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 25 | */ 26 | 27 | public class ProfileAdapter extends ArrayAdapter { 28 | private int resourceId; 29 | private Context mContext; 30 | 31 | public ProfileAdapter(@NonNull Context context, int resource, @NonNull List objects) { 32 | super(context, resource, objects); 33 | resourceId = resource; 34 | this.mContext = context; 35 | } 36 | 37 | @NonNull 38 | @Override 39 | public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) { 40 | User user = getItem(position); 41 | 42 | //improve the efficiency 43 | View view; 44 | ViewHolder viewHolder; 45 | 46 | if (convertView == null) { 47 | view = LayoutInflater.from(getContext()).inflate(resourceId, parent, false); 48 | 49 | viewHolder = new ViewHolder(); 50 | viewHolder.personPic = view.findViewById(R.id.person_image); 51 | viewHolder.personName = view.findViewById(R.id.person_name); 52 | viewHolder.imageButton = view.findViewById(R.id.videoCalBtn); 53 | view.setTag(viewHolder); 54 | } else { 55 | view = convertView; 56 | viewHolder = (ViewHolder) view.getTag(); 57 | } 58 | 59 | String profileImageUrl = user.getProfileImageUrl(); 60 | switch (profileImageUrl) { 61 | case "defaultFemale": 62 | Glide.with(mContext).load(R.drawable.default_woman).into(viewHolder.personPic); 63 | break; 64 | case "defaultMale": 65 | Glide.with(mContext).load(R.drawable.default_man).into(viewHolder.personPic); 66 | break; 67 | default: 68 | Glide.with(mContext).load(profileImageUrl).into(viewHolder.personPic); 69 | break; 70 | } 71 | viewHolder.personName.setText(user.getUsername()); 72 | viewHolder.imageButton.setFocusable(false); 73 | 74 | return view; 75 | } 76 | 77 | 78 | class ViewHolder { 79 | ImageView personPic; 80 | TextView personName; 81 | ImageButton imageButton; 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/Matched/Users.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.Matched; 2 | /** 3 | * DatingApp 4 | * https://github.com/quintuslabs/DatingApp 5 | * Created on 25-sept-2018. 6 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 7 | */ 8 | 9 | public class Users { 10 | private String userId; 11 | private String name, profileImageUrl, bio, interest; 12 | private int age; 13 | private int distance; 14 | 15 | public Users(String userId, String name, int age, String profileImageUrl, String bio, String interest, int distance) { 16 | this.userId = userId; 17 | this.name = name; 18 | this.age = age; 19 | this.profileImageUrl = profileImageUrl; 20 | this.bio = bio; 21 | this.interest = interest; 22 | this.distance = distance; 23 | } 24 | 25 | public Users(String profileImageUrl) { 26 | this.profileImageUrl = profileImageUrl; 27 | } 28 | 29 | public int getDistance() { 30 | return distance; 31 | } 32 | 33 | public String getBio() { 34 | return bio; 35 | } 36 | 37 | public String getInterest() { 38 | return interest; 39 | } 40 | 41 | public int getAge() { 42 | return age; 43 | } 44 | 45 | public void setAge(int age) { 46 | this.age = age; 47 | } 48 | 49 | public String getProfileImageUrl() { 50 | return profileImageUrl; 51 | } 52 | 53 | public void setProfileImageUrl(String profileImageUrl) { 54 | this.profileImageUrl = profileImageUrl; 55 | } 56 | 57 | public String getUserId() { 58 | return userId; 59 | } 60 | 61 | public void setUserId(String userId) { 62 | this.userId = userId; 63 | } 64 | 65 | public String getName() { 66 | return name; 67 | } 68 | 69 | public void setName(String name) { 70 | this.name = name; 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/Profile/Profile_Activity.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.Profile; 2 | 3 | import android.content.Context; 4 | import android.content.Intent; 5 | import android.os.Bundle; 6 | import androidx.appcompat.app.AppCompatActivity; 7 | import android.util.Log; 8 | import android.view.Menu; 9 | import android.view.MenuItem; 10 | import android.view.View; 11 | import android.widget.ImageButton; 12 | import android.widget.ImageView; 13 | import android.widget.TextView; 14 | 15 | import com.ittianyu.bottomnavigationviewex.BottomNavigationViewEx; 16 | import com.quintus.labs.datingapp.R; 17 | import com.quintus.labs.datingapp.Utils.PulsatorLayout; 18 | import com.quintus.labs.datingapp.Utils.TopNavigationViewHelper; 19 | 20 | /** 21 | * Grocery App 22 | * https://github.com/quintuslabs/GroceryStore 23 | * Created on 18-Feb-2019. 24 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 25 | */ 26 | public class Profile_Activity extends AppCompatActivity { 27 | private static final String TAG = "Profile_Activity"; 28 | private static final int ACTIVITY_NUM = 0; 29 | static boolean active = false; 30 | 31 | private Context mContext = Profile_Activity.this; 32 | private ImageView imagePerson; 33 | private TextView name; 34 | 35 | private String userId; 36 | 37 | 38 | @Override 39 | protected void onCreate(Bundle savedInstanceState) { 40 | Log.d(TAG, "onCreate: create the page"); 41 | super.onCreate(savedInstanceState); 42 | setContentView(R.layout.activity_profile); 43 | 44 | PulsatorLayout mPulsator = findViewById(R.id.pulsator); 45 | mPulsator.start(); 46 | 47 | setupTopNavigationView(); 48 | 49 | imagePerson = findViewById(R.id.circle_profile_image); 50 | name = findViewById(R.id.profile_name); 51 | 52 | 53 | ImageButton edit_btn = findViewById(R.id.edit_profile); 54 | edit_btn.setOnClickListener(new View.OnClickListener() { 55 | @Override 56 | public void onClick(View v) { 57 | Intent intent = new Intent(Profile_Activity.this, EditProfileActivity.class); 58 | startActivity(intent); 59 | } 60 | }); 61 | 62 | ImageButton settings = findViewById(R.id.settings); 63 | settings.setOnClickListener(new View.OnClickListener() { 64 | @Override 65 | public void onClick(View v) { 66 | Intent intent = new Intent(Profile_Activity.this, SettingsActivity.class); 67 | startActivity(intent); 68 | } 69 | }); 70 | } 71 | 72 | @Override 73 | protected void onResume() { 74 | super.onResume(); 75 | Log.d(TAG, "onResume: resume to the page"); 76 | 77 | } 78 | 79 | 80 | private void setupTopNavigationView() { 81 | Log.d(TAG, "setupTopNavigationView: setting up TopNavigationView"); 82 | BottomNavigationViewEx tvEx = findViewById(R.id.topNavViewBar); 83 | TopNavigationViewHelper.setupTopNavigationView(tvEx); 84 | TopNavigationViewHelper.enableNavigation(mContext, tvEx); 85 | Menu menu = tvEx.getMenu(); 86 | MenuItem menuItem = menu.getItem(ACTIVITY_NUM); 87 | menuItem.setChecked(true); 88 | } 89 | 90 | 91 | 92 | } 93 | -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/Profile/SettingsActivity.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.Profile; 2 | 3 | import android.content.Intent; 4 | import android.os.Bundle; 5 | import androidx.appcompat.app.AppCompatActivity; 6 | import androidx.appcompat.widget.SwitchCompat; 7 | import android.view.View; 8 | import android.widget.CompoundButton; 9 | import android.widget.ImageButton; 10 | import android.widget.SeekBar; 11 | import android.widget.TextView; 12 | 13 | import com.quintus.labs.datingapp.Introduction.IntroductionMain; 14 | import com.quintus.labs.datingapp.R; 15 | import com.yahoo.mobile.client.android.util.rangeseekbar.RangeSeekBar; 16 | 17 | /** 18 | * Grocery App 19 | * https://github.com/quintuslabs/GroceryStore 20 | * Created on 18-Feb-2019. 21 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 22 | */ 23 | 24 | public class SettingsActivity extends AppCompatActivity { 25 | private static final String TAG = "SettingsActivity"; 26 | SeekBar distance; 27 | SwitchCompat man, woman; 28 | RangeSeekBar rangeSeekBar; 29 | TextView gender, distance_text, age_rnge; 30 | 31 | 32 | @Override 33 | protected void onCreate(Bundle savedInstanceState) { 34 | super.onCreate(savedInstanceState); 35 | setContentView(R.layout.activity_settings); 36 | 37 | 38 | TextView toolbar = findViewById(R.id.toolbartag); 39 | toolbar.setText("Profile"); 40 | ImageButton back = findViewById(R.id.back); 41 | distance = findViewById(R.id.distance); 42 | man = findViewById(R.id.switch_man); 43 | woman = findViewById(R.id.switch_woman); 44 | distance_text = findViewById(R.id.distance_text); 45 | age_rnge = findViewById(R.id.age_range); 46 | rangeSeekBar = findViewById(R.id.rangeSeekbar); 47 | 48 | 49 | distance.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() { 50 | @Override 51 | public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { 52 | distance_text.setText(progress + " Km"); 53 | } 54 | 55 | @Override 56 | public void onStartTrackingTouch(SeekBar seekBar) { 57 | 58 | } 59 | 60 | @Override 61 | public void onStopTrackingTouch(SeekBar seekBar) { 62 | 63 | } 64 | }); 65 | 66 | man.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { 67 | @Override 68 | public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { 69 | if (isChecked) { 70 | man.setChecked(true); 71 | woman.setChecked(false); 72 | } 73 | } 74 | }); 75 | woman.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { 76 | @Override 77 | public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { 78 | if (isChecked) { 79 | woman.setChecked(true); 80 | man.setChecked(false); 81 | } 82 | } 83 | }); 84 | rangeSeekBar.setOnRangeSeekBarChangeListener(new RangeSeekBar.OnRangeSeekBarChangeListener() { 85 | @Override 86 | public void onRangeSeekBarValuesChanged(RangeSeekBar bar, Object minValue, Object maxValue) { 87 | age_rnge.setText(minValue + "-" + maxValue); 88 | } 89 | }); 90 | back.setOnClickListener(new View.OnClickListener() { 91 | @Override 92 | public void onClick(View v) { 93 | onBackPressed(); 94 | } 95 | }); 96 | 97 | 98 | } 99 | 100 | public void Logout(View view) { 101 | startActivity(new Intent(getApplicationContext(), IntroductionMain.class)); 102 | finish(); 103 | 104 | } 105 | 106 | 107 | } 108 | -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/Utils/CalculateAge.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.Utils; 2 | 3 | import java.util.Calendar; 4 | 5 | /** 6 | * Grocery App 7 | * https://github.com/quintuslabs/GroceryStore 8 | * Created on 18-Feb-2019. 9 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 10 | */ 11 | 12 | public class CalculateAge { 13 | private int age; 14 | 15 | public CalculateAge(String dob) { 16 | String[] splitDOB = dob.split("-"); 17 | setAge(Integer.parseInt(splitDOB[2]), Integer.parseInt(splitDOB[0]), Integer.parseInt(splitDOB[1])); 18 | } 19 | 20 | public int getAge() { 21 | return this.age; 22 | } 23 | 24 | public void setAge(int year, int month, int day) { 25 | Calendar dateOfBirth = Calendar.getInstance(); 26 | Calendar today = Calendar.getInstance(); 27 | 28 | dateOfBirth.set(year, month, day); 29 | 30 | int age = today.get(Calendar.YEAR) - dateOfBirth.get(Calendar.YEAR); 31 | 32 | if (today.get(Calendar.DAY_OF_YEAR) < dateOfBirth.get(Calendar.DAY_OF_YEAR)) { 33 | age--; 34 | } 35 | 36 | this.age = age; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/Utils/GPS.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.Utils; 2 | 3 | import android.Manifest; 4 | import android.content.Context; 5 | import android.content.pm.PackageManager; 6 | import android.location.Location; 7 | import android.location.LocationListener; 8 | import android.location.LocationManager; 9 | import android.os.Bundle; 10 | import androidx.core.app.ActivityCompat; 11 | 12 | /** 13 | * DatingApp 14 | * https://github.com/quintuslabs/DatingApp 15 | * Created on 25-sept-2018. 16 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 17 | */ 18 | 19 | public class GPS implements LocationListener { 20 | Context mContext; 21 | Location mlocation; 22 | LocationManager mLocationManager; 23 | String mProvider = LocationManager.GPS_PROVIDER; 24 | 25 | public GPS(Context mContext) { 26 | this.mContext = mContext; 27 | mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); 28 | 29 | if (ActivityCompat.checkSelfPermission(mContext, Manifest.permission.ACCESS_FINE_LOCATION) 30 | != PackageManager.PERMISSION_GRANTED && 31 | ActivityCompat.checkSelfPermission(mContext, Manifest.permission.ACCESS_COARSE_LOCATION) 32 | != PackageManager.PERMISSION_GRANTED) { 33 | 34 | return; 35 | } 36 | 37 | mlocation = mLocationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER); 38 | onLocationChanged(mlocation); 39 | } 40 | 41 | 42 | @Override 43 | public void onLocationChanged(Location location) { 44 | this.mlocation = mlocation; 45 | } 46 | 47 | @Override 48 | public void onStatusChanged(String provider, int status, Bundle extras) { 49 | 50 | } 51 | 52 | @Override 53 | public void onProviderEnabled(String provider) { 54 | 55 | } 56 | 57 | @Override 58 | public void onProviderDisabled(String provider) { 59 | 60 | } 61 | 62 | public Location getLocation() { 63 | return mlocation; 64 | } 65 | 66 | public int calculateDistance(double lat1, double lon1, double lat2, double lon2) { 67 | double theta = lon1 - lon2; 68 | double dist = Math.sin(deg2rad(lat1)) * Math.sin(deg2rad(lat2)) + Math.cos(deg2rad(lat1)) * Math.cos(deg2rad(lat2)) * Math.cos(deg2rad(theta)); 69 | dist = Math.acos(dist); 70 | dist = rad2deg(dist); 71 | dist = dist * 60 * 1.1515; 72 | 73 | int dis = (int) Math.floor(dist); 74 | if (dis < 1) { 75 | return 1; 76 | } 77 | 78 | return dis; 79 | } 80 | 81 | private double deg2rad(double deg) { 82 | return (deg * Math.PI / 180.0); 83 | } 84 | 85 | private double rad2deg(double rad) { 86 | return (rad * 180 / Math.PI); 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/Utils/SquareImageView.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.Utils; 2 | 3 | import android.content.Context; 4 | import android.util.AttributeSet; 5 | 6 | 7 | /** 8 | * DatingApp 9 | * https://github.com/quintuslabs/DatingApp 10 | * Created on 25-sept-2018. 11 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 12 | */ 13 | 14 | public class SquareImageView extends androidx.appcompat.widget.AppCompatImageView { 15 | 16 | public SquareImageView(Context context) { 17 | super(context); 18 | } 19 | 20 | public SquareImageView(Context context, AttributeSet attrs) { 21 | super(context, attrs); 22 | } 23 | 24 | public SquareImageView(Context context, AttributeSet attrs, int defStyleAttr) { 25 | super(context, attrs, defStyleAttr); 26 | } 27 | 28 | @Override 29 | protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { 30 | super.onMeasure(widthMeasureSpec, heightMeasureSpec); 31 | 32 | int width = getMeasuredWidth(); 33 | setMeasuredDimension(width, width); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/Utils/StringManipulation.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.Utils; 2 | 3 | /** 4 | * DatingApp 5 | * https://github.com/quintuslabs/DatingApp 6 | * Created on 25-sept-2018. 7 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 8 | */ 9 | 10 | public class StringManipulation { 11 | 12 | public static String expandUsername(String username) { 13 | return username.replace(".", " "); 14 | } 15 | 16 | public static String condenseUsername(String username) { 17 | return username.replace(" ", "."); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/Utils/TopNavigationViewHelper.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.Utils; 2 | 3 | import android.content.Context; 4 | import android.content.Intent; 5 | import androidx.annotation.NonNull; 6 | import com.google.android.material.bottomnavigation.BottomNavigationView; 7 | import android.util.Log; 8 | import android.view.MenuItem; 9 | 10 | import com.ittianyu.bottomnavigationviewex.BottomNavigationViewEx; 11 | import com.quintus.labs.datingapp.Main.MainActivity; 12 | import com.quintus.labs.datingapp.Matched.Matched_Activity; 13 | import com.quintus.labs.datingapp.Profile.Profile_Activity; 14 | import com.quintus.labs.datingapp.R; 15 | 16 | /** 17 | * DatingApp 18 | * https://github.com/quintuslabs/DatingApp 19 | * Created on 25-sept-2018. 20 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 21 | */ 22 | 23 | public class TopNavigationViewHelper { 24 | 25 | private static final String TAG = "TopNavigationViewHelper"; 26 | 27 | public static void setupTopNavigationView(BottomNavigationViewEx tv) { 28 | Log.d(TAG, "setupTopNavigationView: setting up navigationview"); 29 | 30 | 31 | } 32 | 33 | public static void enableNavigation(final Context context, BottomNavigationViewEx view) { 34 | view.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() { 35 | @Override 36 | public boolean onNavigationItemSelected(@NonNull MenuItem item) { 37 | switch (item.getItemId()) { 38 | case R.id.ic_profile: 39 | Intent intent2 = new Intent(context, Profile_Activity.class); 40 | context.startActivity(intent2); 41 | break; 42 | 43 | case R.id.ic_main: 44 | Intent intent1 = new Intent(context, MainActivity.class); 45 | context.startActivity(intent1); 46 | break; 47 | 48 | case R.id.ic_matched: 49 | Intent intent3 = new Intent(context, Matched_Activity.class); 50 | context.startActivity(intent3); 51 | 52 | break; 53 | } 54 | 55 | return false; 56 | } 57 | }); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/Utils/User.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.Utils; 2 | 3 | import java.io.Serializable; 4 | 5 | /** 6 | * DatingApp 7 | * https://github.com/quintuslabs/DatingApp 8 | * Created on 25-sept-2018. 9 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 10 | */ 11 | 12 | public class User implements Serializable { 13 | private String user_id; 14 | private String phone_number; 15 | private String email; 16 | private String username; 17 | private boolean sports; 18 | private boolean travel; 19 | private boolean music; 20 | private boolean fishing; 21 | private String description; 22 | private String sex; 23 | private String preferSex; 24 | private String dateOfBirth; 25 | private String profileImageUrl; 26 | private double latitude; 27 | private double longtitude; 28 | 29 | 30 | public User() { 31 | } 32 | 33 | public User(String sex, String preferSex, String user_id, String phone_number, String email, String username, boolean sport, boolean travel, boolean music, boolean fish, String description, String dateOfBirth, String profileImageUrl, double latitude, double longtitude) { 34 | this.sex = sex; 35 | this.user_id = user_id; 36 | this.phone_number = phone_number; 37 | this.email = email; 38 | this.username = username; 39 | this.sports = sport; 40 | this.travel = travel; 41 | this.music = music; 42 | this.fishing = fish; 43 | this.description = description; 44 | this.preferSex = preferSex; 45 | this.dateOfBirth = dateOfBirth; 46 | this.profileImageUrl = profileImageUrl; 47 | this.latitude = latitude; 48 | this.longtitude = longtitude; 49 | } 50 | 51 | public double getLatitude() { 52 | return latitude; 53 | } 54 | 55 | public void setLatitude(double latitude) { 56 | this.latitude = latitude; 57 | } 58 | 59 | public double getLongtitude() { 60 | return longtitude; 61 | } 62 | 63 | public void setLongtitude(double longtitude) { 64 | this.longtitude = longtitude; 65 | } 66 | 67 | public String getProfileImageUrl() { 68 | return profileImageUrl; 69 | } 70 | 71 | public void setProfileImageUrl(String profileImageUrl) { 72 | this.profileImageUrl = profileImageUrl; 73 | } 74 | 75 | public String getSex() { 76 | return sex; 77 | } 78 | 79 | public void setSex(String sex) { 80 | this.sex = sex; 81 | } 82 | 83 | public String getUser_id() { 84 | return user_id; 85 | } 86 | 87 | public void setUser_id(String user_id) { 88 | this.user_id = user_id; 89 | } 90 | 91 | public String getPhone_number() { 92 | return phone_number; 93 | } 94 | 95 | public void setPhone_number(String phone_number) { 96 | this.phone_number = phone_number; 97 | } 98 | 99 | public String getEmail() { 100 | return email; 101 | } 102 | 103 | public void setEmail(String email) { 104 | this.email = email; 105 | } 106 | 107 | public String getUsername() { 108 | return username; 109 | } 110 | 111 | public void setUsername(String username) { 112 | this.username = username; 113 | } 114 | 115 | public String getDescription() { 116 | return description; 117 | } 118 | 119 | public void setDescription(String description) { 120 | this.description = description; 121 | } 122 | 123 | public boolean isSports() { 124 | return sports; 125 | } 126 | 127 | public void setSports(boolean sports) { 128 | this.sports = sports; 129 | } 130 | 131 | public boolean isTravel() { 132 | return travel; 133 | } 134 | 135 | public void setTravel(boolean travel) { 136 | this.travel = travel; 137 | } 138 | 139 | public boolean isMusic() { 140 | return music; 141 | } 142 | 143 | public void setMusic(boolean music) { 144 | this.music = music; 145 | } 146 | 147 | public boolean isFishing() { 148 | return fishing; 149 | } 150 | 151 | public void setFishing(boolean fishing) { 152 | this.fishing = fishing; 153 | } 154 | 155 | public String getPreferSex() { 156 | return preferSex; 157 | } 158 | 159 | public void setPreferSex(String preferSex) { 160 | this.preferSex = preferSex; 161 | } 162 | 163 | // Added new attribute called date of birth. 164 | public String getDateOfBirth() { 165 | return dateOfBirth; 166 | } 167 | 168 | public void setDateOfBirth(String dateOfBirth) { 169 | this.dateOfBirth = dateOfBirth; 170 | } 171 | 172 | 173 | @Override 174 | public String toString() { 175 | return "User{" + 176 | "user_id='" + user_id + '\'' + 177 | ", phone_number='" + phone_number + '\'' + 178 | ", email='" + email + '\'' + 179 | ", username='" + username + '\'' + 180 | ", sports=" + sports + 181 | ", travel=" + travel + 182 | ", music=" + music + 183 | ", fishing=" + fishing + 184 | ", description='" + description + '\'' + 185 | ", sex='" + sex + '\'' + 186 | ", preferSex='" + preferSex + '\'' + 187 | ", dateOfBirth='" + dateOfBirth + '\'' + 188 | '}'; 189 | } 190 | } 191 | -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/Utils/UserSettings.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.Utils; 2 | 3 | /** 4 | * DatingApp 5 | * https://github.com/quintuslabs/DatingApp 6 | * Created on 25-sept-2018. 7 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 8 | */ 9 | 10 | public class UserSettings { 11 | 12 | private User user; 13 | 14 | public UserSettings(User user) { 15 | this.user = user; 16 | } 17 | 18 | public UserSettings() { 19 | } 20 | 21 | public User getUser() { 22 | return user; 23 | } 24 | 25 | public void setUser(User user) { 26 | this.user = user; 27 | } 28 | 29 | @Override 30 | public String toString() { 31 | return "UserSettings{" + 32 | "user=" + user + 33 | '}'; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/customfonts/Button_Roboto_Medium.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.customfonts; 2 | 3 | import android.content.Context; 4 | import android.graphics.Typeface; 5 | import android.util.AttributeSet; 6 | import android.widget.Button; 7 | 8 | 9 | /** 10 | * DatingApp 11 | * https://github.com/quintuslabs/DatingApp 12 | * Created on 25-sept-2018. 13 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 14 | */ 15 | public class Button_Roboto_Medium extends Button { 16 | 17 | public Button_Roboto_Medium(Context context, AttributeSet attrs, int defStyle) { 18 | super(context, attrs, defStyle); 19 | init(); 20 | } 21 | 22 | public Button_Roboto_Medium(Context context, AttributeSet attrs) { 23 | super(context, attrs); 24 | init(); 25 | } 26 | 27 | public Button_Roboto_Medium(Context context) { 28 | super(context); 29 | init(); 30 | } 31 | 32 | private void init() { 33 | if (!isInEditMode()) { 34 | Typeface tf = Typeface.createFromAsset(getContext().getAssets(), "fonts/Roboto-Regular.ttf"); 35 | setTypeface(tf); 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/customfonts/EditText_Roboto_Bold.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.customfonts; 2 | 3 | import android.content.Context; 4 | import android.graphics.Typeface; 5 | import android.util.AttributeSet; 6 | import android.widget.EditText; 7 | 8 | 9 | /** 10 | * DatingApp 11 | * https://github.com/quintuslabs/DatingApp 12 | * Created on 25-sept-2018. 13 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 14 | */ 15 | 16 | public class EditText_Roboto_Bold extends EditText { 17 | 18 | public EditText_Roboto_Bold(Context context, AttributeSet attrs, int defStyle) { 19 | super(context, attrs, defStyle); 20 | init(); 21 | } 22 | 23 | public EditText_Roboto_Bold(Context context, AttributeSet attrs) { 24 | super(context, attrs); 25 | init(); 26 | } 27 | 28 | public EditText_Roboto_Bold(Context context) { 29 | super(context); 30 | init(); 31 | } 32 | 33 | private void init() { 34 | if (!isInEditMode()) { 35 | Typeface tf = Typeface.createFromAsset(getContext().getAssets(), "fonts/Roboto-Bold.ttf"); 36 | setTypeface(tf); 37 | } 38 | } 39 | 40 | } -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/customfonts/EditText_Roboto_Italic.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.customfonts; 2 | 3 | import android.content.Context; 4 | import android.graphics.Typeface; 5 | import android.util.AttributeSet; 6 | import android.widget.EditText; 7 | 8 | 9 | /** 10 | * DatingApp 11 | * https://github.com/quintuslabs/DatingApp 12 | * Created on 25-sept-2018. 13 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 14 | */ 15 | public class EditText_Roboto_Italic extends EditText { 16 | 17 | public EditText_Roboto_Italic(Context context, AttributeSet attrs, int defStyle) { 18 | super(context, attrs, defStyle); 19 | init(); 20 | } 21 | 22 | public EditText_Roboto_Italic(Context context, AttributeSet attrs) { 23 | super(context, attrs); 24 | init(); 25 | } 26 | 27 | public EditText_Roboto_Italic(Context context) { 28 | super(context); 29 | init(); 30 | } 31 | 32 | private void init() { 33 | if (!isInEditMode()) { 34 | Typeface tf = Typeface.createFromAsset(getContext().getAssets(), "fonts/Roboto-Italic.ttf"); 35 | setTypeface(tf); 36 | } 37 | } 38 | 39 | } -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/customfonts/EditText_Roboto_Light.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.customfonts; 2 | 3 | import android.content.Context; 4 | import android.graphics.Typeface; 5 | import android.util.AttributeSet; 6 | import android.widget.EditText; 7 | 8 | 9 | /** 10 | * DatingApp 11 | * https://github.com/quintuslabs/DatingApp 12 | * Created on 25-sept-2018. 13 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 14 | */ 15 | 16 | public class EditText_Roboto_Light extends EditText { 17 | 18 | public EditText_Roboto_Light(Context context, AttributeSet attrs, int defStyle) { 19 | super(context, attrs, defStyle); 20 | init(); 21 | } 22 | 23 | public EditText_Roboto_Light(Context context, AttributeSet attrs) { 24 | super(context, attrs); 25 | init(); 26 | } 27 | 28 | public EditText_Roboto_Light(Context context) { 29 | super(context); 30 | init(); 31 | } 32 | 33 | private void init() { 34 | if (!isInEditMode()) { 35 | Typeface tf = Typeface.createFromAsset(getContext().getAssets(), "fonts/Roboto-Light.ttf"); 36 | setTypeface(tf); 37 | } 38 | } 39 | 40 | } -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/customfonts/EditText_Roboto_Meidum.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.customfonts; 2 | 3 | import android.content.Context; 4 | import android.graphics.Typeface; 5 | import android.util.AttributeSet; 6 | import android.widget.EditText; 7 | 8 | 9 | /** 10 | * DatingApp 11 | * https://github.com/quintuslabs/DatingApp 12 | * Created on 25-sept-2018. 13 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 14 | */ 15 | 16 | 17 | public class EditText_Roboto_Meidum extends EditText { 18 | 19 | public EditText_Roboto_Meidum(Context context, AttributeSet attrs, int defStyle) { 20 | super(context, attrs, defStyle); 21 | init(); 22 | } 23 | 24 | public EditText_Roboto_Meidum(Context context, AttributeSet attrs) { 25 | super(context, attrs); 26 | init(); 27 | } 28 | 29 | public EditText_Roboto_Meidum(Context context) { 30 | super(context); 31 | init(); 32 | } 33 | 34 | private void init() { 35 | if (!isInEditMode()) { 36 | Typeface tf = Typeface.createFromAsset(getContext().getAssets(), "fonts/Roboto-Medium.ttf"); 37 | setTypeface(tf); 38 | } 39 | } 40 | 41 | } -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/customfonts/EditText_Roboto_Regular.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.customfonts; 2 | 3 | import android.content.Context; 4 | import android.graphics.Typeface; 5 | import android.util.AttributeSet; 6 | import android.widget.EditText; 7 | 8 | 9 | /** 10 | * DatingApp 11 | * https://github.com/quintuslabs/DatingApp 12 | * Created on 25-sept-2018. 13 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 14 | */ 15 | 16 | public class EditText_Roboto_Regular extends EditText { 17 | 18 | public EditText_Roboto_Regular(Context context, AttributeSet attrs, int defStyle) { 19 | super(context, attrs, defStyle); 20 | init(); 21 | } 22 | 23 | public EditText_Roboto_Regular(Context context, AttributeSet attrs) { 24 | super(context, attrs); 25 | init(); 26 | } 27 | 28 | public EditText_Roboto_Regular(Context context) { 29 | super(context); 30 | init(); 31 | } 32 | 33 | private void init() { 34 | if (!isInEditMode()) { 35 | Typeface tf = Typeface.createFromAsset(getContext().getAssets(), "fonts/Roboto-Regular.ttf"); 36 | setTypeface(tf); 37 | } 38 | } 39 | 40 | } -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/customfonts/MyTextView_AlexBrush_Regular.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.customfonts; 2 | 3 | import android.content.Context; 4 | import android.graphics.Typeface; 5 | import android.util.AttributeSet; 6 | import android.widget.TextView; 7 | 8 | 9 | /** 10 | * DatingApp 11 | * https://github.com/quintuslabs/DatingApp 12 | * Created on 25-sept-2018. 13 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 14 | */ 15 | 16 | public class MyTextView_AlexBrush_Regular extends TextView { 17 | 18 | public MyTextView_AlexBrush_Regular(Context context, AttributeSet attrs, int defStyle) { 19 | super(context, attrs, defStyle); 20 | init(); 21 | } 22 | 23 | public MyTextView_AlexBrush_Regular(Context context, AttributeSet attrs) { 24 | super(context, attrs); 25 | init(); 26 | } 27 | 28 | public MyTextView_AlexBrush_Regular(Context context) { 29 | super(context); 30 | init(); 31 | } 32 | 33 | private void init() { 34 | if (!isInEditMode()) { 35 | Typeface tf = Typeface.createFromAsset(getContext().getAssets(), "fonts/AlexBrush-Regular.ttf"); 36 | setTypeface(tf); 37 | } 38 | } 39 | 40 | } -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/customfonts/MyTextView_GreatVibes_Regular.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.customfonts; 2 | 3 | import android.content.Context; 4 | import android.graphics.Typeface; 5 | import android.util.AttributeSet; 6 | import android.widget.TextView; 7 | 8 | 9 | /** 10 | * DatingApp 11 | * https://github.com/quintuslabs/DatingApp 12 | * Created on 25-sept-2018. 13 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 14 | */ 15 | 16 | 17 | public class MyTextView_GreatVibes_Regular extends TextView { 18 | 19 | public MyTextView_GreatVibes_Regular(Context context, AttributeSet attrs, int defStyle) { 20 | super(context, attrs, defStyle); 21 | init(); 22 | } 23 | 24 | public MyTextView_GreatVibes_Regular(Context context, AttributeSet attrs) { 25 | super(context, attrs); 26 | init(); 27 | } 28 | 29 | public MyTextView_GreatVibes_Regular(Context context) { 30 | super(context); 31 | init(); 32 | } 33 | 34 | private void init() { 35 | if (!isInEditMode()) { 36 | Typeface tf = Typeface.createFromAsset(getContext().getAssets(), "font/GreatVibes-Regular.ttf"); 37 | setTypeface(tf); 38 | } 39 | } 40 | 41 | } -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/customfonts/MyTextView_Parisienne_Regular.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.customfonts; 2 | 3 | import android.content.Context; 4 | import android.graphics.Typeface; 5 | import android.util.AttributeSet; 6 | import android.widget.TextView; 7 | 8 | 9 | /** 10 | * DatingApp 11 | * https://github.com/quintuslabs/DatingApp 12 | * Created on 25-sept-2018. 13 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 14 | */ 15 | 16 | public class MyTextView_Parisienne_Regular extends TextView { 17 | 18 | public MyTextView_Parisienne_Regular(Context context, AttributeSet attrs, int defStyle) { 19 | super(context, attrs, defStyle); 20 | init(); 21 | } 22 | 23 | public MyTextView_Parisienne_Regular(Context context, AttributeSet attrs) { 24 | super(context, attrs); 25 | init(); 26 | } 27 | 28 | public MyTextView_Parisienne_Regular(Context context) { 29 | super(context); 30 | init(); 31 | } 32 | 33 | private void init() { 34 | if (!isInEditMode()) { 35 | Typeface tf = Typeface.createFromAsset(getContext().getAssets(), "fonts/Parisienne-Regular.ttf"); 36 | setTypeface(tf); 37 | } 38 | } 39 | 40 | } -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/customfonts/MyTextView_Roboto_Black.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.customfonts; 2 | 3 | import android.content.Context; 4 | import android.graphics.Typeface; 5 | import android.util.AttributeSet; 6 | import android.widget.TextView; 7 | 8 | 9 | /** 10 | * DatingApp 11 | * https://github.com/quintuslabs/DatingApp 12 | * Created on 25-sept-2018. 13 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 14 | */ 15 | 16 | public class MyTextView_Roboto_Black extends TextView { 17 | 18 | public MyTextView_Roboto_Black(Context context, AttributeSet attrs, int defStyle) { 19 | super(context, attrs, defStyle); 20 | init(); 21 | } 22 | 23 | public MyTextView_Roboto_Black(Context context, AttributeSet attrs) { 24 | super(context, attrs); 25 | init(); 26 | } 27 | 28 | public MyTextView_Roboto_Black(Context context) { 29 | super(context); 30 | init(); 31 | } 32 | 33 | private void init() { 34 | if (!isInEditMode()) { 35 | Typeface tf = Typeface.createFromAsset(getContext().getAssets(), "fonts/Roboto-Black.ttf"); 36 | setTypeface(tf); 37 | } 38 | } 39 | 40 | } -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/customfonts/MyTextView_Roboto_Bold.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.customfonts; 2 | 3 | import android.content.Context; 4 | import android.graphics.Typeface; 5 | import android.util.AttributeSet; 6 | import android.widget.TextView; 7 | 8 | 9 | /** 10 | * DatingApp 11 | * https://github.com/quintuslabs/DatingApp 12 | * Created on 25-sept-2018. 13 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 14 | */ 15 | 16 | public class MyTextView_Roboto_Bold extends TextView { 17 | 18 | public MyTextView_Roboto_Bold(Context context, AttributeSet attrs, int defStyle) { 19 | super(context, attrs, defStyle); 20 | init(); 21 | } 22 | 23 | public MyTextView_Roboto_Bold(Context context, AttributeSet attrs) { 24 | super(context, attrs); 25 | init(); 26 | } 27 | 28 | public MyTextView_Roboto_Bold(Context context) { 29 | super(context); 30 | init(); 31 | } 32 | 33 | private void init() { 34 | if (!isInEditMode()) { 35 | Typeface tf = Typeface.createFromAsset(getContext().getAssets(), "font/roboto_bold.ttf"); 36 | setTypeface(tf); 37 | } 38 | } 39 | 40 | } -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/customfonts/MyTextView_Roboto_Italic.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.customfonts; 2 | 3 | import android.content.Context; 4 | import android.graphics.Typeface; 5 | import android.util.AttributeSet; 6 | import android.widget.TextView; 7 | 8 | 9 | /** 10 | * DatingApp 11 | * https://github.com/quintuslabs/DatingApp 12 | * Created on 25-sept-2018. 13 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 14 | */ 15 | 16 | public class MyTextView_Roboto_Italic extends TextView { 17 | 18 | public MyTextView_Roboto_Italic(Context context, AttributeSet attrs, int defStyle) { 19 | super(context, attrs, defStyle); 20 | init(); 21 | } 22 | 23 | public MyTextView_Roboto_Italic(Context context, AttributeSet attrs) { 24 | super(context, attrs); 25 | init(); 26 | } 27 | 28 | public MyTextView_Roboto_Italic(Context context) { 29 | super(context); 30 | init(); 31 | } 32 | 33 | private void init() { 34 | if (!isInEditMode()) { 35 | Typeface tf = Typeface.createFromAsset(getContext().getAssets(), "fonts/Roboto-Italic.ttf"); 36 | setTypeface(tf); 37 | } 38 | } 39 | 40 | } -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/customfonts/MyTextView_Roboto_Light.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.customfonts; 2 | 3 | import android.content.Context; 4 | import android.graphics.Typeface; 5 | import android.util.AttributeSet; 6 | import android.widget.TextView; 7 | 8 | 9 | /** 10 | * DatingApp 11 | * https://github.com/quintuslabs/DatingApp 12 | * Created on 25-sept-2018. 13 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 14 | */ 15 | 16 | public class MyTextView_Roboto_Light extends TextView { 17 | 18 | public MyTextView_Roboto_Light(Context context, AttributeSet attrs, int defStyle) { 19 | super(context, attrs, defStyle); 20 | init(); 21 | } 22 | 23 | public MyTextView_Roboto_Light(Context context, AttributeSet attrs) { 24 | super(context, attrs); 25 | init(); 26 | } 27 | 28 | public MyTextView_Roboto_Light(Context context) { 29 | super(context); 30 | init(); 31 | } 32 | 33 | private void init() { 34 | if (!isInEditMode()) { 35 | Typeface tf = Typeface.createFromAsset(getContext().getAssets(), "fonts/Roboto-Light.ttf"); 36 | setTypeface(tf); 37 | } 38 | } 39 | 40 | } -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/customfonts/MyTextView_Roboto_Medium.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.customfonts; 2 | 3 | import android.content.Context; 4 | import android.graphics.Typeface; 5 | import android.util.AttributeSet; 6 | import android.widget.TextView; 7 | 8 | 9 | /** 10 | * DatingApp 11 | * https://github.com/quintuslabs/DatingApp 12 | * Created on 25-sept-2018. 13 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 14 | */ 15 | 16 | public class MyTextView_Roboto_Medium extends TextView { 17 | 18 | public MyTextView_Roboto_Medium(Context context, AttributeSet attrs, int defStyle) { 19 | super(context, attrs, defStyle); 20 | init(); 21 | } 22 | 23 | public MyTextView_Roboto_Medium(Context context, AttributeSet attrs) { 24 | super(context, attrs); 25 | init(); 26 | } 27 | 28 | public MyTextView_Roboto_Medium(Context context) { 29 | super(context); 30 | init(); 31 | } 32 | 33 | private void init() { 34 | if (!isInEditMode()) { 35 | Typeface tf = Typeface.createFromAsset(getContext().getAssets(), "fonts/Roboto-Medium.ttf"); 36 | setTypeface(tf); 37 | } 38 | } 39 | 40 | } -------------------------------------------------------------------------------- /app/src/main/java/com/quintus/labs/datingapp/customfonts/MyTextView_Roboto_Regular.java: -------------------------------------------------------------------------------- 1 | package com.quintus.labs.datingapp.customfonts; 2 | 3 | import android.content.Context; 4 | import android.graphics.Typeface; 5 | import android.util.AttributeSet; 6 | import android.widget.TextView; 7 | 8 | 9 | /** 10 | * DatingApp 11 | * https://github.com/quintuslabs/DatingApp 12 | * Created on 25-sept-2018. 13 | * Created by : Santosh Kumar Dash:- http://santoshdash.epizy.com 14 | */ 15 | 16 | public class MyTextView_Roboto_Regular extends TextView { 17 | 18 | public MyTextView_Roboto_Regular(Context context, AttributeSet attrs, int defStyle) { 19 | super(context, attrs, defStyle); 20 | init(); 21 | } 22 | 23 | public MyTextView_Roboto_Regular(Context context, AttributeSet attrs) { 24 | super(context, attrs); 25 | init(); 26 | } 27 | 28 | public MyTextView_Roboto_Regular(Context context) { 29 | super(context); 30 | init(); 31 | } 32 | 33 | private void init() { 34 | if (!isInEditMode()) { 35 | Typeface tf = Typeface.createFromAsset(getContext().getAssets(), "fonts/Roboto-Regular.ttf"); 36 | setTypeface(tf); 37 | } 38 | } 39 | 40 | } -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/custom_seekbar_progress.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 22 | 23 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/custom_switch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/custom_circle.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 11 | 12 | 15 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_backarrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/res/drawable-mdpi/ic_backarrow.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_comment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/res/drawable-mdpi/ic_comment.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_dislike.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/res/drawable-mdpi/ic_dislike.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/res/drawable-mdpi/ic_edit.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/res/drawable-mdpi/ic_info.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_like1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/res/drawable-mdpi/ic_like1.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_location.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/res/drawable-mdpi/ic_location.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/res/drawable-mdpi/ic_search.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/res/drawable-mdpi/ic_settings.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_video.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/res/drawable-mdpi/ic_video.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/profile_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/res/drawable-mdpi/profile_bg.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v21/ic_menu_camera.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v21/ic_menu_gallery.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v21/ic_menu_manage.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v21/ic_menu_send.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v21/ic_menu_share.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v21/ic_menu_slideshow.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 13 | 19 | 22 | 25 | 26 | 27 | 28 | 34 | 35 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/circle_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/default_man.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/res/drawable/default_man.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/default_woman.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/res/drawable/default_woman.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/dislike_border.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 15 | 16 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/edit_text_focused_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_add_circle_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_check_select.xml: -------------------------------------------------------------------------------- 1 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_check_unselect.xml: -------------------------------------------------------------------------------- 1 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_chevron_left_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_close_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_down_arrow.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 15 | 18 | 21 | 22 | 23 | 24 | 27 | 28 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_lens_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_main.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_matched.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_profile.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_switch_select.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_switch_unselect.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 12 | 15 | 16 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/img1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/res/drawable/img1.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/img2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/res/drawable/img2.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/img3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/res/drawable/img3.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/img4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/res/drawable/img4.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/like_border.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 15 | 16 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/loginlogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/res/drawable/loginlogo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/res/drawable/logo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/monkey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/res/drawable/monkey.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/notification_app_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/plutonicdev/DatingApp/510fdf78ba934cd0ca846f93f89a7d32787b6884/app/src/main/res/drawable/notification_app_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/round_button_with_border.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/rounded_corner_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 15 | 16 | 17 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/seek_bar_thumb.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/side_nav_bar.xml: -------------------------------------------------------------------------------- 1 | 3 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/white_grey_border_bottom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 11 | 12 | 13 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/white_rounded_button.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /app/src/main/res/layout/active_user_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 14 | 15 | 22 | 23 | 28 | 29 | 35 | 36 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_btn_dislike.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 13 | 14 | 15 | 16 | 17 | 27 | 28 | 32 | 33 | 47 | 48 | 49 | 50 | 57 | 58 | 61 | 62 | 72 | 73 | 82 | 83 | 84 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_btn_like.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 13 | 14 | 15 | 16 | 17 | 27 | 28 | 32 | 33 | 46 | 47 | 48 | 49 | 56 | 57 | 60 | 61 | 71 | 72 | 81 | 82 | 83 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_introduction_main.xml: -------------------------------------------------------------------------------- 1 | 7 | 14 | 15 | 21 | 22 | 27 | 28 |