From a77bd7bae685468923ed0d5cbb413abf0c727c60 Mon Sep 17 00:00:00 2001 From: Amishi Date: Fri, 7 Feb 2020 10:20:21 +0530 Subject: [PATCH] hospitality --- app/build.gradle | 20 ++++++-- app/src/main/AndroidManifest.xml | 3 +- .../nimbus2020/Activities/Hospitality.java | 31 ++++++++++++ .../nimbus2020/Activities/contributors.java | 3 +- .../main/res/layout/activity_hospitality.xml | 47 +++++++++++++++++++ app/src/main/res/values/styles.xml | 5 ++ 6 files changed, 103 insertions(+), 6 deletions(-) create mode 100644 app/src/main/java/com/nith/appteam/nimbus2020/Activities/Hospitality.java create mode 100644 app/src/main/res/layout/activity_hospitality.xml diff --git a/app/build.gradle b/app/build.gradle index 1f26176..416c496 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -36,8 +36,20 @@ dependencies { implementation 'com.cloudinary:cloudinary-android:1.24.0' implementation 'com.android.volley:volley:1.1.1' implementation 'com.google.android.material:material:1.0.0' - implementation 'com.github.bumptech.glide:glide:4.8.0' - // Glide v4 uses this new annotation processor -- see https://bumptech.github.io/glide/doc/generatedapi.html - annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0' + implementation 'com.github.bumptech.glide:glide:4.8.0' + // Glide v4 uses this new annotation processor -- see https://bumptech.github.io/glide/doc/generatedapi.html + annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0' implementation 'com.github.bumptech.glide:glide:4.10.0' - } + implementation 'com.google.code.gson:gson:2.8.6' + implementation "com.android.support:support-v4:+" + implementation 'com.squareup.picasso:picasso:2.3.2' + implementation 'com.nineoldandroids:library:2.4.0' + implementation 'com.daimajia.slider:library:1.1.5@aar' + implementation 'com.android.support:support-compat:25.1.1' + implementation 'com.squareup.retrofit2:retrofit:2.5.0' + implementation 'com.squareup.retrofit2:converter-gson:2.5.0' + implementation 'com.squareup.okhttp3:okhttp:3.2.0' + implementation 'com.squareup.okhttp3:logging-interceptor:3.2.0' + implementation 'com.daimajia.easing:library:2.0@aar' + implementation 'com.daimajia.androidanimations:library:2.3@aar' +} diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 45b68b5..c62db96 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -15,7 +15,8 @@ android:supportsRtl="true" android:theme="@style/AppTheme" android:usesCleartextTraffic="true"> - + + diff --git a/app/src/main/java/com/nith/appteam/nimbus2020/Activities/Hospitality.java b/app/src/main/java/com/nith/appteam/nimbus2020/Activities/Hospitality.java new file mode 100644 index 0000000..92398a8 --- /dev/null +++ b/app/src/main/java/com/nith/appteam/nimbus2020/Activities/Hospitality.java @@ -0,0 +1,31 @@ +package com.nith.appteam.nimbus2020.Activities; + +import android.content.Intent; +import android.net.Uri; +import android.os.Bundle; +import android.view.View; +import android.widget.Button; + +import androidx.appcompat.app.AppCompatActivity; + +import com.nith.appteam.nimbus2020.R; + +public class Hospitality extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + Button button = (Button)findViewById(R.id.button); + // setContentView(R.layout.activity_hospitality); + button.setOnClickListener(new View.OnClickListener() { + public void onClick(View arg0) { + Intent viewIntent = + new Intent("android.intent.action.VIEW", + Uri.parse("https://festnimbus.com/")); + startActivity(viewIntent); + } + }); + + } + +} \ No newline at end of file diff --git a/app/src/main/java/com/nith/appteam/nimbus2020/Activities/contributors.java b/app/src/main/java/com/nith/appteam/nimbus2020/Activities/contributors.java index 31df611..7f43bcc 100644 --- a/app/src/main/java/com/nith/appteam/nimbus2020/Activities/contributors.java +++ b/app/src/main/java/com/nith/appteam/nimbus2020/Activities/contributors.java @@ -95,7 +95,8 @@ protected void onCreate(Bundle savedInstanceState) { contributorsItems.add(new contributorsItem("Gautam Verma",BASE_URL+"hey1729gautam.png",BASE_URL+"hey1729gautam")); contributorsItems.add(new contributorsItem("Kashika",BASE_URL+"Kashika1020.png",BASE_URL+"Kashika1020")); contributorsItems.add(new contributorsItem("Khyati Saini",BASE_URL+"KhyatiSaini.png",BASE_URL+"KhyatiSaini")); - + contributorsItems.add(new contributorsItem("Nishant Chandla",BASE_URL+"NishantChandla.png",BASE_URL+"NishantChandla")); + contributorsItems.add(new contributorsItem("Sushant Chandla",BASE_URL+"SushantChandla.png",BASE_URL+"SushantChandla")); ContributorAdapter = new contributorAdapter(contributorsItems, contributorsActivity.this); rvContributors.setAdapter(ContributorAdapter); diff --git a/app/src/main/res/layout/activity_hospitality.xml b/app/src/main/res/layout/activity_hospitality.xml new file mode 100644 index 0000000..1d0c102 --- /dev/null +++ b/app/src/main/res/layout/activity_hospitality.xml @@ -0,0 +1,47 @@ + + + + + + + + + +