// PAYSLIP

parent 29b3d51f
...@@ -10,14 +10,15 @@ ...@@ -10,14 +10,15 @@
<application <application
android:allowBackup="true" android:allowBackup="true"
android:hardwareAccelerated="true" android:hardwareAccelerated="true"
android:icon="@mipmap/ic_launcher" android:icon="@mipmap/ic_launcher_all_round"
android:label="@string/app_name" android:label="@string/app_name"
android:largeHeap="true" android:largeHeap="true"
android:roundIcon="@drawable/icon_maxmoney" android:roundIcon="@mipmap/ic_launcher_all_round"
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/AppThemeNoActionBar" android:theme="@style/AppThemeNoActionBar"
android:usesCleartextTraffic="true"> android:usesCleartextTraffic="true">
<activity android:name=".ActivityV2.TopapActivityV2"></activity> <activity android:name=".Activity.PaySlipActivity"></activity>
<activity android:name=".ActivityV2.TopapActivityV2" />
<activity android:name=".Activity.downloadWebView" /> <activity android:name=".Activity.downloadWebView" />
<activity android:name=".Activity.TopupLedgerActivity" /> <activity android:name=".Activity.TopupLedgerActivity" />
<activity android:name=".Activity.UserSearchActivity" /> <activity android:name=".Activity.UserSearchActivity" />
......
...@@ -11,6 +11,7 @@ import android.util.Log; ...@@ -11,6 +11,7 @@ import android.util.Log;
import android.view.View; import android.view.View;
import android.view.WindowManager; import android.view.WindowManager;
import android.widget.Button; import android.widget.Button;
import android.widget.ImageView;
import android.widget.MediaController; import android.widget.MediaController;
import android.widget.ScrollView; import android.widget.ScrollView;
import android.widget.TextView; import android.widget.TextView;
...@@ -48,7 +49,7 @@ public class ApproveCustomerClickActivity extends AppCompatActivity { ...@@ -48,7 +49,7 @@ public class ApproveCustomerClickActivity extends AppCompatActivity {
Button button_approve,button_edit,button_reject; Button button_approve,button_edit,button_reject;
ScrollView main; ScrollView main;
VideoView videoView; VideoView videoView;
ImageView imageView_back;
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
...@@ -59,6 +60,7 @@ public class ApproveCustomerClickActivity extends AppCompatActivity { ...@@ -59,6 +60,7 @@ public class ApproveCustomerClickActivity extends AppCompatActivity {
session = getIntent().getStringExtra("session"); session = getIntent().getStringExtra("session");
email = getIntent().getStringExtra("email"); email = getIntent().getStringExtra("email");
imageView_back = findViewById(R.id.imageView_back);
textView_fullname = findViewById(R.id.textView_fullname); textView_fullname = findViewById(R.id.textView_fullname);
textView_status = findViewById(R.id.textView_status); textView_status = findViewById(R.id.textView_status);
textView_email = findViewById(R.id.textView_email); textView_email = findViewById(R.id.textView_email);
...@@ -99,6 +101,13 @@ public class ApproveCustomerClickActivity extends AppCompatActivity { ...@@ -99,6 +101,13 @@ public class ApproveCustomerClickActivity extends AppCompatActivity {
dialogApprove(); dialogApprove();
} }
}); });
imageView_back.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
onBackPressed();
}
});
} }
public void getUserDetails(){ public void getUserDetails(){
......
...@@ -43,7 +43,7 @@ public class DashboardActivity extends AppCompatActivity implements View.OnClick ...@@ -43,7 +43,7 @@ public class DashboardActivity extends AppCompatActivity implements View.OnClick
Button button_logout; Button button_logout;
LinearLayout linear_customer_main,linear_topap_main,linear_complience; LinearLayout linear_customer_main,linear_topap_main,linear_complience;
LinearLayout linear_customer_all,linear_cdd,linear_user_all,linear_topap,linear_approve,linear_user_search_c; LinearLayout linear_customer_all,linear_cdd,linear_user_all,linear_topap,linear_approve,linear_user_search_c;
TextView textView_topap_ledger; TextView textView_topap_ledger,textView_paySlip;
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
...@@ -57,6 +57,7 @@ public class DashboardActivity extends AppCompatActivity implements View.OnClick ...@@ -57,6 +57,7 @@ public class DashboardActivity extends AppCompatActivity implements View.OnClick
standardProgressDialog.show(); standardProgressDialog.show();
button_logout = findViewById(R.id.button_logout); button_logout = findViewById(R.id.button_logout);
textView_topap_ledger = findViewById(R.id.textView_topap_ledger); textView_topap_ledger = findViewById(R.id.textView_topap_ledger);
textView_paySlip = findViewById(R.id.textView_paySlip);
linear_customer_main = findViewById(R.id.linear_customer_main); linear_customer_main = findViewById(R.id.linear_customer_main);
linear_topap_main = findViewById(R.id.linear_topap_main); linear_topap_main = findViewById(R.id.linear_topap_main);
...@@ -78,6 +79,7 @@ public class DashboardActivity extends AppCompatActivity implements View.OnClick ...@@ -78,6 +79,7 @@ public class DashboardActivity extends AppCompatActivity implements View.OnClick
linear_user_all.setOnClickListener(this); //USER SEARCH linear_user_all.setOnClickListener(this); //USER SEARCH
linear_user_search_c.setOnClickListener(this); //USER SEARCH linear_user_search_c.setOnClickListener(this); //USER SEARCH
textView_topap_ledger.setOnClickListener(this); //TOPAP LEDGER textView_topap_ledger.setOnClickListener(this); //TOPAP LEDGER
textView_paySlip.setOnClickListener(this); //PAYSLIP
getUserDetails(); getUserDetails();
...@@ -253,6 +255,13 @@ public class DashboardActivity extends AppCompatActivity implements View.OnClick ...@@ -253,6 +255,13 @@ public class DashboardActivity extends AppCompatActivity implements View.OnClick
break; break;
} }
case R.id.textView_paySlip:{
Intent next = new Intent(getApplicationContext(),PaySlipActivity.class);
next.putExtra("session",session);
startActivity(next);
break;
}
} }
} }
......
...@@ -51,8 +51,12 @@ public class LoginActivity extends AppCompatActivity { ...@@ -51,8 +51,12 @@ public class LoginActivity extends AppCompatActivity {
editText_password = findViewById(R.id.editText_password); editText_password = findViewById(R.id.editText_password);
button_login = findViewById(R.id.button_login); button_login = findViewById(R.id.button_login);
editText_email.setText("maxcdd@maxmoney.com"); // editText_email.setText("maxcdd@maxmoney.com");
editText_password.setText("moos"); // editText_password.setText("moos");
// editText_email.setText("adib.zakaria@maxmoney.com");
// editText_password.setText("moos");
button_login.setOnClickListener(new View.OnClickListener() { button_login.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
......
package com.maxmoney.maxcddconsole.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import com.android.volley.AuthFailureError;
import com.android.volley.RequestQueue;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.StringRequest;
import com.android.volley.toolbox.Volley;
import com.maxmoney.maxcddconsole.Common.StandardProgressDialog;
import com.maxmoney.maxcddconsole.Connectivity.BasedUrl;
import com.maxmoney.maxcddconsole.R;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.HashMap;
import java.util.Map;
import static com.android.volley.Request.Method.GET;
public class PaySlipActivity extends AppCompatActivity implements View.OnClickListener {
String session;
StandardProgressDialog standardProgressDialog;
TextView textView_title;
ImageView imageView_back;
TextView ids,name,overTimeInsideBranchHours,overTimeOutsideBranchHours,branchIncentive,allowance,corridorIncentive,
individualIncentive,claims,deduction,netPay,basicPay,branch;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_pay_slip);
standardProgressDialog = new StandardProgressDialog(this.getWindow().getContext());
session = getIntent().getStringExtra("session");
textView_title = findViewById(R.id.textView_title);
imageView_back = findViewById(R.id.imageView_back);
ids = findViewById(R.id.ids);
name = findViewById(R.id.name);
overTimeInsideBranchHours = findViewById(R.id.overTimeInsideBranchHours);
overTimeOutsideBranchHours = findViewById(R.id.overTimeOutsideBranchHours);
branchIncentive = findViewById(R.id.branchIncentive);
allowance = findViewById(R.id.allowance);
corridorIncentive = findViewById(R.id.corridorIncentive);
individualIncentive = findViewById(R.id.individualIncentive);
claims = findViewById(R.id.claims);
deduction = findViewById(R.id.deduction);
netPay = findViewById(R.id.netPay);
basicPay = findViewById(R.id.basicPay);
branch = findViewById(R.id.branch);
imageView_back.setOnClickListener(this);
}
@Override
protected void onResume() {
super.onResume();
standardProgressDialog.show();
getDetails();
}
private void getDetails() {
StringRequest stringRequest = new StringRequest(GET, BasedUrl.URL_STAGING +"pay-roll/my-pay-history",
new com.android.volley.Response.Listener<String>() {
@Override
public void onResponse(final String response) {
standardProgressDialog.dismiss();
try {
JSONArray obj = new JSONArray(response);
for(int i =0; i <obj.length();i++){
JSONObject objs = obj.getJSONObject(i);
ids.setText(objs.getString("id"));
name.setText(objs.getString("name"));
overTimeInsideBranchHours.setText(objs.getString("overTimeInsideBranchHours"));
overTimeOutsideBranchHours.setText(objs.getString("overTimeOutsideBranchHours"));
branchIncentive.setText(objs.getString("branchIncentive"));
allowance.setText(objs.getString("allowance"));
corridorIncentive.setText(objs.getString("corridorIncentive"));
individualIncentive.setText(objs.getString("individualIncentive"));
claims.setText(objs.getString("claims"));
deduction.setText(objs.getString("deduction"));
netPay.setText("RM "+objs.getString("netPay"));
basicPay.setText("RM "+objs.getString("basicPay"));
branch.setText(objs.getString("branch"));
}
} catch (JSONException e) {
e.printStackTrace();
}
}
},
new com.android.volley.Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
standardProgressDialog.dismiss();
}
}) {
@Override
public Map<String, String> getHeaders() throws AuthFailureError {
HashMap<String, String> headers = new HashMap();
headers.put("api-key",session);
return headers;
}
};
RequestQueue requestQueue = Volley.newRequestQueue(getApplicationContext());
requestQueue.add(stringRequest);
}
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.imageView_back: {
onBackPressed();
break;
}
}
}
}
...@@ -16,6 +16,7 @@ import android.util.Log; ...@@ -16,6 +16,7 @@ import android.util.Log;
import android.view.View; import android.view.View;
import android.webkit.MimeTypeMap; import android.webkit.MimeTypeMap;
import android.widget.AbsListView; import android.widget.AbsListView;
import android.widget.ImageView;
import android.widget.ListView; import android.widget.ListView;
import android.widget.TextView; import android.widget.TextView;
import android.widget.Toast; import android.widget.Toast;
...@@ -74,6 +75,7 @@ public class TopupLedgerActivity extends AppCompatActivity implements AbsListVie ...@@ -74,6 +75,7 @@ public class TopupLedgerActivity extends AppCompatActivity implements AbsListVie
private int total = 100; private int total = 100;
TextView textView_downloadSUmmary; TextView textView_downloadSUmmary;
DownloadManager downloadManager; DownloadManager downloadManager;
ImageView imageView_back;
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
...@@ -86,6 +88,8 @@ public class TopupLedgerActivity extends AppCompatActivity implements AbsListVie ...@@ -86,6 +88,8 @@ public class TopupLedgerActivity extends AppCompatActivity implements AbsListVie
standardProgressDialog = new StandardProgressDialog(this.getWindow().getContext()); standardProgressDialog = new StandardProgressDialog(this.getWindow().getContext());
list = findViewById(R.id.listView); list = findViewById(R.id.listView);
textView_downloadSUmmary = findViewById(R.id.textView_downloadSUmmary); textView_downloadSUmmary = findViewById(R.id.textView_downloadSUmmary);
imageView_back = findViewById(R.id.imageView_back);
standardProgressDialog.show(); standardProgressDialog.show();
getTotalTopap(); getTotalTopap();
...@@ -96,6 +100,13 @@ public class TopupLedgerActivity extends AppCompatActivity implements AbsListVie ...@@ -96,6 +100,13 @@ public class TopupLedgerActivity extends AppCompatActivity implements AbsListVie
downloadFile(); downloadFile();
} }
}); });
imageView_back.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
onBackPressed();
}
});
} }
@Override @Override
......
package com.maxmoney.maxcddconsole.ActivityV2; package com.maxmoney.maxcddconsole.ActivityV2;
import android.content.Intent; import android.content.Intent;
import android.os.Handler;
import android.support.design.widget.TextInputEditText; import android.support.design.widget.TextInputEditText;
import android.support.v7.app.AlertDialog; import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity; import android.support.v7.app.AppCompatActivity;
...@@ -195,6 +196,7 @@ public class TopapActivityV2 extends AppCompatActivity implements View.OnClickLi ...@@ -195,6 +196,7 @@ public class TopapActivityV2 extends AppCompatActivity implements View.OnClickLi
} }
case R.id.textView_changeOperator: { case R.id.textView_changeOperator: {
standardProgressDialog.show();
openDialog(); openDialog();
break; break;
} }
...@@ -222,7 +224,6 @@ public class TopapActivityV2 extends AppCompatActivity implements View.OnClickLi ...@@ -222,7 +224,6 @@ public class TopapActivityV2 extends AppCompatActivity implements View.OnClickLi
final View mView = getLayoutInflater().inflate(R.layout.dialog_operator_v2, null); final View mView = getLayoutInflater().inflate(R.layout.dialog_operator_v2, null);
mBuilderOperator.setView(mView); mBuilderOperator.setView(mView);
mDialogOperator = mBuilderOperator.create(); mDialogOperator = mBuilderOperator.create();
mDialogOperator.show();
ImageView imageView_cancel = mView.findViewById(R.id.imageView_cancel); ImageView imageView_cancel = mView.findViewById(R.id.imageView_cancel);
Spinner spinner_operator = mView.findViewById(R.id.spinner_operator); Spinner spinner_operator = mView.findViewById(R.id.spinner_operator);
...@@ -236,6 +237,16 @@ public class TopapActivityV2 extends AppCompatActivity implements View.OnClickLi ...@@ -236,6 +237,16 @@ public class TopapActivityV2 extends AppCompatActivity implements View.OnClickLi
}); });
getOperatorChoose(mView,spinner_operator); getOperatorChoose(mView,spinner_operator);
final Handler handler = new Handler();
handler.postDelayed(new Runnable() {
@Override
public void run() {
mDialogOperator.show();
}
}, 1000);
} }
public void getOperatorChoose(final View mView, final Spinner spinner_operator){ public void getOperatorChoose(final View mView, final Spinner spinner_operator){
...@@ -245,7 +256,6 @@ public class TopapActivityV2 extends AppCompatActivity implements View.OnClickLi ...@@ -245,7 +256,6 @@ public class TopapActivityV2 extends AppCompatActivity implements View.OnClickLi
new com.android.volley.Response.Listener<String>() { new com.android.volley.Response.Listener<String>() {
@Override @Override
public void onResponse(String response) { public void onResponse(String response) {
standardProgressDialog.dismiss();
try { try {
JSONObject obj = new JSONObject(response); JSONObject obj = new JSONObject(response);
if(obj.has("operators")){ if(obj.has("operators")){
...@@ -257,6 +267,7 @@ public class TopapActivityV2 extends AppCompatActivity implements View.OnClickLi ...@@ -257,6 +267,7 @@ public class TopapActivityV2 extends AppCompatActivity implements View.OnClickLi
} }
operatorOnselect(mView,spinner_operator); operatorOnselect(mView,spinner_operator);
spinner_operator.setAdapter(new ArrayAdapter<String>(mView.getContext(), android.R.layout.simple_spinner_dropdown_item, operatorNames)); spinner_operator.setAdapter(new ArrayAdapter<String>(mView.getContext(), android.R.layout.simple_spinner_dropdown_item, operatorNames));
standardProgressDialog.dismiss();
} }
} catch (JSONException e) { } catch (JSONException e) {
e.printStackTrace(); e.printStackTrace();
......
package com.maxmoney.maxcddconsole.Connectivity; package com.maxmoney.maxcddconsole.Connectivity;
public class BasedUrl { public class BasedUrl {
public static String URL_STAGING = "https://api-staging.maxmoney.com/v1/"; public static String URL_STAGING = "https://api2-staging.maxmoney.com/v1/";
public static String API_STAGING_TOPAP_KEY = "340b5adfe435e23ea4534974c79ca1d5e1203d0a"; public static String API_STAGING_TOPAP_KEY = "340b5adfe435e23ea4534974c79ca1d5e1203d0a";
} }
...@@ -107,16 +107,33 @@ ...@@ -107,16 +107,33 @@
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="10dp"
android:orientation="horizontal">
<TextView <TextView
android:id="@+id/textView_topap_ledger" android:id="@+id/textView_topap_ledger"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="10dp" android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="View My TopUp Ledger" android:text="View My TopUp Ledger"
android:textColor="@color/colorBackground" android:textColor="@color/colorBackground"
android:textStyle="bold|italic" /> android:textStyle="bold|italic" />
<TextView
android:id="@+id/textView_paySlip"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="View PaySlip"
android:textColor="@color/colorBackground"
android:textStyle="bold|italic" />
</LinearLayout>
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
......
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@android:color/white"
tools:context=".Activity.PaySlipActivity">
<LinearLayout
android:id="@+id/linear_header"
android:layout_width="match_parent"
android:layout_height="60dp"
android:background="@color/colorBackground"
android:gravity="center"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="3"
android:gravity="center"
android:orientation="vertical">
<ImageView
android:id="@+id/imageView_back"
android:layout_width="35dp"
android:layout_height="30dp"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
app:srcCompat="@drawable/icon_back"
tools:ignore="VectorDrawableCompat" />
</LinearLayout>
<TextView
android:id="@+id/textView_title"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:text="PAYSLIP"
android:textColor="@android:color/white"
android:textSize="18sp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="3"
android:gravity="center"
android:orientation="vertical">
<ImageView
android:id="@+id/imageView_refresh"
android:layout_width="35dp"
android:layout_height="30dp"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
tools:ignore="VectorDrawableCompat" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="20dp"
android:background="@android:color/white"
android:orientation="vertical">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="15dp"
android:orientation="horizontal">
<TextView
android:id="@+id/textView26"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:text="ID"
android:textColor="@android:color/black" />
<TextView
android:id="@+id/ids"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="b7f521aa-810e-41a1-b8a9-7a5343e0978c" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="15dp"
android:orientation="horizontal">
<TextView
android:id="@+id/textView26"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:text="name"
android:textColor="@android:color/black" />
<TextView
android:id="@+id/name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="maxcdd@maxmoney.com" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="15dp"
android:orientation="horizontal">
<TextView
android:id="@+id/textView26"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="OVERTIME IN HOURS (INSIDE BRANCH)"
android:textColor="@android:color/black" />
<TextView
android:id="@+id/overTimeInsideBranchHours"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center|center_vertical"
android:text="11" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="15dp"
android:orientation="horizontal">
<TextView
android:id="@+id/textView26"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="OVERTIME IN HOURS (OUTSIDE BRANCH)"
android:textColor="@android:color/black" />
<TextView
android:id="@+id/overTimeOutsideBranchHours"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center|center_vertical"
android:text="11" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="15dp"
android:orientation="horizontal">
<TextView
android:id="@+id/textView26"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="Branch Incentive"
android:textColor="@android:color/black" />
<TextView
android:id="@+id/branchIncentive"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center|center_vertical"
android:text="11" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="15dp"
android:orientation="horizontal">
<TextView
android:id="@+id/textView26"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="Allowance"
android:textColor="@android:color/black" />
<TextView
android:id="@+id/allowance"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center|center_vertical"
android:text="11" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="15dp"
android:orientation="horizontal">
<TextView
android:id="@+id/textView26"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="corridorIncentive"
android:textColor="@android:color/black" />
<TextView
android:id="@+id/corridorIncentive"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center|center_vertical"
android:text="11" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="15dp"
android:orientation="horizontal">
<TextView
android:id="@+id/textView26"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="individualIncentive"
android:textColor="@android:color/black" />
<TextView
android:id="@+id/individualIncentive"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center|center_vertical"
android:text="11" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="15dp"
android:orientation="horizontal">
<TextView
android:id="@+id/textView26"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="claims"
android:textColor="@android:color/black" />
<TextView
android:id="@+id/claims"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center|center_vertical"
android:text="11" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="15dp"
android:orientation="horizontal">
<TextView
android:id="@+id/textView26"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="deduction"
android:textColor="@android:color/black" />
<TextView
android:id="@+id/deduction"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center|center_vertical"
android:text="11" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="15dp"
android:orientation="horizontal">
<TextView
android:id="@+id/textView26"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="netPay"
android:textColor="@android:color/black" />
<TextView
android:id="@+id/netPay"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center|center_vertical"
android:text="11" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="15dp"
android:orientation="horizontal">
<TextView
android:id="@+id/textView26"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="basicPay"
android:textColor="@android:color/black" />
<TextView
android:id="@+id/basicPay"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center|center_vertical"
android:text="11" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="15dp"
android:orientation="horizontal">
<TextView
android:id="@+id/textView26"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="branch"
android:textColor="@android:color/black" />
<TextView
android:id="@+id/branch"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center|center_vertical"
android:text="11" />
</LinearLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
...@@ -140,6 +140,15 @@ ...@@ -140,6 +140,15 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="horizontal"> android:orientation="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="5dp"
android:layout_weight="1"
android:background="@color/colorBackground"
android:orientation="vertical"
android:padding="5dp">
<TextView <TextView
android:id="@+id/textView_downloadSUmmary" android:id="@+id/textView_downloadSUmmary"
android:layout_width="match_parent" android:layout_width="match_parent"
...@@ -147,8 +156,18 @@ ...@@ -147,8 +156,18 @@
android:layout_weight="1" android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="Download summary report" android:text="Download summary report"
android:textColor="@color/colorBackground" android:textColor="@android:color/white"
android:textStyle="bold" /> android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="5dp"
android:layout_weight="1"
android:background="@color/colorBackground"
android:orientation="vertical"
android:padding="5dp">
<TextView <TextView
android:id="@+id/textView23" android:id="@+id/textView23"
...@@ -157,9 +176,11 @@ ...@@ -157,9 +176,11 @@
android:layout_weight="1" android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="Download detailed report" android:text="Download detailed report"
android:textColor="@color/colorBackground" android:textColor="@android:color/white"
android:textStyle="bold" /> android:textStyle="bold" />
</LinearLayout> </LinearLayout>
</LinearLayout>
</LinearLayout> </LinearLayout>
<ListView <ListView
......
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/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="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#FFFFFF</color>
</resources>
\ 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