Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
BupalJr committed Feb 8, 2021
0 parents commit 92fd5e1
Show file tree
Hide file tree
Showing 155 changed files with 6,451 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*.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
3 changes: 3 additions & 0 deletions .idea/.gitignore

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

1 change: 1 addition & 0 deletions .idea/.name

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

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

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

7 changes: 7 additions & 0 deletions .idea/dictionaries/bupal.xml

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

22 changes: 22 additions & 0 deletions .idea/gradle.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/inspectionProfiles/Project_Default.xml

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

25 changes: 25 additions & 0 deletions .idea/jarRepositories.xml

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

10 changes: 10 additions & 0 deletions .idea/markdown-navigator-enh.xml

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

62 changes: 62 additions & 0 deletions .idea/markdown-navigator.xml

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

9 changes: 9 additions & 0 deletions .idea/misc.xml

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

1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
52 changes: 52 additions & 0 deletions app/ChatsActivity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
package bupaljr.com.bottomnavigationdrawer;

import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;

import com.google.android.material.bottomnavigation.BottomNavigationView;

public class ChatsActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_chats);

// Initialize variable
BottomNavigationView bottomNavigationView = findViewById(R.id.bottom_navigation);

// Set Home Selected
bottomNavigationView.setSelectedItemId(R.id.home);

//Perform ItemSelectedListener
bottomNavigationView.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() {
@Override
public boolean onNavigationItemSelected(@NonNull MenuItem item) {
switch (item.getItemId()) {
case R.id.search:
startActivity(new Intent(getApplicationContext()
, MainActivity.class));
overridePendingTransition(0, 0);
return true;
case R.id.jobs:
startActivity(new Intent(getApplicationContext()
, JobsActivity.class));
overridePendingTransition(0, 0);
return true;
case R.id.chats:
return true;
case R.id.account:
startActivity(new Intent(getApplicationContext()
, ProfileActivity.class));
overridePendingTransition(0, 0);
return true;
}
return false;
}
});
}
}
52 changes: 52 additions & 0 deletions app/JobsActivity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
package bupaljr.com.bottomnavigationdrawer;

import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;

import com.google.android.material.bottomnavigation.BottomNavigationView;

public class JobsActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_jobs);

// Initialize variable
BottomNavigationView bottomNavigationView = findViewById(R.id.bottom_navigation);

// Set Home Selected
bottomNavigationView.setSelectedItemId(R.id.home);

//Perform ItemSelectedListener
bottomNavigationView.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() {
@Override
public boolean onNavigationItemSelected(@NonNull MenuItem item) {
switch (item.getItemId()) {
case R.id.search:
startActivity(new Intent(getApplicationContext()
, MainActivity.class));
overridePendingTransition(0, 0);
return true;
case R.id.jobs:
return true;
case R.id.chats:
startActivity(new Intent(getApplicationContext()
, ChatsActivity.class));
overridePendingTransition(0, 0);
return true;
case R.id.account:
startActivity(new Intent(getApplicationContext()
, ProfileActivity.class));
overridePendingTransition(0, 0);
return true;
}
return false;
}
});
}
}
52 changes: 52 additions & 0 deletions app/ProfileActivity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
package bupaljr.com.bottomnavigationdrawer;

import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;

import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;

import com.google.android.material.bottomnavigation.BottomNavigationView;

public class ProfileActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_profile);

// Initialize variable
BottomNavigationView bottomNavigationView = findViewById(R.id.bottom_navigation);

// Set Home Selected
bottomNavigationView.setSelectedItemId(R.id.home);

//Perform ItemSelectedListener
bottomNavigationView.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() {
@Override
public boolean onNavigationItemSelected(@NonNull MenuItem item) {
switch (item.getItemId()) {
case R.id.search:
startActivity(new Intent(getApplicationContext()
, MainActivity.class));
overridePendingTransition(0, 0);
return true;
case R.id.jobs:
startActivity(new Intent(getApplicationContext()
, JobsActivity.class));
overridePendingTransition(0, 0);
return true;
case R.id.chats:
startActivity(new Intent(getApplicationContext()
, ChatsActivity.class));
overridePendingTransition(0, 0);
return true;
case R.id.account:
return true;
}
return false;
}
});
}
}
28 changes: 28 additions & 0 deletions app/activity_about_us.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?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=".AboutUsActivity">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="About"
android:textSize="50sp"
android:textStyle="bold"
android:layout_centerInParent="true"/>

<com.google.android.material.bottomnavigation.BottomNavigationView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/bottom_navigation"
app:itemBackground="@color/PurpleFik_1"
app:itemTextColor="@drawable/selector"
app:itemIconTint="@drawable/selector"
app:menu="@menu/menu_navigation"
android:layout_alignParentBottom="true"/>

</RelativeLayout>
Loading

0 comments on commit 92fd5e1

Please sign in to comment.