First Commit

This commit is contained in:
developerraman
2020-10-08 02:20:14 -07:00
parent 4cd4d841a1
commit f57f5fae63
46 changed files with 2872 additions and 863 deletions

View File

@@ -24,6 +24,9 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
implementation 'de.hdodenhof:circleimageview:3.1.0'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.+'
implementation 'com.google.android.material:material:1.0.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.0'

View File

@@ -2,6 +2,9 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ShanMukhaInnovations.ArrestTB">
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
@@ -9,18 +12,34 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".Navigation_Top"></activity>
<activity android:name=".Patient_Details">
<activity android:name=".Report">
</activity>
<activity android:name=".Login_Screen">
<activity android:name=".AddImage"></activity>
<activity android:name=".Camera_Guide"></activity>
<activity android:name=".About" />
<activity android:name=".Test_details" />
<activity android:name=".splash_screen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".MainActivity" />
<activity android:name=".Patient_detail" >
</activity>
<activity android:name=".home" />
<activity android:name=".Navigation_Top" />
<activity android:name=".Login_Screen">
</activity>
<activity
android:name="com.theartofdev.edmodo.cropper.CropImageActivity"
android:theme="@style/Base.Theme.AppCompat" />
</application>
</manifest>

Binary file not shown.

View File

@@ -0,0 +1,22 @@
package com.ShanMukhaInnovations.ArrestTB;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
public class About extends Navigation_Top {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
LayoutInflater inflater = (LayoutInflater) this
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View contentView = inflater.inflate(R.layout.activity_about, null, false);
draw.addView(contentView, 0);
//setContentView(R.layout.activity_about);
}
}

View File

@@ -0,0 +1,92 @@
package com.ShanMukhaInnovations.ArrestTB;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import android.Manifest;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import com.theartofdev.edmodo.cropper.CropImage;
import com.theartofdev.edmodo.cropper.CropImageView;
public class AddImage extends Navigation_Top {
de.hdodenhof.circleimageview.CircleImageView circle_image;
Button selection_image,report1;
private static final int PERMISSION_FILE=23;
String Data_report,patientid,patientdob,patientage,patientnikshayid;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
LayoutInflater inflater = (LayoutInflater) this
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View contentView = inflater.inflate(R.layout.activity_add_image, null, false);
draw.addView(contentView, 0);
// setContentView(R.layout.activity_add_image);
circle_image=findViewById(R.id.circle_image);
patientdob= getIntent().getStringExtra("dob_report");
patientid=getIntent().getStringExtra("id_report");
patientage=getIntent().getStringExtra("age_report");
patientnikshayid=getIntent().getStringExtra("nikshay_report");
report1=findViewById(R.id.report);
report1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(AddImage.this, Report.class);
startActivity(intent);
}
});
if(ContextCompat.checkSelfPermission(AddImage.this, Manifest.permission.WRITE_EXTERNAL_STORAGE)!= PackageManager.PERMISSION_GRANTED)
{
ActivityCompat.requestPermissions(AddImage.this,new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},PERMISSION_FILE);
}
else
{
//startCropImageActivity();
CropImage.activity()
.setGuidelines(CropImageView.Guidelines.ON)
.setCropShape(CropImageView.CropShape.OVAL)
.start(AddImage.this);
}
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {
CropImage.ActivityResult result = CropImage.getActivityResult(data);
if (resultCode == RESULT_OK) {
Uri resultUri = result.getUri();
circle_image.setImageURI(resultUri);
} else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {
Exception error = result.getError();
}
}
}
}

View File

@@ -0,0 +1,66 @@
package com.ShanMukhaInnovations.ArrestTB;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
public class Camera_Guide extends AppCompatActivity {
private Button Intro,report1;
String Data_report,patientid,patientgender,patientdob,patientage,patientnikshayid;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.activity_camera__guide);
Intro=findViewById(R.id.intro);
patientdob= getIntent().getStringExtra("dob_report");
patientid=getIntent().getStringExtra("id_report");
patientage=getIntent().getStringExtra("age_report");
patientnikshayid=getIntent().getStringExtra("nikshay_report");
Log.d(patientid,"vvvvvvvvvvvvvvvv");
Intro.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(getApplicationContext(),AddImage.class );
intent.putExtra("dob_report",patientdob);
intent.putExtra("id_report",patientid);
intent.putExtra("age_report",patientage);
intent.putExtra("nikshay_report",patientnikshayid);
startActivity(intent);
savePrefsData();
finish();
}
});
}
private void savePrefsData() {
SharedPreferences pref = getApplicationContext().getSharedPreferences("myPrefs",MODE_PRIVATE);
SharedPreferences.Editor editor = pref.edit();
editor.putBoolean("isIntroOpnend",true);
editor.commit();
}
}

View File

@@ -29,7 +29,7 @@ public class FontAwesome extends AppCompatTextView {
//Font name should not contain "/".
Typeface tf = Typeface.createFromAsset(getContext().getAssets(),
"fa-regular-400.ttf");
"fa-solid-900.ttf");
setTypeface(tf);
}

View File

@@ -55,7 +55,7 @@ public class Login_Screen extends AppCompatActivity {
}
else if (username.equals("Arresttb") && password.equals("tb123")) {
Intent intent = new Intent(Login_Screen.this, Patient_Details.class);
Intent intent = new Intent(Login_Screen.this, home.class);
startActivity(intent);
} else {

View File

@@ -1,14 +0,0 @@
package com.ShanMukhaInnovations.ArrestTB;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}

View File

@@ -29,8 +29,12 @@ public class Navigation_Top extends AppCompatActivity implements NavigationView.
switch (menuItem.getItemId())
{
case R.id.logout:
Intent farmer_sale=new Intent(this,Login_Screen.class);
startActivity(farmer_sale);
Intent intent=new Intent(this,Login_Screen.class);
startActivity(intent);
break;
case R.id.nav_contact_us:
Intent intent1=new Intent(this,About.class);
startActivity(intent1);
break;
}
@@ -40,6 +44,8 @@ public class Navigation_Top extends AppCompatActivity implements NavigationView.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.activity_navigation__top);

View File

