Commit 86cf0e28 authored by Harvey George Young's avatar Harvey George Young

Final

parents
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
# Default ignored files
/shelf/
/workspace.xml
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<bytecodeTargetLevel target="1.8" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="testRunner" value="PLATFORM" />
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleJvm" value="1.8" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
</set>
</option>
<option name="resolveModulePerSourceSet" value="false" />
<option name="useQualifiedModuleNames" value="true" />
</GradleProjectSettings>
</option>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RemoteRepositoriesConfiguration">
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Maven Central repository" />
<option name="url" value="https://repo1.maven.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="jboss.community" />
<option name="name" value="JBoss Community repository" />
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
</remote-repository>
<remote-repository>
<option name="id" value="BintrayJCenter" />
<option name="name" value="BintrayJCenter" />
<option name="url" value="https://jcenter.bintray.com/" />
</remote-repository>
<remote-repository>
<option name="id" value="Google" />
<option name="name" value="Google" />
<option name="url" value="https://dl.google.com/dl/android/maven2/" />
</remote-repository>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
/build
\ No newline at end of file
plugins {
id 'com.android.application'
}
android {
compileSdkVersion 30
buildToolsVersion "30.0.3"
defaultConfig {
applicationId "com.example.museum4u"
minSdkVersion 26
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.navigation:navigation-fragment:2.3.4'
implementation 'androidx.navigation:navigation-ui:2.3.4'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.2.0'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
implementation 'androidx.gridlayout:gridlayout:1.0.0'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}
\ No newline at end of file
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
\ No newline at end of file
package com.example.museum4u;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("com.example.museum4u", appContext.getPackageName());
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.museum4u">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Museum4U">
<activity android:name=".receiptDisplay"></activity>
<activity android:name=".payConfirm" />
<activity android:name=".giftDetails" />
<activity android:name=".giftActivity" />
<activity
android:name=".MainActivity2"
android:label="@string/title_activity_main2"
android:theme="@style/Theme.Museum4U.NoActionBar" />
<activity android:name=".cafeDetails" />
<activity android:name=".ticketDetails" />
<activity android:name=".museumData" />
<activity android:name=".WelcomscreenActivity" />
<activity android:name=".MainActivity" />
<activity android:name=".LoginpageActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
\ No newline at end of file
package com.example.museum4u;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
public class LoginpageActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.loginpage);
}
public void welcomePage(View v){
EditText userName = (EditText) findViewById(R.id.userNameLoginTxt);
EditText password = (EditText) findViewById(R.id.passwordLoginTxt);
myDBConnector objDBConnector = new myDBConnector(this,null,null,1);
if(objDBConnector.checkLogin(userName.getText().toString(),password.getText().toString())){
Intent intent = new Intent(this,WelcomscreenActivity.class);
intent.putExtra("userName", userName.getText().toString());
startActivity(intent);
}
else{
Toast.makeText(getApplicationContext(),getResources().getString(R.string.failed_login), Toast.LENGTH_LONG).show();
}
}
public void register(View v){
Intent registerIntent = new Intent(this,MainActivity.class);
startActivity(registerIntent);
}
}
\ No newline at end of file
package com.example.museum4u;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.icu.lang.UCharacter;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
public class MainActivity extends AppCompatActivity {
public static final int PASSWORD_LENGTH = 8;
public static final int USERNAME_LENGTH = 6;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
public boolean userNameCheck(String userNameRaw){
if (userNameRaw.length() < USERNAME_LENGTH) return false;
return true;
}
public boolean passwordCheck(String passwordRaw){
if (passwordRaw.length() < PASSWORD_LENGTH) return false;
int lowerLetterCount = 0;
int upperLetterCount = 0;
int numberCount = 0;
for (int i = 0; i < passwordRaw.length(); i++) {
char letter = passwordRaw.charAt(i);
if (Character.isDigit(letter)) numberCount++;
else if (Character.isLowerCase(letter)) upperLetterCount++;
else if (Character.isUpperCase(letter)) lowerLetterCount++;
else return false;
}
if (lowerLetterCount >= 1 & upperLetterCount >= 1 & numberCount >= 1) {
return true;
}
return false;
}
public void addNewUserFun(View view){
myDBConnector dbHandler = new myDBConnector(this,null,null,1);
EditText name = (EditText) findViewById(R.id.nameTxt);
EditText userName = (EditText) findViewById(R.id.userNameTxt);
EditText password = (EditText) findViewById(R.id.passwordTxt);
if (dbHandler.findUser(userName.getText().toString()) == null && userNameCheck(userName.getText().toString())){
if (passwordCheck(password.getText().toString())){
dbHandler.addNewUser(name.getText().toString(),
userName.getText().toString(),
password.getText().toString());
Toast.makeText(getApplicationContext(), getResources().getString(R.string.success_registration) + "\n" +
dbHandler.findUser(userName.getText().toString()),Toast.LENGTH_LONG).show();
} else {
//INSERT IF PASSWORD DOESNT MATCH GUIDLINES
password.setText("");
Toast.makeText(getApplicationContext(),getResources().getString(R.string.failed_password) + "\n" +
dbHandler.findUser(userName.getText().toString()),Toast.LENGTH_LONG).show();
}
} else {
userName.setText("");
password.setText("");
Toast.makeText(getApplicationContext(),getResources().getString(R.string.failed_username), Toast.LENGTH_LONG).show();
}
}
public void loginPageFun(View v){
Intent intent = new Intent(this, LoginpageActivity.class);
startActivity(intent);
}
}
\ No newline at end of file
package com.example.museum4u;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import java.util.ArrayList;
public class WelcomscreenActivity extends AppCompatActivity {
ListView listView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.welcomscreen);
String sessionUserName = getIntent().getStringExtra("userName");
listView=(ListView) findViewById(R.id.listview);
ArrayList<String> museumName = new ArrayList<>();
museumName.add(getResources().getString(R.string.museumName1) + "\n" + getResources().getString(R.string.museumLocation1) + "\n" + getResources().getString(R.string.currency) + getResources().getString(R.string.museumPrice10));
museumName.add(getResources().getString(R.string.museumName2) + "\n" + getResources().getString(R.string.museumLocation2) + "\n" + getResources().getString(R.string.currency) + getResources().getString(R.string.museumPrice10));
museumName.add(getResources().getString(R.string.museumName3) + "\n" + getResources().getString(R.string.museumLocation3) + "\n" + getResources().getString(R.string.currency) + getResources().getString(R.string.museumPrice10));
museumName.add(getResources().getString(R.string.museumName4) + "\n" + getResources().getString(R.string.museumLocation4) + "\n" + getResources().getString(R.string.currency) + getResources().getString(R.string.museumPrice10));
museumName.add(getResources().getString(R.string.museumName5) + "\n" + getResources().getString(R.string.museumLocation5) + "\n" + getResources().getString(R.string.currency) + getResources().getString(R.string.museumPrice10));
museumName.add(getResources().getString(R.string.museumName6) + "\n" + getResources().getString(R.string.museumLocation6) + "\n" + getResources().getString(R.string.currency) + getResources().getString(R.string.museumPrice5));
museumName.add(getResources().getString(R.string.museumName7) + "\n" + getResources().getString(R.string.museumLocation7) + "\n" + getResources().getString(R.string.currency) + getResources().getString(R.string.museumPrice5));
museumName.add(getResources().getString(R.string.museumName8) + "\n" + getResources().getString(R.string.museumLocation8) + "\n" + getResources().getString(R.string.currency) + getResources().getString(R.string.museumPrice5));
museumName.add(getResources().getString(R.string.museumName9) + "\n" + getResources().getString(R.string.museumLocation9) + "\n" + getResources().getString(R.string.currency) + getResources().getString(R.string.museumPrice5));
museumName.add(getResources().getString(R.string.museumName10) + "\n" + getResources().getString(R.string.museumLocation10) + "\n" + getResources().getString(R.string.currency) + getResources().getString(R.string.museumPrice5));
ArrayList<String> museumNamePrint = new ArrayList<>();
museumNamePrint.add(getResources().getString(R.string.museumName1));
museumNamePrint.add(getResources().getString(R.string.museumName2));
museumNamePrint.add(getResources().getString(R.string.museumName3));
museumNamePrint.add(getResources().getString(R.string.museumName4));
museumNamePrint.add(getResources().getString(R.string.museumName5));
museumNamePrint.add(getResources().getString(R.string.museumName6));
museumNamePrint.add(getResources().getString(R.string.museumName7));
museumNamePrint.add(getResources().getString(R.string.museumName8));
museumNamePrint.add(getResources().getString(R.string.museumName9));
museumNamePrint.add(getResources().getString(R.string.museumName10));
ArrayList<String> museumPrice = new ArrayList<>();
museumPrice.add(getResources().getString(R.string.museumPrice10));
museumPrice.add(getResources().getString(R.string.museumPrice10));
museumPrice.add(getResources().getString(R.string.museumPrice10));
museumPrice.add(getResources().getString(R.string.museumPrice10));
museumPrice.add(getResources().getString(R.string.museumPrice10));
museumPrice.add(getResources().getString(R.string.museumPrice5));
museumPrice.add(getResources().getString(R.string.museumPrice5));
museumPrice.add(getResources().getString(R.string.museumPrice5));
museumPrice.add(getResources().getString(R.string.museumPrice5));
museumPrice.add(getResources().getString(R.string.museumPrice5));
ArrayList<String> museumInfo = new ArrayList<>();
museumInfo.add(getResources().getString(R.string.museumInfo1));
museumInfo.add(getResources().getString(R.string.museumInfo2));
museumInfo.add(getResources().getString(R.string.museumInfo3));
museumInfo.add(getResources().getString(R.string.museumInfo4));
museumInfo.add(getResources().getString(R.string.museumInfo5));
museumInfo.add(getResources().getString(R.string.museumInfo6));
museumInfo.add(getResources().getString(R.string.museumInfo7));
museumInfo.add(getResources().getString(R.string.museumInfo8));
museumInfo.add(getResources().getString(R.string.museumInfo9));
museumInfo.add(getResources().getString(R.string.museumInfo10));
int[] museumImg = new int[]{
R.drawable.louvre,R.drawable.nationalmuseumchina,R.drawable.vatican,R.drawable.metmuseumart,R.drawable.britishmuseum,R.drawable.tatemodern,R.drawable.nationalgallery,R.drawable.nationalhistorymuseum,R.drawable.americanmuseumnaturalhistory,R.drawable.statehermitagemuseum
};
ArrayAdapter arrayAdapter=new ArrayAdapter(this, android.R.layout.simple_list_item_1,museumName);
listView.setAdapter(arrayAdapter);
listView.setOnItemClickListener(new AdapterView.OnItemClickListener(){
@Override
public void onItemClick(AdapterView<?> parent, View view, int i, long id) {
Intent listIntent = new Intent(getApplicationContext(),museumData.class);
listIntent.putExtra("price",museumPrice.get(i));
listIntent.putExtra("name", museumNamePrint.get(i));
listIntent.putExtra("info", museumInfo.get(i));
listIntent.putExtra("img", museumImg[i]);
startActivity(listIntent);
}
});
}
}
\ No newline at end of file
package com.example.museum4u;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
import java.util.ArrayList;
public class cafeDetails extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_cafe_details);
ArrayList<String> cafeQty = new ArrayList<>();
cafeQty.add("");
cafeQty.add("1");
cafeQty.add("2");
cafeQty.add("3");
cafeQty.add("4");
cafeQty.add("5");
cafeQty.add("6");
cafeQty.add("7");
cafeQty.add("8");
cafeQty.add("9");
cafeQty.add("10");
ArrayAdapter<CharSequence> adapter = new ArrayAdapter(this,android.R.layout.simple_spinner_item, cafeQty);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
Spinner teaSpinner = (Spinner) findViewById(R.id.teaSpinner);
teaSpinner.setAdapter(adapter);
Spinner waterSpinner = (Spinner) findViewById(R.id.waterSpinner);
waterSpinner.setAdapter(adapter);
Spinner saladSpinner = (Spinner) findViewById(R.id.saladSpinner);
saladSpinner.setAdapter(adapter);
Spinner sandwichSpinner = (Spinner) findViewById(R.id.sandwichSpinner);
sandwichSpinner.setAdapter(adapter);
Spinner flatbreadSpinner = (Spinner) findViewById(R.id.flatbreadSpinner);
flatbreadSpinner.setAdapter(adapter);
Spinner coffeeSpinner = (Spinner) findViewById(R.id.coffeeSpinner);
coffeeSpinner.setAdapter(adapter);
Spinner sweetrollSpinner = (Spinner) findViewById(R.id.sweetrollSpinner);
sweetrollSpinner.setAdapter(adapter);
}
public void giftProceed(View v){
Intent cafeIntent = new Intent(this,giftDetails.class);
Intent ticketIntent = getIntent();
String museumName = ticketIntent.getStringExtra("museumName");
String ticketDate = ticketIntent.getStringExtra("ticketDate");
String ticketTime = ticketIntent.getStringExtra("ticketTime");
String ticketPrice = ticketIntent.getStringExtra("ticketPrice");
Spinner teaSpinner = (Spinner) findViewById(R.id.teaSpinner);
Spinner waterSpinner = (Spinner) findViewById(R.id.waterSpinner);
Spinner saladSpinner = (Spinner) findViewById(R.id.saladSpinner);
Spinner sandwichSpinner = (Spinner) findViewById(R.id.sandwichSpinner);
Spinner flatbreadSpinner = (Spinner) findViewById(R.id.flatbreadSpinner);
Spinner coffeeSpinner = (Spinner) findViewById(R.id.coffeeSpinner);
Spinner sweetrollSpinner = (Spinner) findViewById(R.id.sweetrollSpinner);
String ticketQty = ticketIntent.getStringExtra("ticketQty");
cafeIntent.putExtra("ticketPrice",ticketPrice);
cafeIntent.putExtra("ticketQty",ticketQty);
cafeIntent.putExtra("museumName",museumName);
cafeIntent.putExtra("ticketDate",ticketDate);
cafeIntent.putExtra("ticketTime",ticketTime);
cafeIntent.putExtra("teaQty",teaSpinner.getSelectedItem().toString());
cafeIntent.putExtra("waterQty",waterSpinner.getSelectedItem().toString());
cafeIntent.putExtra("coffeeQty",coffeeSpinner.getSelectedItem().toString());
cafeIntent.putExtra("saladQty",saladSpinner.getSelectedItem().toString());
cafeIntent.putExtra("flatbreadQty",flatbreadSpinner.getSelectedItem().toString());
cafeIntent.putExtra("sandwichQty",sandwichSpinner.getSelectedItem().toString());
cafeIntent.putExtra("sweetrollQty",sweetrollSpinner.getSelectedItem().toString());
startActivity(cafeIntent);
}
public void backFunc(View v){
Intent back = new Intent(this,ticketDetails.class);
startActivity(back);
}
}
package com.example.museum4u;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
import java.util.ArrayList;
public class giftDetails extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_gift_details);
ArrayList<String> cafeQty = new ArrayList<>();
cafeQty.add("");
cafeQty.add("1");
cafeQty.add("2");
cafeQty.add("3");
cafeQty.add("4");
cafeQty.add("5");
cafeQty.add("6");
cafeQty.add("7");
cafeQty.add("8");
cafeQty.add("9");
cafeQty.add("10");
ArrayAdapter<CharSequence> adapter = new ArrayAdapter(this, android.R.layout.simple_spinner_item, cafeQty);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
Spinner shirtSpinner = (Spinner) findViewById(R.id.shirtSpinner);
shirtSpinner.setAdapter(adapter);
Spinner hatSpinner = (Spinner) findViewById(R.id.hatSpinner);
hatSpinner.setAdapter(adapter);
Spinner coasterSpinner = (Spinner) findViewById(R.id.coasterSpinner);
coasterSpinner.setAdapter(adapter);
Spinner bottleSpinner = (Spinner) findViewById(R.id.bottleSpinner);
bottleSpinner.setAdapter(adapter);
Spinner keychainSpinner = (Spinner) findViewById(R.id.keychainSpinner);
keychainSpinner.setAdapter(adapter);
Spinner snowglobeSpinner = (Spinner) findViewById(R.id.snowglobeSpinner);
snowglobeSpinner.setAdapter(adapter);
Spinner mugSpinner = (Spinner) findViewById(R.id.mugSpinner);
mugSpinner.setAdapter(adapter);
}
public void payProceed(View v) {
Intent giftIntent = new Intent(getApplicationContext(),payConfirm.class);
Intent ticketIntent = getIntent();
Intent basketIntent = getIntent();
Spinner shirtSpinner = (Spinner) findViewById(R.id.shirtSpinner);
Spinner hatSpinner = (Spinner) findViewById(R.id.hatSpinner);
Spinner coasterSpinner = (Spinner) findViewById(R.id.coasterSpinner);
Spinner bottleSpinner = (Spinner) findViewById(R.id.bottleSpinner);
Spinner keychainSpinner = (Spinner) findViewById(R.id.keychainSpinner);
Spinner snowglobeSpinner = (Spinner) findViewById(R.id.snowglobeSpinner);
Spinner mugSpinner = (Spinner) findViewById(R.id.mugSpinner);
String museumName = ticketIntent.getStringExtra("museumName");
String ticketQty = ticketIntent.getStringExtra("ticketQty");
String ticketTime = ticketIntent.getStringExtra("ticketTime");
String ticketDate = ticketIntent.getStringExtra("ticketDate");
String teaQty = ticketIntent.getStringExtra("teaQty");
String waterQty = ticketIntent.getStringExtra("waterQty");
String coffeeQty = ticketIntent.getStringExtra("coffeeQty");
String flatbreadQty = ticketIntent.getStringExtra("flatbreadQty");
String sandwichQty = ticketIntent.getStringExtra("sandwichQty");
String sweetrollQty = ticketIntent.getStringExtra("sweetrollQty");
String saladQty = ticketIntent.getStringExtra("saladQty");
String ticketPrice = ticketIntent.getStringExtra("ticketPrice");
giftIntent.putExtra("ticketPrice",ticketPrice);
giftIntent.putExtra("museumName",museumName);
giftIntent.putExtra("ticketQty",ticketQty);
giftIntent.putExtra("ticketTime",ticketTime);
giftIntent.putExtra("ticketDate",ticketDate);
giftIntent.putExtra("teaQty",teaQty);
giftIntent.putExtra("waterQty",waterQty);
giftIntent.putExtra("saladQty",saladQty);
giftIntent.putExtra("coffeeQty",coffeeQty);
giftIntent.putExtra("sandwichQty",sandwichQty);
giftIntent.putExtra("flatbreadQty",flatbreadQty);
giftIntent.putExtra("sweetrollQty",sweetrollQty);
giftIntent.putExtra("shirtQty",shirtSpinner.getSelectedItem().toString());
giftIntent.putExtra("hatQty",hatSpinner.getSelectedItem().toString());
giftIntent.putExtra("coasterQty",coasterSpinner.getSelectedItem().toString());
giftIntent.putExtra("bottleQty",bottleSpinner.getSelectedItem().toString());
giftIntent.putExtra("keychainQty",keychainSpinner.getSelectedItem().toString());
giftIntent.putExtra("snowglobeQty",snowglobeSpinner.getSelectedItem().toString());
giftIntent.putExtra("mugQty",mugSpinner.getSelectedItem().toString());
startActivity(giftIntent);
}
public void backFunc(View v){
Intent back = new Intent(this,cafeDetails.class);
startActivity(back);
}
}
\ No newline at end of file
package com.example.museum4u;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.Spinner;
import android.widget.TextView;
import java.util.ArrayList;
public class museumData extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_museum_data);
Intent intent = getIntent();
String sessionUserName = intent.getStringExtra("userName");
String museumName = intent.getStringExtra("name");
String museumInfo = intent.getStringExtra("info");
int museumImg = intent.getIntExtra("img",0);
TextView museumNamePrint = (TextView) findViewById(R.id.museumNameTxt);
TextView museumInfoPrint = (TextView) findViewById(R.id.museumInfoTxt);
ImageView museumImgPrint = (ImageView) findViewById(R.id.museumImg);
int[] museumImg2 = new int[]{
R.drawable.louvre,R.drawable.nationalmuseumchina,R.drawable.vatican,R.drawable.metmuseumart,R.drawable.britishmuseum,R.drawable.tatemodern,R.drawable.nationalgallery,R.drawable.nationalhistorymuseum,R.drawable.americanmuseumnaturalhistory,R.drawable.statehermitagemuseum
};
ArrayList<String> ticketNumber = new ArrayList<>();
ticketNumber.add("1");
ticketNumber.add("2");
ticketNumber.add("3");
ticketNumber.add("4");
ticketNumber.add("5");
ticketNumber.add("6");
ticketNumber.add("7");
ticketNumber.add("8");
ticketNumber.add("9");
ticketNumber.add("10");
museumNamePrint.setText(museumName);
museumInfoPrint.setText(museumInfo);
museumImgPrint.setImageResource(museumImg);
Spinner spinner = (Spinner) findViewById(R.id.spinner);
ArrayAdapter<CharSequence> adapter = new ArrayAdapter(this,android.R.layout.simple_spinner_item,ticketNumber);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner.setAdapter(adapter);
}
public void backFunc(View v){
Intent back = new Intent(this,WelcomscreenActivity.class);
startActivity(back);
}
public void confirmTicket(View v){
Intent intent = getIntent();
String museumName = intent.getStringExtra("name");
Spinner spinner = (Spinner) findViewById(R.id.spinner);
String ticketQty = spinner.getSelectedItem().toString();
String ticketPrice = intent.getStringExtra("price");
Intent basketIntent = new Intent(this,ticketDetails.class);
basketIntent.putExtra("ticketPrice",ticketPrice);
basketIntent.putExtra("ticketQty", ticketQty);
basketIntent.putExtra("museumName",museumName);
startActivity(basketIntent);
}
}
\ No newline at end of file
package com.example.museum4u;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class myDBConnector extends SQLiteOpenHelper {
private static final int DB_VERSION = 1;
private static final String DB_NAME = "Registration.db";
private static final String TABLE_Users = "Users";
private static final String COLUMN_ID = "UsersID";
private static final String COLUMN_Name = "Name";
private static final String COLUMN_UserName = "UserName";
private static final String COLUMN_Password = "Password";
public myDBConnector(Context context, String name, SQLiteDatabase.CursorFactory factory, int version){
super(context,DB_NAME,factory,DB_VERSION);
}
@Override
public void onCreate(SQLiteDatabase db){
String CREATE_table = "CREATE TABLE " + TABLE_Users + "(" + COLUMN_ID + " INTEGER PRIMARY KEY," + COLUMN_Name + " TEXT," + COLUMN_UserName + " TEXT," + COLUMN_Password + " INTEGER" + ")";
db.execSQL(CREATE_table);
}
@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion){
}
public void addNewUser(String name, String username, String password){
ContentValues values = new ContentValues();
values.put(COLUMN_Name,name);
values.put(COLUMN_UserName,username);
values.put(COLUMN_Password,password);
SQLiteDatabase db = this.getWritableDatabase();
db.insert(TABLE_Users,null,values);
db.close();
}
public boolean checkLogin(String username,String password){
boolean result = false;
String query = "Select * FROM " + TABLE_Users + " WHERE " + COLUMN_UserName + " = \"" + username + "\"";
SQLiteDatabase db = this.getWritableDatabase();
Cursor cursor = db.rawQuery(query, null);
if (cursor.moveToFirst()){
if (cursor.getString(3).equals(password)){
result = true;
}
} else { result = false; }
cursor.close();
db.close();
return result;
}
public String findUser(String username){
String s = null;
String query = "Select * FROM " + TABLE_Users + " WHERE " + COLUMN_UserName + " = \"" + username + "\"";
SQLiteDatabase db = this.getWritableDatabase();
Cursor cursor = db.rawQuery(query, null);
if (cursor.moveToFirst()){
s = Integer.parseInt(cursor.getString(0)) +
cursor.getString(1) +
cursor.getString(2) +
cursor.getString(3);
}
cursor.close();
db.close();
return s;
}
}
This diff is collapsed.
package com.example.museum4u;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import java.util.Random;
public class receiptDisplay extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_receipt_display);
Intent proceed = getIntent();
String cafeGiftText = proceed.getStringExtra("cafeGiftTxt");
String cafeGiftPrice = proceed.getStringExtra("cafeGiftPrice");
String changeTotal = proceed.getStringExtra("change");
String ticketDetailsTxt = proceed.getStringExtra("ticketDetails");
String ticketPriceTxt = proceed.getStringExtra("ticketPrice");
TextView ticketDetails = (TextView) findViewById(R.id.ticketDetailsTxt2);
TextView ticketPrice = (TextView) findViewById(R.id.ticketDetailsPrice2);
TextView cafeGiftTxt = (TextView) findViewById(R.id.cafeGiftTxt);
TextView cafeGiftPriceTxt = (TextView) findViewById(R.id.cafeGiftPrice);
TextView changeTxt = (TextView) findViewById(R.id.changeTxt);
ticketDetails.setText(ticketDetailsTxt);
ticketPrice.setText(ticketPriceTxt);
cafeGiftTxt.setText(cafeGiftText);
cafeGiftPriceTxt.setText(cafeGiftPrice);
changeTxt.setText(changeTotal);
}
public void finishFunc(View v){
TextView refNum = (TextView) findViewById(R.id.ticketNumTxt);
Random rnd = new Random();
int refNumGen = rnd.nextInt(999999);
refNum.setText("Your reference number is: "+refNumGen);
Toast.makeText(getApplicationContext(),"Please enjoy your trip!", Toast.LENGTH_LONG).show();
}
}
\ No newline at end of file
package com.example.museum4u;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.CalendarView;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.Spinner;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
public class ticketDetails extends AppCompatActivity {
public String finalDate ="";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_ticket_details);
ArrayList<String> ticketNumber = new ArrayList<>();
ticketNumber.add("9am-11am");
ticketNumber.add("11am-1pm");
ticketNumber.add("1pm-3pm");
ticketNumber.add("3pm-5pm");
Spinner spinner = (Spinner) findViewById(R.id.spinner2);
ArrayAdapter<CharSequence> adapter = new ArrayAdapter(this,android.R.layout.simple_spinner_item,ticketNumber);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner.setAdapter(adapter);
CalendarView date = (CalendarView) findViewById(R.id.calendarView);
date.setOnDateChangeListener(new CalendarView.OnDateChangeListener() {
private static final String TAG = "";
@Override
public void onSelectedDayChange(CalendarView view, int year, int month,
int dayOfMonth) {
String day1 = String.valueOf(dayOfMonth);
String month1 = String.valueOf(month);
String year1 = String.valueOf(year);
finalDate = String.valueOf(day1 + "/" + month1 + "/" + year1);
Log.d(TAG, "Date: "+finalDate);
}
});
}
public void backFunc(View v){
Intent back = new Intent(this,museumData.class);
startActivity(back);
}
public void cafeProceed(View v){
Intent ticketIntent = new Intent(this,cafeDetails.class);
ticketIntent.putExtra("ticketDate",finalDate);
Intent basketIntent = getIntent();
String ticketQty = basketIntent.getStringExtra("ticketQty");
String ticketPrice = basketIntent.getStringExtra("ticketPrice");
String museumName = basketIntent.getStringExtra("museumName");
Spinner spinner = (Spinner) findViewById(R.id.spinner2);
String ticketTime = spinner.getSelectedItem().toString();
ticketIntent.putExtra("ticketPrice",ticketPrice);
ticketIntent.putExtra("ticketTime", ticketTime);
ticketIntent.putExtra("ticketQty",ticketQty);
ticketIntent.putExtra("museumName",museumName);
startActivity(ticketIntent);
}
}
\ No newline at end of file
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z">
<aapt:attr name="android:fillColor">
<gradient
android:endX="85.84757"
android:endY="92.4963"
android:startX="42.9492"
android:startY="49.59793"
android:type="linear">
<item
android:color="#44000000"
android:offset="0.0" />
<item
android:color="#00000000"
android:offset="1.0" />
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#FFFFFF"
android:fillType="nonZero"
android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
</vector>
\ No newline at end of file
This diff is collapsed.
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillColor="#3DDC84"
android:pathData="M0,0h108v108h-108z" />
<path
android:fillColor="#00000000"
android:pathData="M9,0L9,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,0L19,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,0L29,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,0L39,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,0L49,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,0L59,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,0L69,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,0L79,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M89,0L89,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M99,0L99,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,9L108,9"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,19L108,19"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,29L108,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,39L108,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,49L108,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,59L108,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,69L108,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,79L108,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,89L108,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,99L108,99"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,29L89,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,39L89,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,49L89,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,59L89,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,69L89,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,79L89,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,19L29,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,19L39,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,19L49,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,19L59,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,19L69,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,19L79,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
</vector>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M12,12m-3.2,0a3.2,3.2 0,1 1,6.4 0a3.2,3.2 0,1 1,-6.4 0" />
<path
android:fillColor="#FF000000"
android:pathData="M9,2L7.17,4H4c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2V6c0,-1.1 -0.9,-2 -2,-2h-3.17L15,2H9zm3,15c-2.76,0 -5,-2.24 -5,-5s2.24,-5 5,-5 5,2.24 5,5 -2.24,5 -5,5z" />
</vector>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M22,16V4c0,-1.1 -0.9,-2 -2,-2H8c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2zm-11,-4l2.03,2.71L16,11l4,5H8l3,-4zM2,6v14c0,1.1 0.9,2 2,2h14v-2H4V6H2z" />
</vector>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M4,6H2v14c0,1.1 0.9,2 2,2h14v-2H4V6zm16,-4H8c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2V4c0,-1.1 -0.9,-2 -2,-2zm-8,12.5v-9l6,4.5 -6,4.5z" />
</vector>
This diff is collapsed.
This diff is collapsed.
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="135"
android:centerColor="#009688"
android:endColor="#00695C"
android:startColor="#4DB6AC"
android:type="linear" />
</shape>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<View
android:id="@+id/view3"
android:layout_width="417dp"
android:layout_height="51dp"
android:background="#7E57C2"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.0" />
<EditText
android:id="@+id/userNameTxt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="10"
android:hint="@string/userName_hint"
android:inputType="textPersonName"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.502"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.311" />
<EditText
android:id="@+id/nameTxt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="10"
android:hint="@string/name_hint"
android:inputType="textPersonName"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.502"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.236" />
<Button
android:id="@+id/button2"
android:layout_width="183dp"
android:layout_height="47dp"
android:onClick="loginPageFun"
android:text="@string/login_button"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.694" />
<EditText
android:id="@+id/editTextTextPassword3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="10"
android:hint="@string/retype_password_hint"
android:inputType="textPassword"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.497"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.476" />
<EditText
android:id="@+id/passwordTxt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="10"
android:hint="@string/password_hint"
android:inputType="textPassword"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.502"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.396" />
<Button
android:id="@+id/button"
android:layout_width="183dp"
android:layout_height="47dp"
android:onClick="addNewUserFun"
android:text="@string/register_button"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.59" />
<TextView
android:id="@+id/textView22"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/register_button"
android:textColor="#000000"
android:textSize="24sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.01" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".museumData">
<View
android:id="@+id/view7"
android:layout_width="417dp"
android:layout_height="51dp"
android:background="#7E57C2"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.0" />
<TextView
android:id="@+id/museumNameTxt"
android:layout_width="362dp"
android:layout_height="39dp"
android:textAlignment="center"
android:textColor="#000000"
android:textSize="14sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.01" />
<TextView
android:id="@+id/museumInfoTxt"
android:layout_width="362dp"
android:layout_height="176dp"
android:fontFamily="sans-serif-black"
android:textAlignment="center"
android:textColor="#000000"
android:textSize="14sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.489"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.709" />
<ImageView
android:id="@+id/museumImg"
android:layout_width="336dp"
android:layout_height="196dp"
android:layout_marginEnd="36dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.22"
app:srcCompat="@drawable/americanmuseumnaturalhistory" />
<Button
android:id="@+id/button5"
android:layout_width="145dp"
android:layout_height="64dp"
android:layout_marginBottom="16dp"
android:onClick="confirmTicket"
android:text="@string/purchase_tickets"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.939"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="1.0" />
<Spinner
android:id="@+id/spinner"
android:layout_width="118dp"
android:layout_height="45dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.392"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.963" />
<Button
android:id="@+id/button11"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="backFunc"
android:text="@string/back"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.049"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.967" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".payConfirm">
<TextView
android:id="@+id/textView23"
android:layout_width="100dp"
android:layout_height="27dp"
android:text="Ticket Details"
android:textAlignment="center"
android:textColor="#000000"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.498"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.106" />
<TextView
android:id="@+id/cafeDetailsTxt"
android:layout_width="174dp"
android:layout_height="126dp"
android:textAlignment="viewStart"
android:textColor="#000000"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.067"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.477" />
<TextView
android:id="@+id/ticketDetailsTxt"
android:layout_width="214dp"
android:layout_height="126dp"
android:textAlignment="viewStart"
android:textColor="#000000"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.081"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.181" />
<TextView
android:id="@+id/giftDetailsTxt"
android:layout_width="174dp"
android:layout_height="126dp"
android:textAlignment="viewStart"
android:textColor="#000000"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.067"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.77" />
<TextView
android:id="@+id/cafeDetailsPrice"
android:layout_width="174dp"
android:layout_height="126dp"
android:textAlignment="textEnd"
android:textColor="#000000"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.902"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.477" />
<TextView
android:id="@+id/ticketDetailsPrice"
android:layout_width="134dp"
android:layout_height="126dp"
android:textAlignment="textEnd"
android:textColor="#000000"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.916"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.181" />
<TextView
android:id="@+id/giftDetailsPrice"
android:layout_width="174dp"
android:layout_height="126dp"
android:textAlignment="textEnd"
android:textColor="#000000"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.932"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.77" />
<TextView
android:id="@+id/textView25"
android:layout_width="100dp"
android:layout_height="27dp"
android:text="Cafe Items"
android:textAlignment="center"
android:textColor="#000000"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.508"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.357" />
<TextView
android:id="@+id/textView26"
android:layout_width="100dp"
android:layout_height="27dp"
android:text="Gift Shop Items"
android:textAlignment="center"
android:textColor="#000000"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.488"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.612" />
<TextView
android:id="@+id/totalTxt"
android:layout_width="100dp"
android:layout_height="27dp"
android:textAlignment="center"
android:textColor="#000000"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.508"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.866" />
<View
android:id="@+id/view5"
android:layout_width="417dp"
android:layout_height="51dp"
android:background="#7E57C2"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.0" />
<TextView
android:id="@+id/textView24"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Payment"
android:textColor="#000000"
android:textSize="24sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.01" />
<EditText
android:id="@+id/editTextNumber"
android:layout_width="81dp"
android:layout_height="47dp"
android:ems="10"
android:inputType="number"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.215"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.951" />
<Button
android:id="@+id/button8"
android:layout_width="132dp"
android:layout_height="49dp"
android:onClick="payFunction"
android:text="Pay"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.874"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.954" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".receiptDisplay">
<TextView
android:id="@+id/cafeGiftTxt"
android:layout_width="176dp"
android:layout_height="225dp"
android:textAlignment="viewStart"
android:textColor="#000000"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.068"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.571" />
<TextView
android:id="@+id/textView27"
android:layout_width="100dp"
android:layout_height="27dp"
android:text="Ticket Details"
android:textAlignment="center"
android:textColor="#000000"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.498"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.106" />
<TextView
android:id="@+id/cafeGiftPrice"
android:layout_width="176dp"
android:layout_height="225dp"
android:textAlignment="textEnd"
android:textColor="#000000"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.931"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.571" />
<TextView
android:id="@+id/textView28"
android:layout_width="wrap_content"
android:layout_height="27dp"
android:text="Cafe and Souveneirs"
android:textAlignment="center"
android:textColor="#000000"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.356" />
<TextView
android:id="@+id/ticketNumTxt"
android:layout_width="212dp"
android:layout_height="51dp"
android:textAlignment="center"
android:textColor="#000000"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.884"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.951" />
<TextView
android:id="@+id/changeTxt"
android:layout_width="150dp"
android:layout_height="63dp"
android:textAlignment="center"
android:textColor="#000000"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.498"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.833" />
<TextView
android:id="@+id/ticketDetailsTxt2"
android:layout_width="214dp"
android:layout_height="126dp"
android:textAlignment="viewStart"
android:textColor="#000000"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.081"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.181" />
<TextView
android:id="@+id/ticketDetailsPrice2"
android:layout_width="134dp"
android:layout_height="126dp"
android:textAlignment="textEnd"
android:textColor="#000000"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.916"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.181" />
<View
android:id="@+id/view6"
android:layout_width="417dp"
android:layout_height="51dp"
android:background="#7E57C2"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.0" />
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Receipt"
android:textColor="#000000"
android:textSize="24sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.01" />
<Button
android:id="@+id/button9"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="finishFunc"
android:text="Finish"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.139"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.947" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ticketDetails">
<Button
android:id="@+id/button6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="cafeProceed"
android:text="@string/proceed"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.851"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.944" />
<Button
android:id="@+id/button10"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="backFunc"
android:text="@string/back"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.236"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.944" />
<CalendarView
android:id="@+id/calendarView"
android:layout_width="359dp"
android:layout_height="314dp"
android:selectedWeekBackgroundColor="#7E57C2"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.692"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.215" />
<View
android:id="@+id/view2"
android:layout_width="417dp"
android:layout_height="51dp"
android:background="#7E57C2"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.0" />
<TextView
android:id="@+id/textView21"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/ticketDetails"
android:textColor="#000000"
android:textSize="24sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.01" />
<Spinner
android:id="@+id/spinner2"
android:layout_width="198dp"
android:layout_height="28dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.497"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.731" />
<TextView
android:id="@+id/textView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/time_of_arrival"
android:textColor="#000000"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.669" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FFFFFF"
android:backgroundTint="#FFFFFF"
tools:context=".LoginpageActivity">
<View
android:id="@+id/view4"
android:layout_width="417dp"
android:layout_height="51dp"
android:background="#7E57C2"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.0" />
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/login_button"
android:textColor="#000000"
android:textSize="24sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.01" />
<EditText
android:id="@+id/passwordLoginTxt"
android:layout_width="380dp"
android:layout_height="56dp"
android:ems="10"
android:hint="@string/password_hint"
android:inputType="textPassword"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.506"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.312" />
<Button
android:id="@+id/button3"
android:layout_width="137dp"
android:layout_height="45dp"
android:onClick="register"
android:text="@string/register_button"
android:textSize="18sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.769" />
<Button
android:id="@+id/button4"
android:layout_width="207dp"
android:layout_height="45dp"
android:background="#FF0000"
android:onClick="welcomePage"
android:text="@string/login_button"
android:textSize="18sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.412" />
<EditText
android:id="@+id/userNameLoginTxt"
android:layout_width="380dp"
android:layout_height="56dp"
android:ems="10"
android:hint="@string/userName_hint"
android:inputType="textPersonName"
android:textColor="#000000"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.504"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.223" />
<TextView
android:id="@+id/textView7"
android:layout_width="280dp"
android:layout_height="29dp"
android:text="@string/not_register"
android:textAlignment="center"
android:textColor="#000000"
android:textSize="21sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.698" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".WelcomscreenActivity">
<ListView
android:id="@+id/listview"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Museum4U</string>
<string name="museumPrice5">6</string>
<string name="museumPrice10">12</string>
<string name="currency"></string>
<string name="shirtPrice">12</string>
<string name="bottlePrice">6</string>
<string name="hatPrice">6</string>
<string name="mugPrice">6</string>
<string name="keychainPrice">6</string>
<string name="snowglobePrice">6</string>
<string name="not_register">Noch nicht registriert? Klicke hier.</string>
<string name="success_registration">Erfolgreiche Registrierung mit den folgenden Details</string>
<string name="failed_password">Bitte geben Sie ein Passwort mit mindestens 8 Zeichen ein, das sowohl Buchstaben als auch Zahlen enthält</string>
<string name="failed_username">Dieser Benutzername existiert bereits oder ist nicht länger als 6 Zeichen</string>
<string name="failed_login">Fehlgeschlagene Anmeldung Falsche Angaben!</string>
<string name="password_hint">Passwort</string>
<string name="userName_hint">Nutzername</string>
<string name="retype_password_hint">Kennwort erneut eingeben</string>
<string name="login_button">Anmeldung</string>
<string name="register_button">Registrieren</string>
<string name="name_hint">Vollständiger Name</string>
<string name="title_activity_main2">Hauptaktivität</string>
<string name="ticketDetails">Ticketdetails</string>
<string name="museumName2">Nationalmuseum von China</string>
<string name="museumName3">Vatikanische Museen</string>
<string name="museumName4">Metropolitan Museum of Art</string>
<string name="museumName5">Britisches Museum</string>
<string name="museumName7">Nationalgallerie</string>
<string name="museumName8">Naturkundemuseum</string>
<string name="museumName9">Amerikanisches Museum für Naturgeschichte</string>
<string name="museumName10">Eremitage</string>
<string name="museumInfo1">Louvre, vollständig Louvre Museum oder Französisches Musée du Louvre, offizieller Name Großer Louvre oder Französischer Grand Louvre, Nationalmuseum und Kunstgalerie Frankreichs, untergebracht in einem Teil eines großen Palastes in Paris, der am rechten Ufer des 12. erbaut wurde Jahrhundertfestung von Philip Augustus. Es ist das meistbesuchte Kunstmuseum der Welt mit einer Sammlung, die Werke von alten Zivilisationen bis zur Mitte des 19. Jahrhunderts umfasst.</string>
<string name="museumInfo2">Nationalmuseum von China, Chinesisch (Pinyin) Zhongguo Guojia Bowuguan oder (Wade-Giles-Romanisierung) Chung-kuo Kuo-chia Po-wu-kuan, Museum in Peking, auf der Ostseite des Platzes des Himmlischen Friedens. Das Museum wurde 2003 durch den Zusammenschluss des Nationalen Museums für chinesische Geschichte und des Museums der chinesischen Revolution gegründet. Es ist das größte Museum in China und eines der größten Museen der Welt.</string>
<string name="museumInfo3">Vatikanische Museen und Galerien, Kunstsammlungen der Päpste seit Beginn des 15. Jahrhunderts, untergebracht in den päpstlichen Palästen und anderen Gebäuden des Vatikans. Das Pio-Clementino-Museum (Museo Pio-Clementino oder Musei di Scultura) wurde im 18. Jahrhundert von Papst Clemens XIV. Gegründet und von Papst Pius VI. Erweitert.</string>
<string name="museumInfo4">Das Metropolitan Museum of Art mit dem Namen Met, das größte und umfassendste Kunstmuseum in New York City und eines der bedeutendsten der Welt. Das Museum wurde 1870 eingemeindet und zwei Jahre später eröffnet. Der Gebäudekomplex an seinem heutigen Standort im Central Park wurde 1880 eröffnet. Das von Richard Morris Hunt entworfene Hauptgebäude zur Fifth Avenue wurde 1902 fertiggestellt und ab 2016 als „The Met Fifth Avenue“ bezeichnet.</string>
<string name="museumInfo5">British Museum in London, umfassendes Nationalmuseum mit besonders herausragenden Beständen in Archäologie und Ethnographie. Es befindet sich im Stadtteil Bloomsbury im Bezirk Camden. Das Museum wurde 1753 durch Gesetz des Parlaments gegründet und basierte ursprünglich auf drei Sammlungen: denen von Sir Hans Sloane; Robert Harley, 1. Earl of Oxford; und Sir Robert Cotton.</string>
<string name="museumInfo6">Tate ist eine Institution, die in einem Netzwerk von vier Kunstgalerien die nationale Sammlung britischer Kunst des Vereinigten Königreichs sowie internationale moderne und zeitgenössische Kunst beherbergt. Es ist keine Regierungsinstitution, aber sein Hauptsponsor ist das britische Ministerium für Digital, Kultur, Medien und Sport.</string>
<string name="museumInfo7">Die National Gallery wurde 1824 gegründet, als die britische Regierung eine Sammlung von 38 Gemälden aus dem Nachlass des Kaufmanns John Julius Angerstein (1735–1823) kaufte. Die Sammlung wurde erstmals am 10. Mai dieses Jahres in Angersteins Haus in der 100 Pall Mall ausgestellt, aber 1838 in ihren derzeitigen Räumlichkeiten wieder für die Öffentlichkeit zugänglich gemacht.</string>
<string name="museumInfo8">Natural History Museum, ehemals British Museum (Natural History), britisches Naturwissenschaftsmuseum, das aufgrund seiner herausragenden Sammlung von Exemplaren und seiner umfangreichen Bibliotheken nationale und internationale Zuständigkeiten für taxonomische und damit verbundene Forschung hat. Es befindet sich in der Nähe des Victoria and Albert Museums und des Science Museum in South Kensington, London.</string>
<string name="museumInfo9">American Museum of Natural History, 1869 in New York City gegründetes Institut. Es ist ein wichtiges Forschungs- und Bildungszentrum für Naturwissenschaften. Es war Vorreiter bei der Montage von Feldexpeditionen und bei der Erstellung von Dioramen und anderen lebensechten Exponaten, die natürliche Lebensräume sowie deren Pflanzen- und Tierleben zeigen. Die Sammlungen von Forschungsproben des Museums zählen mehr als 30 Millionen, und seine Sammlungen von Fossilien und Insekten gehören zu den größten der Welt.</string>
<string name="museumInfo10">Eremitage, in vollem Umfang die Staatliche Eremitage, Russisch Gosudarstvenny Ermitazh, Kunstmuseum in St. Petersburg, 1764 von Katharina der Großen als Hofmuseum gegründet. Es grenzte an den Winterpalast an und diente als private Galerie für die von der Kaiserin angehäufte Kunst. Unter Nikolaus I. wurde die Eremitage rekonstruiert (1840–52) und 1852 der Öffentlichkeit zugänglich gemacht.</string>
<string name="proceed">Vorgehen</string>
<string name="time_of_arrival">Wählen Sie eine Ankunftszeit:</string>
<string name="purchase_tickets">Tickets kaufen</string>
<string name="back">Zurück</string>
</resources>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Museum4U</string>
<string name="museumPrice5">6</string>
<string name="museumPrice10">12</string>
<string name="currency"></string>
<string name="shirtPrice">12</string>
<string name="bottlePrice">6</string>
<string name="mugPrice">6</string>
<string name="hatPrice">6</string>
<string name="keychainPrice">6</string>
<string name="snowglobePrice">6</string>
<string name="not_register">Todavía no estas registrado? Haga clic aquí.</string>
<string name="success_registration">Registro exitoso con los siguientes detalles</string>
<string name="failed_password">Ingrese una contraseña de al menos 8 caracteres, incluidas letras y números</string>
<string name="failed_username">Este nombre de usuario ya existe o no tiene más de 6 caracteres</string>
<string name="failed_login">Inicio de sesión fallido ¡Detalles incorrectos!</string>
<string name="password_hint">Contraseña</string>
<string name="userName_hint">Nombre de usuario</string>
<string name="retype_password_hint">Vuelva a escribir la contraseña</string>
<string name="login_button">Acceso</string>
<string name="register_button">Registrarse</string>
<string name="name_hint">Full Name</string>
<string name="title_activity_main2">Actividad principal</string>
<string name="ticketDetails">Detalles de la entrada</string>
<string name="museumName2">Museo Nacional de China</string>
<string name="museumName3">Museos Vaticanos</string>
<string name="museumName4">Museo Metropolitano de Arte</string>
<string name="museumName5">Museo Británico</string>
<string name="museumName7">galería Nacional</string>
<string name="museumName8">Museo de Historia Natural</string>
<string name="museumName9">Museo Americano de Historia Natural</string>
<string name="museumName10">Museo Estatal del Hermitage</string>
<string name="proceed">Continuar</string>
<string name="time_of_arrival">Seleccione una hora de llegada:</string>
<string name="purchase_tickets">Comprar entradas</string>
<string name="back">atrás</string>
<string name="museumInfo1">Louvre, en pleno Museo del Louvre o Musée du Louvre francés, nombre oficial Gran Louvre o Gran Louvre francés, museo nacional y galería de arte de Francia, ubicado en parte de un gran palacio en París que fue construido en el sitio de la margen derecha del siglo XII. - fortaleza del siglo de Felipe Augusto. Es el museo de arte más visitado del mundo, con una colección que abarca obras desde civilizaciones antiguas hasta mediados del siglo XIX.</string>
<string name="museumInfo2">Museo Nacional de China, chino (Pinyin) Zhongguo Guojia Bowuguan o (romanización de Wade-Giles) Chung-kuo Kuo-chia Po-wu-kuan, museo en Beijing, ubicado en el lado este de la Plaza de Tiananmen. El museo fue creado en 2003 por la fusión del Museo Nacional de Historia China y el Museo de la Revolución China. Es el museo más grande de China y uno de los museos más grandes del mundo.</string>
<string name="museumInfo3">Museos y Galerías del Vaticano, colecciones de arte de los papas desde principios del siglo XV, alojadas en los palacios papales y otros edificios del Vaticano. El Museo Pio-Clementino (Museo Pio-Clementino o Musei di Scultura) fue fundado en el siglo XVIII por el Papa Clemente XIV y ampliado por el Papa Pío VI.</string>
<string name="museumInfo4">Metropolitan Museum of Art, llamado Met, el museo de arte más grande y completo de la ciudad de Nueva York y uno de los más importantes del mundo. El museo se incorporó en 1870 y abrió dos años más tarde. El complejo de edificios en su ubicación actual en Central Park se inauguró en 1880. El edificio principal frente a la Quinta Avenida, diseñado por Richard Morris Hunt, se completó en 1902 y en 2016 se llamó \"The Met Fifth Avenue\".</string>
<string name="museumInfo5">British Museum, en Londres, museo nacional completo con fondos particularmente destacados en arqueología y etnografía. Está ubicado en el distrito de Bloomsbury del distrito de Camden. Establecido por ley del Parlamento en 1753, el museo se basó originalmente en tres colecciones: las de Sir Hans Sloane; Robert Harley, primer conde de Oxford; y Sir Robert Cotton.</string>
<string name="museumInfo6">Tate es una institución que alberga, en una red de cuatro galerías de arte, la colección nacional de arte británico del Reino Unido y el arte moderno y contemporáneo internacional. No es una institución gubernamental, pero su patrocinador principal es el Departamento de Digital, Cultura, Medios y Deporte del Reino Unido.</string>
<string name="museumInfo7">La Galería Nacional se fundó en 1824 cuando el gobierno británico compró una colección de 38 pinturas de la finca del comerciante John Julius Angerstein (1735–1823). La colección se exhibió por primera vez el 10 de mayo de ese año en la casa de Angerstein en 100 Pall Mall, pero en 1838 fue reabierta al público en sus instalaciones actuales.</string>
<string name="museumInfo8">Museo de Historia Natural, anteriormente Museo Británico (Historia Natural), museo británico de ciencias naturales que tiene responsabilidades nacionales e internacionales para la investigación taxonómica y asociada basada en su destacada colección de especímenes y sus extensas bibliotecas. Se encuentra cerca del Victoria and Albert Museum y del Science Museum en South Kensington, Londres.</string>
<string name="museumInfo9">Museo Americano de Historia Natural, instituto establecido en la ciudad de Nueva York en 1869. Es un importante centro de investigación y educación sobre las ciencias naturales. Fue pionera en el montaje de expediciones de campo y en la creación de dioramas y otras exhibiciones realistas que mostraban hábitats naturales y su vida vegetal y animal. Las colecciones de especímenes de investigación del museo ascienden a más de 30 millones, y sus colecciones de fósiles e insectos se encuentran entre las más grandes del mundo.</string>
<string name="museumInfo10">Hermitage, en su totalidad el Museo Estatal del Hermitage, Russian Gosudarstvenny Ermitazh, museo de arte en San Petersburgo fundado en 1764 por Catalina la Grande como museo de la corte. Contiguo al Palacio de Invierno y sirvió como una galería privada para el arte acumulado por la emperatriz. Bajo Nicolás I se reconstruyó el Hermitage (1840-1852) y se abrió al público en 1852.</string>
</resources>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Museum4U</string>
<string name="not_register">Pas encore inscrit? Cliquez ici.</string>
<string name="success_registration">Inscription réussie avec les détails suivants</string>
<string name="failed_password">Veuillez saisir un mot de passe d\'au moins 8 caractères, lettres et chiffres compris</string>
<string name="failed_username">Ce nom d\'utilisateur existe déjà ou ne dépasse pas 6 caractères</string>
<string name="failed_login">Échec de la connexion Détails incorrects!</string>
<string name="password_hint">Mot de passe</string>
<string name="userName_hint">Nom d\'utilisateur</string>
<string name="retype_password_hint">Retaper le mot de passe</string>
<string name="login_button">Connexion</string>
<string name="register_button">S\'inscrire</string>
<string name="name_hint">Nom et prénom</string>
<string name="title_activity_main2">Activité principale</string>
<string name="ticketDetails">Détails du billet</string>
<string name="museumPrice10">12</string>
<string name="museumPrice5">6</string>
<string name="museumName2">Musée national de Chine</string>
<string name="museumName3">Musées du Vatican</string>
<string name="museumName4">Musée d\'art métropolitain</string>
<string name="museumName5">Musée anglais</string>
<string name="museumName7">galerie nationale</string>
<string name="museumName8">Musée d\'histoire naturelle</string>
<string name="museumName9">Musée américain d\'histoire naturelle</string>
<string name="museumName10">Musée de l\'Ermitage</string>
<string name="museumInfo1">Louvre, en plein Musée du Louvre ou Musée du Louvre français, nom officiel Grand Louvre ou Grand Louvre français, musée national et galerie d\'art de France, logé dans une partie d\'un grand palais parisien qui fut construit sur le site rive droite du 12ème - forteresse du siècle de Philippe Auguste. C’est le musée d’art le plus visité au monde, avec une collection qui couvre des œuvres de civilisations anciennes au milieu du XIXe siècle.</string>
<string name="museumInfo2">Musée national de Chine, chinois (pinyin) Zhongguo Guojia Bowuguan ou (romanisation Wade-Giles) Chung-kuo Kuo-chia Po-wu-kuan, musée à Pékin, situé sur le côté est de la place Tiananmen. Le musée a été créé en 2003 par la fusion du Musée national d\'histoire chinoise et du Musée de la révolution chinoise. C\'est le plus grand musée de Chine et l\'un des plus grands musées du monde.</string>
<string name="museumInfo3">Musées et galeries du Vatican, collections d\'art des papes depuis le début du XVe siècle, logées dans les palais papaux et autres bâtiments du Vatican. Le musée Pio-Clementino (Museo Pio-Clementino ou Musei di Scultura) a été fondé au 18ème siècle par le pape Clément XIV et agrandi par le pape Pie VI.</string>
<string name="museumInfo4">Metropolitan Museum of Art, surnommé le Met, le musée d\'art le plus grand et le plus complet de New York et l\'un des plus importants au monde. Le musée a été incorporé en 1870 et ouvert deux ans plus tard. Le complexe de bâtiments à son emplacement actuel dans Central Park a ouvert en 1880. Le bâtiment principal faisant face à la Cinquième Avenue, conçu par Richard Morris Hunt, a été achevé en 1902 et à partir de 2016 a été appelé «The Met Fifth Avenue».</string>
<string name="museumInfo5">British Museum, à Londres, musée national complet avec des fonds particulièrement remarquables en archéologie et en ethnographie. Il est situé dans le quartier Bloomsbury de l\'arrondissement de Camden. Créé par loi du Parlement en 1753, le musée était à l\'origine basé sur trois collections: celles de Sir Hans Sloane; Robert Harley, 1er comte d\'Oxford; et Sir Robert Cotton.</string>
<string name="museumInfo6">La Tate est une institution qui abrite, dans un réseau de quatre galeries d\'art, la collection nationale d\'art britannique du Royaume-Uni et d\'art moderne et contemporain international. Ce n\'est pas une institution gouvernementale, mais son principal sponsor est le ministère britannique du numérique, de la culture, des médias et des sports.</string>
<string name="museumInfo7">La National Gallery a été fondée en 1824 lorsque le gouvernement britannique a acheté une collection de 38 peintures de la propriété du marchand John Julius Angerstein (1735–1823). La collection a été exposée pour la première fois le 10 mai de la même année dans la maison d’Angerstein au 100 Pall Mall, mais en 1838, elle a été rouverte au public dans ses locaux actuels.</string>
<string name="museumInfo8">Natural History Museum, anciennement British Museum (Natural History), musée britannique des sciences naturelles qui a des responsabilités nationales et internationales en matière de recherche taxinomique et associée sur la base de sa collection exceptionnelle de spécimens et de ses vastes bibliothèques. Il est situé près du Victoria and Albert Museum et du Science Museum à South Kensington, Londres.</string>
<string name="museumInfo9">Musée américain d\'histoire naturelle, institut établi à New York en 1869. C\'est un centre majeur de recherche et d\'enseignement sur les sciences naturelles. Il a été le pionnier dans le montage d\'expéditions sur le terrain et dans la création de dioramas et autres expositions réalistes montrant les habitats naturels et leur vie végétale et animale. Les collections de spécimens de recherche du musée sont au nombre de plus de 30 millions, et ses collections de fossiles et d’insectes sont parmi les plus importantes au monde.</string>
<string name="museumInfo10">Ermitage, dans son intégralité le Musée de l\'Ermitage, russe Gosudarstvenny Ermitazh, musée d\'art de Saint-Pétersbourg fondé en 1764 par Catherine la Grande comme musée de la cour. Il jouxte le Palais d\'Hiver et sert de galerie privée pour l\'art amassé par l\'impératrice. Sous Nicolas Ier, l\'Ermitage fut reconstruit (1840-1852), et il fut ouvert au public en 1852.</string>
<string name="proceed">Procéder</string>
<string name="time_of_arrival">Sélectionnez une heure d\'arrivée:</string>
<string name="purchase_tickets">Achat de billets</string>
<string name="back">Dos</string>
<string name="currency"></string>
<string name="shirtPrice">12</string>
<string name="bottlePrice">6</string>
<string name="snowglobePrice">6</string>
<string name="keychainPrice">6</string>
<string name="mugPrice">6</string>
<string name="hatPrice">6</string>
</resources>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Museum4U</string>
<string name="museumPrice5">6</string>
<string name="museumPrice10">12</string>
<string name="currency"></string>
<string name="shirtPrice">12</string>
<string name="bottlePrice">6</string>
<string name="snowglobePrice">6</string>
<string name="keychainPrice">6</string>
<string name="mugPrice">6</string>
<string name="hatPrice">6</string>
<string name="not_register">Non sei ancora registrato? Clicca qui.</string>
<string name="success_registration">Registrazione con successo con i seguenti dettagli</string>
<string name="failed_password">Inserisci una password di almeno 8 caratteri, comprese lettere e numeri</string>
<string name="failed_username">Questo nome utente esiste già o non supera i 6 caratteri</string>
<string name="failed_login">Accesso non riuscito Dettagli errati!</string>
<string name="password_hint">Parola d\'ordine</string>
<string name="userName_hint">Username</string>
<string name="retype_password_hint">Ripeti password</string>
<string name="login_button">Login</string>
<string name="register_button">Registrati</string>
<string name="name_hint">Full Name</string>
<string name="title_activity_main2">Attività principale</string>
<string name="ticketDetails">Dettagli del biglietto</string>
<string name="museumName2">Museo Nazionale della Cina</string>
<string name="museumName3">Musei Vaticani</string>
<string name="museumName4">Museo Metropolitano d\'Arte</string>
<string name="museumName5">Museo britannico</string>
<string name="museumName7">galleria Nazionale</string>
<string name="museumName8">Museo di Storia Naturale</string>
<string name="museumName9">Museo Americano di Storia Naturale</string>
<string name="museumName10">Museo statale dell\'Ermitage</string>
<string name="proceed">Procedere</string>
<string name="time_of_arrival">Seleziona un orario di arrivo:</string>
<string name="purchase_tickets">Acquista i biglietti</string>
<string name="back">Indietro</string>
<string name="museumInfo1">Louvre, in pieno Museo del Louvre o Musée du Louvre francese, nome ufficiale Great Louvre o French Grand Louvre, museo nazionale e galleria d\'arte di Francia, ospitato in una parte di un grande palazzo a Parigi che fu costruito sul sito della riva destra del XII -secolare fortezza di Filippo Augusto. È il museo d\'arte più visitato al mondo, con una collezione che spazia dalle antiche civiltà fino alla metà del XIX secolo.</string>
<string name="museumInfo2">Museo nazionale cinese, cinese (Pinyin) Zhongguo Guojia Bowuguan o (romanizzazione Wade-Giles) Chung-kuo Kuo-chia Po-wu-kuan, museo di Pechino, situato sul lato est di Piazza Tiananmen. Il museo è stato creato nel 2003 dalla fusione del Museo Nazionale di Storia Cinese e del Museo della Rivoluzione Cinese. È il più grande museo della Cina e uno dei più grandi musei del mondo.</string>
<string name="museumInfo3">Musei e Gallerie Vaticane, collezioni d\'arte dei papi dall\'inizio del XV secolo, ospitate nei palazzi papali e in altri edifici del Vaticano. Il Museo Pio-Clementino (Museo Pio-Clementino o Musei di Scultura) fu fondato nel XVIII secolo da papa Clemente XIV e ampliato da papa Pio VI.</string>
<string name="museumInfo4">Metropolitan Museum of Art, soprannominato Met, il più grande e completo museo d\'arte di New York e uno dei più importanti al mondo. Il museo è stato incorporato nel 1870 e aperto due anni dopo. Il complesso di edifici nella sua attuale posizione a Central Park è stato inaugurato nel 1880. L\'edificio principale di fronte alla Fifth Avenue, progettato da Richard Morris Hunt, è stato completato nel 1902 e dal 2016 è stato chiamato \"The Met Fifth Avenue\".</string>
<string name="museumInfo5">British Museum, a Londra, museo nazionale completo con partecipazioni particolarmente eccezionali in archeologia ed etnografia. Si trova nel distretto di Bloomsbury del distretto di Camden. Istituito per atto del Parlamento nel 1753, il museo era originariamente basato su tre collezioni: quelle di Sir Hans Sloane; Robert Harley, 1 ° conte di Oxford; e Sir Robert Cotton.</string>
<string name="museumInfo6">La Tate è un\'istituzione che ospita, in una rete di quattro gallerie d\'arte, la collezione nazionale di arte britannica del Regno Unito e arte moderna e contemporanea internazionale. Non è un\'istituzione governativa, ma il suo sponsor principale è il Dipartimento per il digitale, la cultura, i media e lo sport del Regno Unito.</string>
<string name="museumInfo7">La National Gallery fu fondata nel 1824 quando il governo britannico acquistò una collezione di 38 dipinti dalla tenuta del mercante John Julius Angerstein (1735-1823). La collezione fu esposta per la prima volta il 10 maggio dello stesso anno nella casa di Angerstein al 100 Pall Mall, ma nel 1838 fu riaperta al pubblico nella sua sede attuale.</string>
<string name="museumInfo8">Natural History Museum, ex British Museum (Natural History), museo di scienze naturali britannico che ha responsabilità nazionali e internazionali per la ricerca tassonomica e associata basata sulla sua eccezionale collezione di esemplari e sulle sue vaste biblioteche. Si trova vicino al Victoria and Albert Museum e al Science Museum di South Kensington, Londra.</string>
<string name="museumInfo9">Museo Americano di Storia Naturale, istituto fondato a New York City nel 1869. È un importante centro di ricerca ed educazione sulle scienze naturali. Ha aperto la strada al montaggio di spedizioni sul campo e alla creazione di diorami e altre mostre realistiche che mostrano gli habitat naturali e la loro vita vegetale e animale. Le collezioni di campioni di ricerca del museo ammontano a oltre 30 milioni e le sue collezioni di fossili e insetti sono tra le più grandi al mondo.</string>
<string name="museumInfo10">Hermitage, in pieno il Museo statale dell\'Ermitage, il russo Gosudarstvenny Ermitazh, museo d\'arte di San Pietroburgo fondato nel 1764 da Caterina la Grande come museo di corte. Era adiacente al Palazzo d\'Inverno e fungeva da galleria privata per l\'arte accumulata dall\'imperatrice. Sotto Nicola I l\'Eremo fu ricostruito (1840–52) e fu aperto al pubblico nel 1852.</string>
</resources>
\ No newline at end of file
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.Museum4U" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/purple_200</item>
<item name="colorPrimaryVariant">@color/purple_700</item>
<item name="colorOnPrimary">@color/black</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">@color/teal_200</item>
<item name="colorSecondaryVariant">@color/teal_200</item>
<item name="colorOnSecondary">@color/black</item>
<!-- Status bar color. -->
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
<!-- Customize your theme here. -->
</style>
</resources>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="purple_200">#FFBB86FC</color>
<color name="purple_500">#FF6200EE</color>
<color name="purple_700">#FF3700B3</color>
<color name="teal_200">#FF03DAC5</color>
<color name="teal_700">#FF018786</color>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
</resources>
\ No newline at end of file
<resources>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>
<dimen name="nav_header_vertical_spacing">8dp</dimen>
<dimen name="nav_header_height">176dp</dimen>
<dimen name="fab_margin">16dp</dimen>
</resources>
\ No newline at end of file
<resources>
<string name="app_name">Museum4U</string>
<string name="not_register">Not registered yet? Click here.</string>
<string name="success_registration">Successfully registration with the following details</string>
<string name="failed_password">Please enter a password at least 8 characters including both letters and numbers</string>
<string name="failed_username">This username already exists or is not longer than 6 characters</string>
<string name="failed_login">Unsuccessful login Incorrect details!</string>
<string name="password_hint">Password</string>
<string name="userName_hint">Username</string>
<string name="retype_password_hint">Retype Password</string>
<string name="login_button">Login</string>
<string name="register_button">Register</string>
<string name="name_hint">Full Name</string>
<string name="title_activity_main2">MainActivity</string>
<string name="ticketDetails">Ticket Details</string>
<string name="giftShop">Gift Shop</string>
<string name="museumCafe">Museum Cafe</string>
<string name="print1">Museum - </string>
<string name="print2"> x</string>
<string name="print3">Date - </string>
<string name="print4">Timeslot - </string>
<string name="print5">You owe: </string>
<string name="museumLocation1" translatable="false">Paris - France</string>
<string name="museumLocation2" translatable="false">Bejing - China</string>
<string name="museumLocation3" translatable="false">Vatican City - Vatican</string>
<string name="museumLocation4" translatable="false">New York - USA</string>
<string name="museumLocation5" translatable="false">London - UK</string>
<string name="museumLocation6" translatable="false">London - UK</string>
<string name="museumLocation7" translatable="false">London - UK</string>
<string name="museumLocation8" translatable="false">London - UK</string>
<string name="museumLocation9" translatable="false">New York - USA</string>
<string name="museumLocation10" translatable="false">St Petersburg - Russia</string>
<string name="museumPrice10">10</string>
<string name="museumPrice5">5</string>
<string name="museumName1" translatable="false">Louvre</string>
<string name="museumName2">National Museum of China</string>
<string name="museumName3">Vatican Museums</string>
<string name="museumName4">Metropolitan Museum of Art</string>
<string name="museumName5">British Museum</string>
<string name="museumName6" translatable="false">Tate Modern</string>
<string name="museumName7">National Gallery</string>
<string name="museumName8">Natural History Museum</string>
<string name="museumName9">American Museum of Natural History</string>
<string name="museumName10">State Hermitage Museum</string>
<string name="museumInfo1">Louvre, in full Louvre Museum or French Musée du Louvre, official name Great Louvre or French Grand Louvre, national museum and art gallery of France, housed in part of a large palace in Paris that was built on the right-bank site of the 12th-century fortress of Philip Augustus. It is the world’s most-visited art museum, with a collection that spans work from ancient civilizations to the mid-19th century.</string>
<string name="museumInfo2">National Museum of China, Chinese (Pinyin) Zhongguo Guojia Bowuguan or (Wade-Giles romanization) Chung-kuo Kuo-chia Po-wu-kuan, museum in Beijing, located on the east side of Tiananmen Square. The museum was created in 2003 by the merger of the National Museum of Chinese History and the Museum of the Chinese Revolution. It is the largest museum in China and one of the largest museums in the world.</string>
<string name="museumInfo3">Vatican Museums and Galleries, art collections of the popes since the beginning of the 15th century, housed in the papal palaces and other buildings in the Vatican. The Pio-Clementino Museum (Museo Pio-Clementino or Musei di Scultura) was founded in the 18th century by Pope Clement XIV and enlarged by Pope Pius VI. </string>
<string name="museumInfo4">Metropolitan Museum of Art, byname the Met, the largest and most-comprehensive art museum in New York City and one of the foremost in the world. The museum was incorporated in 1870 and opened two years later. The complex of buildings at its present location in Central Park opened in 1880. The main building facing Fifth Avenue, designed by Richard Morris Hunt, was completed in 1902 and as of 2016 was called “The Met Fifth Avenue.”</string>
<string name="museumInfo5">British Museum, in London, comprehensive national museum with particularly outstanding holdings in archaeology and ethnography. It is located in the Bloomsbury district of the borough of Camden.Established by act of Parliament in 1753, the museum was originally based on three collections: those of Sir Hans Sloane; Robert Harley, 1st earl of Oxford; and Sir Robert Cotton. </string>
<string name="museumInfo6">Tate is an institution that houses, in a network of four art galleries, the United Kingdoms national collection of British art, and international modern and contemporary art. It is not a government institution, but its main sponsor is the UK Department for Digital, Culture, Media and Sport.</string>
<string name="museumInfo7">The National Gallery was founded in 1824 when the British government bought a collection of 38 paintings from the estate of the merchant John Julius Angerstein (1735–1823). The collection was first exhibited on May 10 of that year in Angerstein’s house at 100 Pall Mall, but in 1838 it was reopened to the public in its current premises.</string>
<string name="museumInfo8">Natural History Museum, formerly British Museum (Natural History), British natural science museum that has national and international responsibilities for taxonomic and associated research based on its outstanding collection of specimens and its extensive libraries. It is located near the Victoria and Albert Museum and the Science Museum in South Kensington, London.</string>
<string name="museumInfo9">American Museum of Natural History, institute established in New York City in 1869. It is a major centre of research and education on the natural sciences. It pioneered in mounting field expeditions and in creating dioramas and other lifelike exhibits showing natural habitats and their plant and animal life. The museum’s collections of research specimens number more than 30 million, and its collections of fossils and of insects are among the largest in the world.</string>
<string name="museumInfo10">Hermitage, in full the State Hermitage Museum, Russian Gosudarstvenny Ermitazh, art museum in St. Petersburg founded in 1764 by Catherine the Great as a court museum. It adjoined the Winter Palace and served as a private gallery for the art amassed by the empress. Under Nicholas I the Hermitage was reconstructed (1840–52), and it was opened to the public in 1852.</string>
<string name="giftName1">Shirt</string>
<string name="giftName2">Hat</string>
<string name="giftName3">Snow Globe</string>
<string name="giftName4">Keychain</string>
<string name="giftName5">Bottle</string>
<string name="giftName6">Mug</string>
<string name="giftName7">Coaster</string>
<string name="cafeName1">Tea</string>
<string name="cafeName2">Water</string>
<string name="cafeName3">Coffee</string>
<string name="cafeName4">Flatbread</string>
<string name="cafeName5">Sandwich</string>
<string name="cafeName6">Sweet Roll</string>
<string name="cafeName7">Salad</string>
<string name="proceed">Proceed</string>
<string name="time_of_arrival">Select a time of arrival:</string>
<string name="purchase_tickets">Purchase Tickets</string>
<string name="back">Back</string>
<string name="currency">£</string>
<string name="shirtPrice">10</string>
<string name="bottlePrice">5</string>
<string name="snowglobePrice">5</string>
<string name="keychainPrice">5</string>
<string name="mugPrice">5</string>
<string name="hatPrice">5</string>
<string name="coasterPrice" translatable="false">2</string>
<string name="teaPrice" translatable="false">1</string>
<string name="coffeePrice" translatable="false">2</string>
<string name="waterPrice" translatable="false">1</string>
<string name="saladPrice" translatable="false">2</string>
<string name="sandwichPrice" translatable="false">2</string>
<string name="flatbreadPrice" translatable="false">2</string>
<string name="sweetrollPrice" translatable="false">2</string>
</resources>
\ No newline at end of file
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.Museum4U" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/purple_500</item>
<item name="colorPrimaryVariant">@color/purple_700</item>
<item name="colorOnPrimary">@color/white</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">@color/teal_200</item>
<item name="colorSecondaryVariant">@color/teal_700</item>
<item name="colorOnSecondary">@color/black</item>
<!-- Status bar color. -->
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
<!-- Customize your theme here. -->
</style>
<style name="Theme.Museum4U.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
<style name="Theme.Museum4U.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="Theme.Museum4U.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
</resources>
\ No newline at end of file
package com.example.museum4u;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() {
assertEquals(4, 2 + 2);
}
}
\ No newline at end of file
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:4.1.2"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked"
}
}
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
\ No newline at end of file
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app"s APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
\ No newline at end of file
#Mon May 03 17:49:19 BST 2021
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
#!/usr/bin/env sh
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
warn () {
echo "$*"
}
die () {
echo
echo "$*"
echo
exit 1
}
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi
# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi
# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=$(save "$@")
# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
fi
exec "$JAVACMD" "$@"
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:init
@rem Get command-line arguments, handling Windows variants
if not "%OS%" == "Windows_NT" goto win9xME_args
:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2
:win9xME_args_slurp
if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%*
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
include ':app'
rootProject.name = "Museum4U"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment