Skip to content

Commit

Permalink
Added UI into the handyman
Browse files Browse the repository at this point in the history
  • Loading branch information
BupalJr committed Feb 11, 2021
1 parent ac1a7c5 commit 930d5f4
Show file tree
Hide file tree
Showing 6 changed files with 207 additions and 314 deletions.
27 changes: 10 additions & 17 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@
android:roundIcon="@mipmap/ic_launcher_fikzar_round"
android:supportsRtl="true"
android:theme="@style/Theme.Fikzar">
<activity android:name=".handyman.HandymanSettings" />
<activity android:name=".SplashScreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<activity android:name=".SplashScreen" />

<activity android:name=".HandymanProfile" />


<!-- Customer Activities-->
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".HandymanProfile" /> <!-- Customer Activities -->
<activity android:name=".customer.MainActivity" />
<activity android:name=".customer.RegisterUserActivity" />
<activity android:name=".customer.ForgotPassword" />
Expand All @@ -27,20 +29,11 @@
<activity android:name=".customer.AccountActivity" />
<activity android:name=".customer.UserProfileActivity" />
<activity android:name=".customer.SettingsActivity" />
<activity android:name=".customer.AboutUsActivity" />

<!-- Handyman Activities-->
<activity android:name=".customer.AboutUsActivity" /> <!-- Handyman Activities -->
<activity android:name=".handyman.HandymanMainActivity" />
<activity android:name=".handyman.RegisterHandyman" />
<activity android:name=".handyman.ForgotPasswordHandyman" />
<activity android:name=".handyman.HandymanDashboard">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<activity android:name=".handyman.HandymanDashboard" />
<activity android:name=".handyman.HandymanPacks" />
<activity android:name=".handyman.HandymanAccount" />
<activity android:name=".handyman.HandymanChats" />
Expand Down
26 changes: 26 additions & 0 deletions app/src/main/java/bupaljr/com/fikzar/handyman/HandymanAccount.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.widget.Toast;

import com.google.android.material.bottomnavigation.BottomNavigationView;
import com.google.firebase.auth.FirebaseAuth;

import bupaljr.com.fikzar.R;
import bupaljr.com.fikzar.SplashScreen;
import bupaljr.com.fikzar.customer.AccountActivity;
import bupaljr.com.fikzar.customer.SettingsActivity;

public class HandymanAccount extends AppCompatActivity {

Expand All @@ -19,6 +25,26 @@ protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.activity_handyman_account);


// Go to the Settings ->
Object clickSettings = findViewById(R.id.click_settings);
((View) clickSettings).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
startActivity(new Intent(HandymanAccount.this, HandymanSettings.class));
}
});


// Logout the account ->
Object clickLogout = findViewById(R.id.click_logout);
((View) clickLogout).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
FirebaseAuth.getInstance().signOut();
Toast.makeText(HandymanAccount.this, "Logged out", Toast.LENGTH_SHORT).show();
startActivity(new Intent(HandymanAccount.this, SplashScreen.class));
}
});
// Initialize variable
BottomNavigationView bottomNavigationView = findViewById(R.id.bottom_navigation);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package bupaljr.com.fikzar.handyman;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import bupaljr.com.fikzar.R;

public class HandymanSettings extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_handyman_settings);
}
}
124 changes: 124 additions & 0 deletions app/src/main/java/bupaljr/com/fikzar/model/customer.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
package bupaljr.com.fikzar.model;

public class customer {

private String profile_pic;
private String full_name;
private String user_name;
private String email;
private String post_pic;
private String post_content;
private String jobs;
private String jobs_statement;
private String location;
private String last_online;
private String member_since;


public customer() {
}

public customer(String profile_pic, String full_name, String user_name, String email,
String post_pic, String post_content, String jobs, String jobs_statement,
String location, String last_online, String member_since) {
this.profile_pic = profile_pic;
this.full_name = full_name;
this.user_name = user_name;
this.email = email;
this.post_pic = post_pic;
this.post_content = post_content;
this.jobs = jobs;
this.jobs_statement = jobs_statement;
this.location = location;
this.last_online = last_online;
this.member_since = member_since;
}

public String getProfile_pic() {
return profile_pic;
}

public void setProfile_pic(String profile_pic) {
this.profile_pic = profile_pic;
}

public String getFull_name() {
return full_name;
}

public void setFull_name(String full_name) {
this.full_name = full_name;
}

public String getUser_name() {
return user_name;
}

public void setUser_name(String user_name) {
this.user_name = user_name;
}

public String getEmail() {
return email;
}

public void setEmail(String email) {
this.email = email;
}

public String getPost_pic() {
return post_pic;
}

public void setPost_pic(String post_pic) {
this.post_pic = post_pic;
}

public String getPost_content() {
return post_content;
}

public void setPost_content(String post_content) {
this.post_content = post_content;
}

public String getJobs() {
return jobs;
}

public void setJobs(String jobs) {
this.jobs = jobs;
}

public String getJobs_statement() {
return jobs_statement;
}

public void setJobs_statement(String jobs_statement) {
this.jobs_statement = jobs_statement;
}

public String getLocation() {
return location;
}

public void setLocation(String location) {
this.location = location;
}

public String getLast_online() {
return last_online;
}

public void setLast_online(String last_online) {
this.last_online = last_online;
}

public String getMember_since() {
return member_since;
}

public void setMember_since(String member_since) {
this.member_since = member_since;
}
}
Loading

0 comments on commit 930d5f4

Please sign in to comment.