@@ -1,160 +0,0 @@
package com.ShanMukhaInnovations.ArrestTB;
import androidx.appcompat.app.AppCompatActivity;
import android.app.DatePickerDialog;
import android.app.TimePickerDialog;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.DatePicker;
import android.widget.EditText;
import android.widget.Spinner;
import android.widget.TextView;
import android.widget.TimePicker;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
public class Patient_Details extends Navigation_Top {
EditText date_data1,time_data1,Dob;
TextView Gender;
private int mHour, mMinute;
DatePickerDialog datepicker;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
LayoutInflater inflater = (LayoutInflater) this
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View contentView = inflater.inflate(R.layout.activity_patient__details, null, false);
draw.addView(contentView, 0);
// setContentView(R.layout.activity_patient__details);
Date date = new Date();
DateFormat TimeFormat = new SimpleDateFormat("hh:mm a");
DateFormat dateFormat = new SimpleDateFormat("dd MMM yyyy");
String stringTime = TimeFormat.format(new Date()).toString();
String stringDate = dateFormat.format(new Date()).toString();
Gender=findViewById(R.id.gender);
date_data1=findViewById(R.id.date_data);
time_data1=findViewById(R.id.time_data);
Dob=findViewById(R.id.dob);
time_data1.setText("Time :"+stringTime);
date_data1.setText(stringDate);
time_data1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
final Calendar c = Calendar.getInstance();
mHour = c.get(Calendar.HOUR_OF_DAY);
mMinute = c.get(Calendar.MINUTE);
// Launch Time Picker Dialog
TimePickerDialog timePickerDialog = new TimePickerDialog(Patient_Details.this,
new TimePickerDialog.OnTimeSetListener() {
@Override
public void onTimeSet(TimePicker view, int hourOfDay,
int minute) {
time_data1.setText("Time :"+hourOfDay + ":" + minute);
}
}, mHour, mMinute, false);
timePickerDialog.show();
}
});
date_data1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
final Calendar cldr = Calendar.getInstance();
int day = cldr.get(Calendar.DAY_OF_MONTH);
int month = cldr.get(Calendar.MONTH);
int year = cldr.get(Calendar.YEAR);
// date picker dialog
datepicker = new DatePickerDialog(Patient_Details.this,
new DatePickerDialog.OnDateSetListener() {
@Override
public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {
date_data1.setText(dayOfMonth + "/" + (monthOfYear + 1) + "/" + year);
}
}, year, month, day);
datepicker.show();
}
});
Dob.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
final Calendar cldr = Calendar.getInstance();
int day = cldr.get(Calendar.DAY_OF_MONTH);
int month = cldr.get(Calendar.MONTH);
int year = cldr.get(Calendar.YEAR);
// date picker dialog
datepicker = new DatePickerDialog(Patient_Details.this,
new DatePickerDialog.OnDateSetListener() {
@Override
public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {
Dob.setText(dayOfMonth + "/" + (monthOfYear + 1) + "/" + year);
}
}, year, month, day);
datepicker.show();
}
});
Spinner Spinner_gender = findViewById(R.id.spinner_gender);
ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,
R.array.Gender, android.R.layout.simple_spinner_item);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
Spinner_gender.setAdapter(adapter);
Spinner Spinner_sample = findViewById(R.id.spinner_sample);
ArrayAdapter<CharSequence> sample_adapter = ArrayAdapter.createFromResource(this,
R.array.Type_Of_Sample, android.R.layout.simple_spinner_item);
sample_adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
Spinner_sample.setAdapter(sample_adapter);
Spinner Spinner_validity = findViewById(R.id.spinner_validity);
ArrayAdapter<CharSequence> Validity_adapter = ArrayAdapter.createFromResource(this,
R.array.Validity, android.R.layout.simple_spinner_item);
Validity_adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
Spinner_validity.setAdapter(Validity_adapter);
}
}

View File

@@ -0,0 +1,135 @@
package com.ShanMukhaInnovations.ArrestTB;
import androidx.appcompat.app.AppCompatActivity;
import android.app.DatePickerDialog;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.DatePicker;
import android.widget.EditText;
import android.widget.Spinner;
import java.util.Calendar;
public class Patient_detail extends Navigation_Top implements AdapterView.OnItemSelectedListener {
private Button next_act;
private DatePickerDialog.OnDateSetListener mDateSetListener;
String patientid,patientdob,patientage,patientnikshayid;
String gender;
private EditText mDisplayDate,patient_ID,Age,NikshayId;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
LayoutInflater inflater = (LayoutInflater) this
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View contentView = inflater.inflate(R.layout.activity_patient_detail, null, false);
draw.addView(contentView, 0);
Spinner Spinner_gender = findViewById(R.id.spinner_gender);
mDisplayDate=findViewById(R.id.dob);
patient_ID=findViewById(R.id.patientid);
Age=findViewById(R.id.age);
NikshayId=findViewById(R.id.NikshayID);
ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,
R.array.Gender, android.R.layout.simple_spinner_item);
mDisplayDate.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Calendar cal = Calendar.getInstance();
int year = cal.get(Calendar.YEAR);
int month = cal.get(Calendar.MONTH);
int day = cal.get(Calendar.DAY_OF_MONTH);
DatePickerDialog dialog = new DatePickerDialog(
Patient_detail.this,
android.R.style.Theme_Holo_Light_Dialog_MinWidth,
mDateSetListener,
year,month,day);
dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
dialog.show();
}
});
mDateSetListener = new DatePickerDialog.OnDateSetListener() {
@Override
public void onDateSet(DatePicker datePicker, int year, int month, int day) {
month = month + 1;
String date = month + "/" + day + "/" + year;
mDisplayDate.setText(date);
patientdob=date;
}
};
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
Spinner_gender.setAdapter(adapter);
Spinner_gender.setOnItemSelectedListener(this);
// setContentView(R.layout.activity_patient_detail);
next_act=findViewById(R.id.next);
next_act.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
patientid=patient_ID.getText().toString();
patientage=Age.getText().toString();
patientnikshayid=NikshayId.getText().toString();
SharedPreferences preferences=getSharedPreferences("PhoneBook",MODE_PRIVATE);
SharedPreferences.Editor editor=preferences.edit();
// editor.putString(Name, phonenum);
editor.putString("gender", gender);
editor.putString("patientid", patientid);
editor.putString("patientage", patientage);
editor.putString("patientnikshayid", patientnikshayid);
editor.putString("dob", patientdob);
editor.commit();
Intent intent=new Intent (Patient_detail.this,Test_details.class);
startActivity(intent);
}
});
}
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
if(parent.getId() == R.id.spinner_gender)
{
gender = parent.getItemAtPosition(position).toString();
//do this
}
}
@Override
public void onNothingSelected(AdapterView<?> parent) {
}
}

View File

