Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@
android:supportsRtl="true"
android:theme="@style/Theme.SyncVision"
tools:targetApi="31">
<activity
android:name=".StartActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".SignupActivity"
android:exported="false" />
<activity
android:name=".LoginActivity"
android:exported="false" />

</application>

</manifest>
73 changes: 73 additions & 0 deletions app/src/main/java/com/example/syncvision/LoginActivity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
package com.example.syncvision;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;


public class LoginActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
EdgeToEdge.enable(this);
setContentView(R.layout.activity_login);
Log.i("Status","onCreate");

TextView textView=findViewById(R.id.register_link);

textView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Toast.makeText(LoginActivity.this, "Button Clicked", Toast.LENGTH_SHORT).show();
Intent intent = new Intent(LoginActivity.this, SignupActivity.class);
startActivity(intent);

}
});

}

@Override
protected void onStart() {
super.onStart();
Log.i("Status", "onStart");
}

@Override
protected void onRestart() {
super.onRestart();
Log.i("Status", "onRestart");
}

@Override
protected void onResume() {
super.onResume();
Log.i("Status", "onResume");
}

@Override
protected void onPause() {
super.onPause();
Log.i("Status", "onPause");
}

@Override
protected void onStop() {
super.onStop();
Log.i("Status", "onStop");

}

@Override
protected void onDestroy() {
super.onDestroy();
Log.i("Status", "onDestroy");
}
}
72 changes: 72 additions & 0 deletions app/src/main/java/com/example/syncvision/SignupActivity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
package com.example.syncvision;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;

public class SignupActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
EdgeToEdge.enable(this);
setContentView(R.layout.activity_signup);
Log.i("Status","onCreate");

TextView textView=findViewById(R.id.Button2);

textView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Toast.makeText(SignupActivity.this, "Button Clicked", Toast.LENGTH_SHORT).show();
Intent intent = new Intent(SignupActivity.this, LoginActivity.class);
startActivity(intent);

}
});

}

@Override
protected void onStart() {
super.onStart();
Log.i("Status", "onStart");
}

@Override
protected void onRestart() {
super.onRestart();
Log.i("Status", "onRestart");
}

@Override
protected void onResume() {
super.onResume();
Log.i("Status", "onResume");
}

@Override
protected void onPause() {
super.onPause();
Log.i("Status", "onPause");
}

@Override
protected void onStop() {
super.onStop();
Log.i("Status", "onStop");

}

@Override
protected void onDestroy() {
super.onDestroy();
Log.i("Status", "onDestroy");
}
}
99 changes: 99 additions & 0 deletions app/src/main/java/com/example/syncvision/StartActivity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
package com.example.syncvision;

import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.Switch;
import android.widget.Toast;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.app.AppCompatDelegate;

public class StartActivity extends AppCompatActivity {

private SharedPreferences.Editor editor;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
EdgeToEdge.enable(this);
setContentView(R.layout.activity_start);
Log.i("Status","onCreate");

SharedPreferences sharedPreferences = getSharedPreferences("settings", MODE_PRIVATE);
editor = sharedPreferences.edit();

// Check saved theme mode
boolean isNightMode = sharedPreferences.getBoolean("NightMode", false);
if (isNightMode) {
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
} else {
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
}

Switch switchTheme = findViewById(R.id.switch1);
switchTheme.setChecked(isNightMode);

switchTheme.setOnCheckedChangeListener((buttonView, isChecked) -> {
if (isChecked) {
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
editor.putBoolean("NightMode", true);
} else {
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
editor.putBoolean("NightMode", false);
}
editor.apply();
});

Button button = findViewById(R.id.Button);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Toast.makeText(StartActivity.this, "Button Clicked", Toast.LENGTH_SHORT).show();
Intent intent = new Intent(StartActivity.this, LoginActivity.class);
startActivity(intent);
}
});
}

@Override
protected void onStart() {
super.onStart();
Log.i("Status", "onStart");
}

@Override
protected void onRestart() {
super.onRestart();
Log.i("Status", "onRestart");
}

@Override
protected void onResume() {
super.onResume();
Log.i("Status", "onResume");
}

@Override
protected void onPause() {
super.onPause();
Log.i("Status", "onPause");
}

@Override
protected void onStop() {
super.onStop();
Log.i("Status", "onStop");

}

@Override
protected void onDestroy() {
super.onDestroy();
Log.i("Status", "onDestroy");
}
}
5 changes: 5 additions & 0 deletions app/src/main/res/drawable/baseline_lock.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:tint="#000000" android:viewportHeight="24" android:viewportWidth="24" android:width="24dp">

<path android:fillColor="@android:color/white" android:pathData="M18,8h-1L17,6c0,-2.76 -2.24,-5 -5,-5S7,3.24 7,6v2L6,8c-1.1,0 -2,0.9 -2,2v10c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2L20,10c0,-1.1 -0.9,-2 -2,-2zM12,17c-1.1,0 -2,-0.9 -2,-2s0.9,-2 2,-2 2,0.9 2,2 -0.9,2 -2,2zM15.1,8L8.9,8L8.9,6c0,-1.71 1.39,-3.1 3.1,-3.1 1.71,0 3.1,1.39 3.1,3.1v2z"/>

</vector>
5 changes: 5 additions & 0 deletions app/src/main/res/drawable/baseline_person.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:tint="#000000" android:viewportHeight="24" android:viewportWidth="24" android:width="24dp">

<path android:fillColor="@android:color/white" android:pathData="M12,12c2.21,0 4,-1.79 4,-4s-1.79,-4 -4,-4 -4,1.79 -4,4 1.79,4 4,4zM12,14c-2.67,0 -8,1.34 -8,4v2h16v-2c0,-2.66 -5.33,-4 -8,-4z"/>

</vector>
5 changes: 5 additions & 0 deletions app/src/main/res/drawable/baseline_person_add_alt_24.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:tint="#000000" android:viewportHeight="24" android:viewportWidth="24" android:width="24dp">

<path android:fillColor="@android:color/white" android:pathData="M13,8c0,-2.21 -1.79,-4 -4,-4S5,5.79 5,8s1.79,4 4,4S13,10.21 13,8zM11,8c0,1.1 -0.9,2 -2,2S7,9.1 7,8s0.9,-2 2,-2S11,6.9 11,8zM1,18v2h16v-2c0,-2.66 -5.33,-4 -8,-4S1,15.34 1,18zM3,18c0.2,-0.71 3.3,-2 6,-2c2.69,0 5.78,1.28 6,2H3zM20,15v-3h3v-2h-3V7h-2v3h-3v2h3v3H20z"/>

</vector>
Binary file added app/src/main/res/drawable/register.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/font/montserrat.ttf
Binary file not shown.
Binary file added app/src/main/res/font/montserrat_bold.ttf
Binary file not shown.
Binary file added app/src/main/res/font/montserrat_extra_bold.ttf
Binary file not shown.
Binary file added app/src/main/res/font/montserrat_extra_light.ttf
Binary file not shown.
Binary file added app/src/main/res/font/montserrat_italic.ttf
Binary file not shown.
Binary file added app/src/main/res/font/montserrat_light.ttf
Binary file not shown.
Binary file added app/src/main/res/font/montserrat_medium.ttf
Binary file not shown.
Binary file added app/src/main/res/font/montserrat_regular.ttf
Binary file not shown.
Binary file added app/src/main/res/font/montserrat_semi_bold.ttf
Binary file not shown.
Binary file added app/src/main/res/font/montserrat_thin.ttf
Binary file not shown.
Loading