Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hospitality #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
3 changes: 2 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true">
<activity android:name=".Activities.contributors"></activity>
<activity android:name=".Activities.Hospitality"></activity>
<activity android:name=".Activities.contributors" />
<activity
android:name=".Activities.SplashScreen"
android:theme="@style/AppTheme.NoActionBar">
Expand Down
Original file line number Diff line number Diff line change
@@ -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);
}
});

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
47 changes: 47 additions & 0 deletions app/src/main/res/layout/activity_hospitality.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">

<androidx.cardview.widget.CardView
android:id="@+id/cardTalk"
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_marginStart="8dp"
android:layout_marginTop="200dp"
android:layout_marginBottom="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.031">

<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="12dp">

<TextView
android:layout_width="150dp"
android:layout_height="wrap_content"
android:textSize="12dp"
android:text="Welcome to the nimbus 2020 app. The theme for this year is SEMBLANCE 'Fiction shaping reality'. Click on the button to visit the website for nimbus."
android:textColor="#000000"
android:id="@+id/text"
android:textStyle="bold"/>

<Button
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/text"
android:text="Click here to visit the webiste" />

</RelativeLayout>

</androidx.cardview.widget.CardView>


</LinearLayout>
5 changes: 5 additions & 0 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
<style name="EventAct" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
</style>


<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />

Expand Down