@@ -0,0 +1,87 @@
package com.ShanMukhaInnovations.ArrestTB;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
public class Report extends Navigation_Top {
TextView patient_id,patient_dob,patientnikshayid,agepatient,patientgender,patientsample,validatyd,spintubeid,nirtlab,dated,timed,resultd;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
LayoutInflater inflater = (LayoutInflater) this
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View contentView = inflater.inflate(R.layout.activity_report, null, false);
draw.addView(contentView, 0);
// setContentView(R.layout.activity_report);
patient_id=findViewById(R.id.patient_idr);
patient_dob=findViewById(R.id.patien_dobr);
patientnikshayid=findViewById(R.id.patient_nikshayidr);
agepatient=findViewById(R.id.patient_ager);
String date = String.valueOf(android.text.format.DateFormat.format("dd-MM-yyyy", new java.util.Date()));
DateFormat df = new SimpleDateFormat("h:mm a");
String time = df.format(Calendar.getInstance().getTime());
patientgender=findViewById(R.id.patient_genderr);
patientsample=findViewById(R.id.patient_typesampler);
validatyd=findViewById(R.id.patient_tubevisibler);
spintubeid=findViewById(R.id.patient_spintuber);
nirtlab=findViewById(R.id.patient_nirtr);
timed=findViewById(R.id.timer);
resultd=findViewById(R.id.patient_resultr);
dated=findViewById(R.id.dater);
dated.setText(date);
timed.setText(time);
resultd.setText("POSITIVE");
resultd.setTextColor(Color.RED);
SharedPreferences preferences=getSharedPreferences("PhoneBook",MODE_PRIVATE);
String string1 = preferences.getString("gender", null);
String string2 = preferences.getString("patientid", null);
String string3 = preferences.getString("patientage", null);
String string4 = preferences.getString("patientnikshayid", null);
String string5 = preferences.getString("dob", null);
SharedPreferences preferences1=getSharedPreferences("PhoneBook1",MODE_PRIVATE);
String string6 = preferences1.getString("NIRTLabde", null);
String string7 = preferences1.getString("SPINTubeIDde", null);
String string8 = preferences1.getString("sample", null);
String string9 = preferences1.getString("validity", null);
patient_id.setText(string2);
patient_dob.setText(string5);
patientgender.setText(string1);
patientnikshayid.setText(string4);
patientsample.setText(string8);
agepatient.setText(string3);
validatyd.setText(string9);
spintubeid.setText(string7);
nirtlab.setText(string6);
}
}

View File

@@ -0,0 +1,142 @@
package com.ShanMukhaInnovations.ArrestTB;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Spinner;
public class Test_details extends Navigation_Top implements AdapterView.OnItemSelectedListener {
Button btnTest;
EditText NIRTLabd,SPINTubeIDd;
String NIRTLabde,SPINTubeIDde,validatyd,sampled;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
LayoutInflater inflater = (LayoutInflater) this
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View contentView = inflater.inflate(R.layout.activity_test_details, null, false);
draw.addView(contentView, 0);
Spinner Spinner_sample = findViewById(R.id.spinner_sample);
// editor.putString(Name, phonenum);
NIRTLabd=findViewById(R.id.NIRTLab);
SPINTubeIDd=findViewById(R.id.SPINTubeID);
btnTest=findViewById(R.id.startTest);
btnTest.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
NIRTLabde=NIRTLabd.getText().toString();
SPINTubeIDde= SPINTubeIDd.getText().toString();
SharedPreferences preferences=getSharedPreferences("PhoneBook1",MODE_PRIVATE);
SharedPreferences.Editor editor=preferences.edit();
editor.putString("NIRTLabde", NIRTLabde);
editor.putString("SPINTubeIDde", SPINTubeIDde);
editor.putString("sample", sampled);
editor.putString("validity", validatyd);
editor.commit();
if (restorePrefData()) {
Intent intent = new Intent(getApplicationContext(),AddImage.class );
startActivity( intent);
finish();
}
else
{
Intent intent = new Intent(getApplicationContext(),Camera_Guide.class );
startActivity(intent);
finish();
}
}
});
ArrayAdapter<CharSequence> sample_adapter = ArrayAdapter.createFromResource(this,
R.array.Type_Of_Sample, android.R.layout.simple_spinner_item);
sample_adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
Spinner_sample.setAdapter(sample_adapter);
Spinner_sample.setOnItemSelectedListener(this);
Spinner Spinner_validity = findViewById(R.id.spinner_validity);
ArrayAdapter<CharSequence> Validity_adapter = ArrayAdapter.createFromResource(this,
R.array.Validity, android.R.layout.simple_spinner_item);
Validity_adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
Spinner_validity.setAdapter(Validity_adapter);
Spinner_validity.setOnItemSelectedListener(this);
}
private boolean restorePrefData() {
SharedPreferences pref = getApplicationContext().getSharedPreferences("myPrefs",MODE_PRIVATE);
Boolean isIntroActivityOpnendBefore = pref.getBoolean("isIntroOpnend",false);
return isIntroActivityOpnendBefore;
}
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
if(parent.getId() == R.id.spinner_sample)
{
sampled = parent.getItemAtPosition(position).toString();
//do this
}
if(parent.getId() == R.id.spinner_validity)
{
validatyd = parent.getItemAtPosition(position).toString();
//do this
}
}
@Override
public void onNothingSelected(AdapterView<?> parent) {
}
}

View File

@@ -0,0 +1,41 @@
package com.ShanMukhaInnovations.ArrestTB;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
public class home extends Navigation_Top {
private Button add_patient,about;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
LayoutInflater inflater = (LayoutInflater) this
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View contentView = inflater.inflate(R.layout.activity_home, null, false);
draw.addView(contentView, 0);
add_patient=findViewById(R.id.register_user);
about=findViewById(R.id.aboutus);
add_patient.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent (home.this,Patient_detail.class);
startActivity(intent);
}
});
about.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent (home.this,About.class);
startActivity(intent);
}
});
//setContentView(R.layout.activity_home);
}
}

View File

@@ -0,0 +1,27 @@
package com.ShanMukhaInnovations.ArrestTB;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
public class splash_screen extends AppCompatActivity {
private static int SPLASH_TIME_OUT=3000;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash_screen);
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
Intent home = new Intent(splash_screen.this, Login_Screen.class);
startActivity(home);
finish();
}
}, SPLASH_TIME_OUT);
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android">
<stroke
android:width="1dp"
android:color="@android:color/holo_blue_light"/>
<corners
android:radius="16dp" />
<padding
android:left="1dp"
android:right="1dp"
android:top="1dp"
android:bottom="1dp"/>
<solid android:color="@android:color/holo_blue_dark"/>
</shape>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid android:color="@color/cardview_light_background"/>
</shape>

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View File

@@ -0,0 +1,70 @@
<?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:orientation="vertical"
android:layout_height="match_parent"
tools:context=".About">
<LinearLayout
android:layout_marginTop="70dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:gravity="center"
android:text="About Us "
android:textColor="#131313"
android:textSize="24sp"
android:textStyle="bold">
</TextView>
</LinearLayout>
<TextView
android:padding="26dp"
android:layout_width="wrap_content"
android:textSize="18sp"
android:fontFamily="@font/fontstyle"
android:layout_height="wrap_content"
android:text="At Shanmukha Innovations we are striving to develop affordable point-of-care diagnostic solutions. We undertake custom instrumentation development to support bespoke needs of our Research and Industrial customers."
/>
<View
android:layout_margin="18dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#EEE" />
<TextView
android:padding="20dp"
android:layout_width="wrap_content"
android:textSize="18sp"
android:textStyle="bold"
android:fontFamily="@font/fontstyle"
android:layout_height="wrap_content"
android:text="Tel: +91 9742255674"
/>
<View
android:layout_margin="20dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#EEE" />
<TextView
android:padding="20dp"
android:layout_width="wrap_content"
android:textSize="18sp"
android:textStyle="bold"
android:fontFamily="@font/fontstyle"
android:layout_height="wrap_content"
android:text="Email : info@sminnovations.in"
/>
</LinearLayout>

View File

@@ -0,0 +1,53 @@
<?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:orientation="vertical"
android:gravity="center"
android:layout_weight="10"
android:layout_height="match_parent"
>
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/circle_image"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="5"
android:padding="23dp"
android:src="@android:drawable/ic_menu_gallery"
app:civ_border_width="1dp" />
<TextView
android:layout_width="wrap_content"
android:textSize="34dp"
android:layout_height="wrap_content"
android:textColor="@android:color/holo_red_light"
android:text=" Test Result: Positive"
android:id="@+id/selection_image"/>
<Button
android:id="@+id/report"
android:layout_width="match_parent"
android:layout_marginTop="30dp"
android:background="@drawable/buttonshape"
android:layout_height="wrap_content"
android:layout_marginStart="100dp"
android:layout_marginEnd="100dp"
android:textColor="@android:color/white"
android:text="Get Report"
android:layout_marginBottom="60dp"
android:textAllCaps="false"
android:textSize="20sp" />
</LinearLayout>

View File

@@ -0,0 +1,115 @@
<?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"
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_height="match_parent"
>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentStart="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_gravity="center_horizontal"
android:text="Guideline "
android:textColor="#131313"
android:textSize="24sp"
android:textStyle="bold">
</TextView>
<View
android:layout_margin="20dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#EEE" />
<TextView
android:paddingLeft="26dp"
android:layout_width="wrap_content"
android:textSize="18sp"
android:fontFamily="@font/fontstyle"
android:textStyle="bold"
android:layout_height="wrap_content"
android:text="Don't Use Flash to Click the Picture"
/>
<View
android:layout_margin="10dp"
android:layout_width="fill_parent"
android:layout_height="0.8dp"
android:background="#EEE" />
<TextView
android:paddingLeft="26dp"
android:fontFamily="@font/fontstyle"
android:textStyle="bold"
android:layout_width="wrap_content"
android:textSize="18sp"
android:layout_height="wrap_content"
android:text="Take the picture when the lid is open and focused on the Pattern"
/>
<View
android:layout_margin="18dp"
android:layout_width="fill_parent"
android:layout_height="0.8dp"
android:background="#EEE" />
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/circle_image"
android:layout_width="234dp"
android:layout_gravity="center"
android:src="@drawable/Sample_image1"
android:layout_height="234dp"
app:civ_border_width="2dp"/>
<View
android:layout_margin="20dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#EEE" />
<Button
android:id="@+id/intro"
android:layout_width="match_parent"
android:layout_marginTop="10dp"
android:background="@drawable/buttonshape"
android:layout_height="wrap_content"
android:layout_marginStart="100dp"
android:layout_marginBottom="20dp"
android:layout_marginEnd="100dp"
android:textColor="@android:color/white"
android:text="Get Started"
android:textAllCaps="false"
android:textSize="20sp" />
</LinearLayout>
</ScrollView>
</LinearLayout>

View File

@@ -0,0 +1,265 @@
<?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"
>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="230dp"
android:orientation="vertical"
android:gravity="center">
<ImageView
android:layout_width="match_parent"
android:layout_marginTop="35dp"
android:layout_height="70dp"
android:src="@drawable/logo_app"
android:layout_gravity="center"
></ImageView>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Spin Tube App"
android:textSize="24sp"
android:gravity="center"
android:textStyle="bold"
android:layout_marginTop="10dp"
android:textColor="@android:color/black">
</TextView>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_marginTop="215dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="135dp"
android:orientation="horizontal"
android:layout_marginBottom="10dp">
<androidx.cardview.widget.CardView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_gravity="center"
android:orientation="vertical"
android:layout_margin="3dp"
android:layout_weight="1">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.ShanMukhaInnovations.ArrestTB.FontAwesome
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:textColor="@android:color/holo_blue_dark"
android:textSize="40dp"
android:text="&#xf234;"
android:id="@+id/add_patient"
android:textStyle="normal"
android:fontFamily="sans-serif"
></com.ShanMukhaInnovations.ArrestTB.FontAwesome>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=" Start Test "
android:textSize="14sp"
android:textStyle="normal"
android:layout_centerHorizontal="true"
android:layout_marginBottom="4dp"
android:fontFamily="@font/fontstyle"
android:layout_marginTop="4dp"
android:layout_below="@id/add_patient"></TextView>
<Button
android:id="@+id/register_user"
android:layout_width="match_parent"
android:background="@android:color/transparent"
android:layout_height="match_parent"
></Button>
</RelativeLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:layout_width="0dp"
android:elevation="10dp"
android:layout_margin="3dp"
android:layout_height="match_parent"
android:layout_gravity="center"
android:orientation="vertical"
android:layout_marginLeft="5dp"
android:layout_weight="1">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.ShanMukhaInnovations.ArrestTB.FontAwesome
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:textColor="@android:color/holo_blue_dark"
android:textSize="40dp"
android:text="&#xf2bb;"
android:id="@+id/patient_details"
></com.ShanMukhaInnovations.ArrestTB.FontAwesome>
<TextView
android:textSize="14sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Patient Details"
android:layout_centerHorizontal="true"
android:fontFamily="@font/fontstyle"
android:layout_marginBottom="4dp"
android:layout_marginTop="4dp"
android:layout_below="@id/patient_details"></TextView>
<Button
android:id="@+id/patientdetail"
android:layout_width="match_parent"
android:background="@android:color/transparent"
android:layout_height="match_parent"
></Button>
</RelativeLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>
//second linear
<LinearLayout
android:layout_width="match_parent"
android:layout_height="135dp"
android:orientation="horizontal"
android:layout_marginBottom="10dp">
<androidx.cardview.widget.CardView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_gravity="center"
android:layout_margin="3dp"
android:orientation="vertical"
android:layout_marginRight="5dp"
android:layout_weight="1">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.ShanMukhaInnovations.ArrestTB.FontAwesome
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="&#xf03a;"
android:id="@+id/results"
android:textColor="@android:color/holo_blue_dark"
android:textSize="40dp"
></com.ShanMukhaInnovations.ArrestTB.FontAwesome>
<TextView
android:textSize="14sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Results"
android:fontFamily="@font/fontstyle"
android:layout_centerHorizontal="true"
android:layout_marginBottom="4dp"
android:layout_marginTop="4dp"
android:layout_below="@id/results"></TextView>
<Button
android:id="@+id/result"
android:layout_width="match_parent"
android:background="@android:color/transparent"
android:layout_height="match_parent"
></Button>
</RelativeLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:layout_width="0dp"
android:layout_margin="3dp"
android:layout_height="match_parent"
android:layout_gravity="center"
android:orientation="vertical"
android:layout_marginLeft="5dp"
android:layout_weight="1">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.ShanMukhaInnovations.ArrestTB.FontAwesome
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:textColor="@android:color/holo_blue_dark"
android:textSize="40dp"
android:id="@+id/about"
android:text="&#xf05a;"
></com.ShanMukhaInnovations.ArrestTB.FontAwesome>
<TextView
android:textSize="14sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="About"
android:layout_centerHorizontal="true"
android:fontFamily="@font/fontstyle"
android:layout_marginBottom="4dp"
android:layout_marginTop="4dp"
android:layout_below="@id/about"></TextView>
<Button
android:id="@+id/aboutus"
android:layout_width="match_parent"
android:background="@android:color/transparent"
android:layout_height="match_parent"
></Button>
</RelativeLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</LinearLayout>
</ScrollView>
</RelativeLayout>

View File

@@ -10,18 +10,28 @@
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/imageView"
android:layout_width="match_parent"
android:layout_height="70dp"
android:contentDescription="TODO"
android:layout_marginTop="15dp"
android:src="@drawable/logo_app"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/imageView"
android:id="@+id/titleapp"
android:layout_width="match_parent"
android:layout_height="@android:dimen/app_icon_size"
android:contentDescription="TODO"
android:layout_marginTop="15dp"
android:textSize="30sp"
android:textSize="24sp"
android:fontFamily="@font/fontstyle"
android:textStyle="bold"
android:background="#f2f2f2"
android:textAlignment="center"
android:textColor="#131313"
@@ -29,7 +39,8 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
app:layout_constraintTop_toBottomOf="@+id/imageView"
android:gravity="center_horizontal" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -38,14 +49,14 @@
android:fontFamily="@font/fontstyle"
android:paddingLeft="10dp"
android:layout_marginTop="60dp"
android:layout_marginTop="15dp"
android:id="@+id/sign_in_text"
android:textSize="30sp"
android:textSize="24sp"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/imageView" />
app:layout_constraintTop_toBottomOf="@+id/titleapp" />
<EditText
android:id="@+id/username"
@@ -168,237 +179,9 @@
app:layout_constraintStart_toEndOf="@id/forgetpassword"
app:layout_constraintVertical_bias="0.0" />
<!-- <ProgressBar
android:id="@+id/sign_in_progressBar"
style="?android:attr/progressBarStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="184dp"
android:layout_marginTop="19dp"
android:layout_marginEnd="184dp"
android:layout_marginBottom="8dp"
android:visibility="invisible"
app:layout_constraintBottom_toTopOf="@id/login"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/divider" />
-->
</androidx.constraintlayout.widget.ConstraintLayout>
</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="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<RelativeLayout
android:id="@+id/wvHelp1"
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_marginTop="10dp"
android:layout_height="0dp"
android:layout_weight="0.1" >
<ImageView
android:layout_marginTop="10dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="center"
></ImageView>
</RelativeLayout>
<RelativeLayout
android:id="@+id/wvHelp3"
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_height="0dp"
android:layout_weight="0.1" >
<TextView
android:id="@+id/yourscore4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerInParent="true"
android:layout_marginTop="10dp"
android:textAlignment="center"
android:textColor="@color/colorPrimaryDark"
android:text="Login Here "
android:textSize="30sp"
/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/wvHelp"
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_height="0dp"
android:layout_weight="0.8" >
<EditText
android:id="@+id/contactnumber"
android:layout_width="280dp"
android:background="@drawable/text_back"
android:layout_height="40dp"
android:layout_marginTop="10dp"
android:paddingLeft="10dp"
android:drawablePadding="5dp"
android:layout_marginBottom="20dp"
android:layout_centerHorizontal="true"
android:textColorHint="@color/colorAccent"
android:hint="Contact Number"/>
<EditText
android:id="@+id/pasword"
android:layout_width="280dp"
android:layout_below="@id/contactnumber"
android:layout_height="40dp"
android:inputType="textPassword"
android:layout_marginTop="10dp"
android:background="@drawable/text_back"
android:paddingLeft="10dp"
android:drawablePadding="5dp"
android:layout_marginBottom="20dp"
android:layout_centerHorizontal="true"
android:textColorHint="@color/colorAccent"
android:hint="Password"/>
<TextView
android:id="@+id/forgetpassword"
android:layout_width="wrap_content"
android:layout_below="@id/createaccount"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:paddingLeft="2dp"
android:drawablePadding="5dp"
android:layout_marginBottom="20dp"
android:text="Forget Password ?"
android:textSize="19dp"
android:textStyle="bold"
android:layout_centerHorizontal="true"
/>
<TextView
android:id="@+id/createaccount"
android:layout_width="wrap_content"
android:layout_below="@+id/login"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:paddingLeft="2dp"
android:drawablePadding="5dp"
android:layout_marginBottom="20dp"
android:text="Create Account"
android:textSize="19dp"
android:textStyle="bold"
android:layout_centerHorizontal="true"
/>
<Button
android:id="@+id/login"
android:layout_height="wrap_content"
android:layout_below="@id/pasword"
android:layout_width="206dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="20dp"
android:background="@drawable/buttonshape"
android:textColor="#ffffff"
android:text="Login"/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/wvHelpj"
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_height="0dp"
android:layout_weight="0.1" >
</RelativeLayout>
</LinearLayout>-->
</LinearLayout>

View File

@@ -1,18 +0,0 @@
<?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">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -1,410 +0,0 @@
<?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"
android:id="@+id/layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true">
<LinearLayout
android:layout_marginTop="@android:dimen/app_icon_size"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#EEEEEE"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="100dp"
android:background="#EEE"
android:gravity="center"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:fontFamily="@font/fontstyle"
android:gravity="center"
android:text="Patient Details "
android:textColor="#131313"
android:textSize="26sp"
android:textStyle="bold">
</TextView>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="-23dp"
android:layout_marginRight="10dp"
android:orientation="vertical">
//second linear
//third linear
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="10dp"
android:orientation="vertical">
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:layout_marginRight="5dp"
android:layout_weight="1"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<!-- <TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=" 1. Enter the ct number"
android:textSize="20sp"
></TextView>
<EditText
android:layout_marginTop="20dp"
android:hint="5000"
android:id="@+id/df"
android:layout_marginBottom="30dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
<View
android:layout_width="fill_parent"
android:layout_height="2dp"
android:layout_below="@id/d"
android:background="@android:color/darker_gray" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=" 21. Enter the ct number"
android:textSize="20sp"
></TextView>
<EditText
android:layout_marginTop="20dp"
android:hint=" 5000"
android:id="@+id/d"
android:layout_marginBottom="30dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
<View
android:layout_width="match_parent"
android:layout_height="2dp"
android:layout_below="@id/d"
android:background="@android:color/darker_gray" />
<TableLayout
android:id="@+id/table45"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:layout_marginTop="25dp">
<TextView
android:text=" Patient Gender"
android:textSize="18sp"
android:textColor="@android:color/white"
android:layout_marginLeft="10dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_column="1" />
<Spinner
android:id="@+id/spinner"
android:layout_marginLeft="20dp"
android:textColor="@android:color/white"
android:layout_width="180dp"
android:layout_height="wrap_content" />
</TableRow>
</TableLayout>
-->
<TableLayout
android:id="@+id/table45"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow android:layout_marginTop="25dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_marginLeft="10dp"
android:fontFamily="@font/fontstyle"
android:paddingStart="5dp"
android:paddingLeft="5dp"
android:id="@+id/gender"
android:text="Patient Gender *"
android:textColor="@android:color/darker_gray"
android:textSize="18sp" />
<Spinner
android:id="@+id/spinner_gender"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp" />
</TableRow>
</TableLayout>
<View
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="@android:color/darker_gray" />
<EditText
android:id="@+id/patientid"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:fontFamily="@font/fontstyle"
android:hint="Patient ID *"
android:inputType="textNoSuggestions"
android:paddingStart="5dp"
android:paddingLeft="5dp"
android:singleLine="true" />
<EditText
android:id="@+id/time_data"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:drawableEnd="@android:drawable/ic_menu_edit"
android:fontFamily="@font/fontstyle"
android:hint="Time *"
android:inputType="textEmailAddress"
android:maxLines="1"
android:paddingStart="5dp"
android:paddingLeft="5dp"
android:singleLine="true"
android:drawableRight="@android:drawable/ic_menu_edit" />
<!-- android:textColorHint="@color/colorWhite"
android:textColor="@color/colorWhite"
-->
<EditText
android:id="@+id/date_data"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:drawableEnd="@android:drawable/ic_menu_edit"
android:drawableRight="@android:drawable/ic_menu_edit"
android:fontFamily="@font/fontstyle"
android:hint="Date *"
android:maxLength="12"
android:maxLines="1"
android:paddingStart="5dp"
android:paddingLeft="5dp"
android:singleLine="true" />
<EditText
android:id="@+id/dob"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:drawableEnd="@android:drawable/ic_menu_today"
android:drawableRight="@android:drawable/ic_menu_edit"
android:fontFamily="@font/fontstyle"
android:hint="Date of Birth"
android:maxLines="1"
android:paddingStart="5dp"
android:paddingLeft="5dp"
android:singleLine="true" />
<EditText
android:id="@+id/NIRTLab"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:fontFamily="@font/fontstyle"
android:hint="NIRT Lab Number *"
android:inputType="number"
android:maxLines="1"
android:paddingStart="5dp"
android:paddingLeft="5dp"
android:singleLine="true" />
<TableLayout
android:id="@+id/table4"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow android:layout_marginTop="25dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_marginLeft="10dp"
android:fontFamily="@font/fontstyle"
android:paddingStart="5dp"
android:paddingLeft="5dp"
android:text="Type of Sample *"
android:textColor="@android:color/darker_gray"
android:textSize="18sp" />
<Spinner
android:id="@+id/spinner_sample"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp" />
</TableRow>
</TableLayout>
<EditText
android:id="@+id/NikshayID"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:fontFamily="@font/fontstyle"
android:hint="Nikshay ID *"
android:inputType="number"
android:maxLines="1"
android:paddingStart="5dp"
android:paddingLeft="5dp"
android:singleLine="true" />
<EditText
android:id="@+id/Email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:hint="Email"
android:maxLines="1"
android:paddingStart="5dp"
android:paddingLeft="5dp"
android:singleLine="true"
android:visibility="gone" />
<EditText
android:id="@+id/SPINTubeID"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"
android:fontFamily="@font/fontstyle"
android:hint="SPIN Tube ID *"
android:inputType="number"
android:maxLines="1"
android:paddingStart="5dp"
android:paddingLeft="5dp"
android:singleLine="true" />
<TableLayout
android:id="@+id/table456"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:layout_marginTop="25dp"
android:layout_marginBottom="40dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_marginLeft="10dp"
android:fontFamily="@font/fontstyle"
android:paddingStart="5dp"
android:paddingLeft="5dp"
android:text="Tube Validity * "
android:textColor="@android:color/darker_gray"
android:textSize="18sp" />
<Spinner
android:id="@+id/spinner_validity"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp" />
</TableRow>
</TableLayout>
<Button
android:id="@+id/register"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="40dp"
android:layout_marginEnd="40dp"
android:layout_marginBottom="240dp"
android:background="@android:color/holo_blue_dark"
android:text="Add Patient"
android:textAllCaps="false"
android:textSize="20sp" />
</LinearLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>

View File

@@ -0,0 +1,227 @@
<?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"
android:id="@+id/layout"
android:layout_width="match_parent"
android:background="#fff"
android:layout_height="match_parent"
>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true">
<LinearLayout
android:layout_marginTop="@android:dimen/app_icon_size"
android:background="#fff"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="180dp"
android:gravity="center"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="70dp"
android:src="@drawable/logo_app"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:gravity="center"
android:text="Patient Details "
android:textColor="#131313"
android:textSize="24sp"
android:textStyle="bold">
</TextView>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:layout_marginTop="-23dp"
android:layout_marginRight="10dp"
android:orientation="vertical">
//second linear
//third linear
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="10dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:background="#fff"
android:layout_height="match_parent"
android:orientation="vertical">
<EditText
android:id="@+id/patientid"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="20dp"
android:fontFamily="@font/fontstyle"
android:hint="Patient ID *"
android:inputType="textNoSuggestions"
android:paddingStart="5dp"
android:paddingLeft="5dp"
android:singleLine="true" />
<TableLayout
android:id="@+id/table45"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow android:layout_marginTop="20dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_marginLeft="10dp"
android:fontFamily="@font/fontstyle"
android:paddingStart="5dp"
android:paddingLeft="5dp"
android:id="@+id/gender"
android:text="Patient Gender *"
android:textColor="@android:color/darker_gray"
android:textSize="18sp" />
<Spinner
android:id="@+id/spinner_gender"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp" />
</TableRow>
</TableLayout>
<EditText
android:id="@+id/dob"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="20dp"
android:fontFamily="@font/fontstyle"
android:hint="Date of Birth"
android:drawableEnd="@android:drawable/ic_menu_today"
android:drawableRight="@android:drawable/ic_menu_edit"
android:maxLines="1"
android:paddingStart="5dp"
android:paddingLeft="5dp"
android:singleLine="true" />
<EditText
android:id="@+id/age"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="20dp"
android:fontFamily="@font/fontstyle"
android:hint="Age *"
android:maxLines="1"
android:paddingStart="5dp"
android:paddingLeft="5dp"
android:singleLine="true" />
<EditText
android:id="@+id/NikshayID"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="20dp"
android:fontFamily="@font/fontstyle"
android:hint="Nikshay ID *"
android:inputType="number"
android:maxLines="1"
android:paddingStart="5dp"
android:paddingLeft="5dp"
android:singleLine="true" />
<EditText
android:id="@+id/Email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:hint="Email"
android:maxLines="1"
android:paddingStart="5dp"
android:paddingLeft="5dp"
android:singleLine="true"
android:visibility="gone" />
<Button
android:id="@+id/next"
android:layout_width="match_parent"
android:layout_marginTop="50dp"
android:background="@drawable/buttonshape"
android:layout_height="wrap_content"
android:layout_marginStart="100dp"
android:layout_marginBottom="200dp"
android:layout_marginEnd="100dp"
android:textColor="@android:color/white"
android:text="Next"
android:textAllCaps="false"
android:textSize="20sp" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>

View File

@@ -0,0 +1,552 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<LinearLayout
android:layout_marginTop="@android:dimen/app_icon_size"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="100dp"
android:gravity="center"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:gravity="center"
android:text="Test Report"
android:textColor="#131313"
android:textSize="24sp"
android:textStyle="bold">
</TextView>
</LinearLayout>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true">
<TableLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:text="Date : "
android:textSize="18sp"
android:lines="2"
android:layout_weight="5"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1" />
<TextView
android:layout_width="0dp"
android:textSize="18sp"
android:id="@+id/dater"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:text="Time : "
android:textSize="18sp"
android:lines="2"
android:layout_weight="5"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1" />
<TextView
android:layout_width="0dp"
android:textSize="18sp"
android:id="@+id/timer"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:text="Patient ID : "
android:textSize="18sp"
android:lines="2"
android:layout_weight="5"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1" />
<TextView
android:layout_width="0dp"
android:textSize="18sp"
android:id="@+id/patient_idr"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_weight="5"
android:lines="2"
android:text="Patient Gender :"
android:textSize="18sp" />
<TextView
android:layout_width="0dp"
android:textSize="18sp"
android:id="@+id/patient_genderr"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_weight="5"
android:lines="2"
android:text="Date of Birth :"
android:textSize="18sp" />
<TextView
android:layout_width="0dp"
android:textSize="18sp"
android:id="@+id/patien_dobr"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_weight="5"
android:lines="2"
android:text="Age :"
android:textSize="18sp" />
<TextView
android:layout_width="0dp"
android:textSize="18sp"
android:id="@+id/patient_ager"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_weight="5"
android:lines="2"
android:text="Result :"
android:textSize="18sp" />
<TextView
android:layout_width="0dp"
android:textSize="18sp"
android:id="@+id/patient_resultr"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_weight="5"
android:lines="2"
android:text="Nikshay ID :"
android:textSize="18sp" />
<TextView
android:layout_width="0dp"
android:textSize="18sp"
android:id="@+id/patient_nikshayidr"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_weight="5"
android:lines="2"
android:text="NIRT Lab Number :"
android:textSize="18sp" />
<TextView
android:layout_width="0dp"
android:textSize="18sp"
android:id="@+id/patient_nirtr"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:text="SPIN Tube ID :"
android:textSize="18sp"
android:lines="2"
android:layout_weight="5"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1" />
<TextView
android:layout_width="0dp"
android:textSize="18sp"
android:id="@+id/patient_spintuber"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:text="Type of Sample :"
android:textSize="18sp"
android:lines="2"
android:layout_weight="5"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1" />
<TextView
android:layout_width="0dp"
android:textSize="18sp"
android:id="@+id/patient_typesampler"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:text="Tube Validity :"
android:textSize="18sp"
android:lines="2"
android:layout_weight="5"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1" />
<TextView
android:layout_width="0dp"
android:textSize="18sp"
android:id="@+id/patient_tubevisibler"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
</TableLayout>
</ScrollView>
</LinearLayout>
</LinearLayout>
</LinearLayout>

View File

@@ -0,0 +1,222 @@
<?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="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<RelativeLayout
android:id="@+id/wvHelp1"
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_height="match_parent"
>
<ImageView
android:layout_marginTop="10dp"
android:layout_centerInParent="true"
android:layout_width="match_parent"
android:layout_height="100dp"
android:src="@drawable/logo_app"
></ImageView>
</RelativeLayout>
</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="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/finalback"
android:orientation="vertical" >
<RelativeLayout
android:id="@+id/wvHelp1"
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_height="0dp"
android:layout_weight="0.1" >
<ImageView
android:layout_marginTop="10dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="center"
android:src="@drawable/logo"
></ImageView>
</RelativeLayout>
<RelativeLayout
android:id="@+id/wvHelp3"
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_height="0dp"
android:layout_weight="0.2" >
<TextView
android:id="@+id/yourscore4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:fontFamily="serif-monospace"
android:layout_alignParentTop="true"
android:layout_marginTop="5dp"
android:textAlignment="center"
android:textColor="@color/colorAccent"
android:text="FARMER AND AGRI STARTUP SUPPLY LINKAGE APPLICATION "
android:textSize="22sp"
/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/wvHelp"
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_height="0dp"
android:layout_weight="0.3" >
<TextView
android:id="@+id/yourscoreg"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:padding="20sp"
android:textColor="#FF9933"
android:textAlignment="center"
android:fontFamily="serif-monospace"
android:layout_centerInParent="true"
android:textStyle="bold"
android:layout_alignParentTop="true"
android:layout_marginTop="5dp"
android:text="CONNECTING KITCHEN TO FARM PRODUCE "
android:textSize="20sp"
/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/wvHelpj"
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_height="0dp"
android:layout_weight="0.5" >
</RelativeLayout>
</LinearLayout>-->

View File

@@ -0,0 +1,196 @@
<?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"
android:id="@+id/layout"
android:layout_width="match_parent"
android:background="#fff"
android:fitsSystemWindows="true"
android:layout_height="match_parent"
>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true">
<LinearLayout
android:layout_marginTop="@android:dimen/app_icon_size"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="180dp"
android:gravity="center"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="70dp"
android:src="@drawable/logo_app"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:gravity="center"
android:text="Test Details "
android:textColor="#131313"
android:textSize="24sp"
android:textStyle="bold">
</TextView>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="-23dp"
android:layout_marginRight="10dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="10dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<EditText
android:id="@+id/NIRTLab"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="20dp"
android:textSize="18sp"
android:hint="NIRT Lab Number *"
android:inputType="number"
android:maxLines="1"
android:paddingStart="5dp"
android:paddingLeft="5dp"
android:singleLine="true" />
<EditText
android:id="@+id/SPINTubeID"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="20dp"
android:hint="SPIN Tube ID *"
android:inputType="number"
android:maxLines="1"
android:paddingStart="5dp"
android:paddingLeft="5dp"
android:textSize="18sp"
android:singleLine="true" />
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow android:layout_marginTop="25dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_marginLeft="10dp"
android:paddingStart="5dp"
android:paddingLeft="5dp"
android:text="Type of Sample *"
android:textColor="@android:color/darker_gray"
android:textSize="18sp" />
<Spinner
android:id="@+id/spinner_sample"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp" />
</TableRow>
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:layout_marginTop="30dp"
android:layout_marginBottom="40dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_marginLeft="10dp"
android:paddingStart="5dp"
android:paddingLeft="5dp"
android:text="Tube Validity * "
android:textColor="@android:color/darker_gray"
android:textSize="18sp" />
<Spinner
android:id="@+id/spinner_validity"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp" />
</TableRow>
</TableLayout>
<Button
android:id="@+id/startTest"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="80dp"
android:layout_marginEnd="80dp"
android:layout_marginTop="50dp"
android:textColor="@android:color/white"
android:layout_marginBottom="120dp"
android:background="@drawable/buttonshape"
android:text="Start Test"
android:textAllCaps="false"
android:textSize="20sp" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>

View File

@@ -3,6 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="180dp"
xmlns:app="http://schemas.android.com/apk/res-auto"
@@ -11,7 +12,6 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="matrix"
android:layout_marginTop="20dp"
android:src="@color/colorPrimary"
></ImageView>
@@ -28,13 +28,6 @@
android:id="@+id/image"
android:textColor="@android:color/white"
></com.ShanMukhaInnovations.ArrestTB.FontAwesome>
<!-- <TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Arresttb"
android:layout_below="@id/image"
android:padding="10dp"
android:id="@+id/not_sign_in"></TextView>-->
<TextView
android:layout_width="wrap_content"

View File

@@ -0,0 +1,433 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<LinearLayout
android:layout_marginTop="@android:dimen/app_icon_size"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="180dp"
android:gravity="center"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="70dp"
android:src="@drawable/logo_app"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:gravity="center"
android:text="Test Report"
android:textColor="#131313"
android:textSize="24sp"
android:textStyle="bold">
</TextView>
</LinearLayout>
<TableLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<View
android:layout_marginLeft="40dp"
android:layout_marginRight="40dp"
android:layout_width="fill_parent"
android:layout_height="4dp"
android:background="@color/colorPrimary" />
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:text="Patient ID : "
android:textSize="18sp"
android:lines="2"
android:layout_weight="5"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1" />
<TextView
android:layout_width="0dp"
android:textSize="18sp"
android:text="Female"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_weight="5"
android:lines="2"
android:text="Patient Gender :"
android:textSize="18sp" />
<TextView
android:layout_width="0dp"
android:textSize="18sp"
android:text="Female"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_weight="5"
android:lines="2"
android:text="Date of Birth :"
android:textSize="18sp" />
<TextView
android:layout_width="0dp"
android:textSize="18sp"
android:text="Female"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_weight="5"
android:lines="2"
android:text="Age :"
android:textSize="18sp" />
<TextView
android:layout_width="0dp"
android:textSize="18sp"
android:text="Female"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_weight="5"
android:lines="2"
android:text="Nikshay ID :"
android:textSize="18sp" />
<TextView
android:layout_width="0dp"
android:textSize="18sp"
android:text="Female"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_weight="5"
android:lines="2"
android:text="NIRT Lab Number :"
android:textSize="18sp" />
<TextView
android:layout_width="0dp"
android:textSize="18sp"
android:text="Female"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:text="SPIN Tube ID :"
android:textSize="18sp"
android:lines="2"
android:layout_weight="5"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1" />
<TextView
android:layout_width="0dp"
android:textSize="18sp"
android:text="Female"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:text="Type of Sample :"
android:textSize="18sp"
android:lines="2"
android:layout_weight="5"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1" />
<TextView
android:layout_width="0dp"
android:textSize="18sp"
android:text="Female"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TableRow
android:padding="15dp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
>
<TextView
android:text="Tube Validity :"
android:textSize="18sp"
android:lines="2"
android:layout_weight="5"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_column="1" />
<TextView
android:layout_width="0dp"
android:textSize="18sp"
android:text="Female"
android:layout_weight="5"
android:layout_height="wrap_content" />
</TableRow>
<View
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#eee" />
</TableLayout>
</TableLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>

View File

@@ -18,7 +18,7 @@
<item
android:id="@+id/nav_contact_us"
android:title="Contact Us" />
android:title="About" />
<item
android:id="@+id/logout"

View File

@@ -2,5 +2,5 @@
<resources>
<color name="colorPrimary">@android:color/holo_blue_dark</color>
<color name="colorPrimaryDark">#00574B</color>
<color name="colorAccent">#131313</color>
<color name="colorAccent">#696969</color>
</resources>

View File

@@ -21,5 +21,4 @@
</string-array>
</resources>

View File

@@ -1,6 +1,7 @@
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>