Commit 0a1efc2c authored by Dharmakeerthi's avatar Dharmakeerthi

add vehicle maintenance Files and edit the interfaces

parent f7e35db0
package com.appsnipp.education;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.appsnipp.education", appContext.getPackageName());
}
}
package com.sliit.smartserviceassistant;
/**
* Created by kapil on 05/10/18.
*/
import android.content.Context;
import android.support.design.widget.BottomNavigationView;
......
package com.sliit.smartserviceassistant;
import android.content.Context;
import android.content.SharedPreferences;
public class DarkModePrefManager {
SharedPreferences pref;
SharedPreferences.Editor editor;
Context _context;
// shared pref mode
int PRIVATE_MODE = 0;
// Shared preferences file name
private static final String PREF_NAME = "education-dark-mode";
private static final String IS_NIGHT_MODE = "IsNightMode";
public DarkModePrefManager(Context context) {
this._context = context;
pref = _context.getSharedPreferences(PREF_NAME, PRIVATE_MODE);
editor = pref.edit();
}
public void setDarkMode(boolean isFirstTime) {
editor.putBoolean(IS_NIGHT_MODE, isFirstTime);
editor.commit();
}
public boolean isNightMode() {
return pref.getBoolean(IS_NIGHT_MODE, true);
}
}
\ No newline at end of file
package com.sliit.smartserviceassistant;
public class DataModal {
// string variables for our name and job
private String vehicle_type;
private String brand;
private String model;
private String engine_type;
private String mileage_range;
private String mileage;
private int oil_filter;
private int washer_plug_drain;
private int Wheel_alignment_and_balance;
private int Fuel_filter;
private int Break_fluid;
private int Transmission_Fluid;
private int clutch;
private int Engine_Oil;
private int Dust_and_pollen_filter;
private int Air_clean_filter;
private int Spark_plug;
private int Break_and_Clutch_oil;
private int Break_Pads;
private int Coolant;
public float getPredictedVal() {
return PredictedVal;
}
private float PredictedVal;
public void setVehicle_type(String vehicle_type) {
this.vehicle_type = vehicle_type;
}
public void setBrand(String brand) {
this.brand = brand;
}
public void setModel(String model) {
this.model = model;
}
public void setEngine_type(String engine_type) {
this.engine_type = engine_type;
}
public void setMake_year(String make_year) {
this.make_year = make_year;
}
public void setOil_filter(int oil_filter) {
this.oil_filter = oil_filter;
}
public void setWasher_plug_drain(int washer_plug_drain) {
this.washer_plug_drain = washer_plug_drain;
}
public void setWheel_alignment_and_balance(int wheel_alignment_and_balance) {
Wheel_alignment_and_balance = wheel_alignment_and_balance;
}
public void setFuel_filter(int fuel_filter) {
Fuel_filter = fuel_filter;
}
public void setBreak_fluid(int break_fluid) {
Break_fluid = break_fluid;
}
public void setTransmission_Fluid(int transmission_Fluid) {
Transmission_Fluid = transmission_Fluid;
}
public void setClutch(int clutch) {
this.clutch = clutch;
}
public void setEngine_Oil(int engine_Oil) {
Engine_Oil = engine_Oil;
}
public void setDust_and_pollen_filter(int dust_and_pollen_filter) {
Dust_and_pollen_filter = dust_and_pollen_filter;
}
public void setAir_clean_filter(int air_clean_filter) {
Air_clean_filter = air_clean_filter;
}
public void setSpark_plug(int spark_plug) {
Spark_plug = spark_plug;
}
public void setBreak_and_Clutch_oil(int break_and_Clutch_oil) {
Break_and_Clutch_oil = break_and_Clutch_oil;
}
public void setBreak_Pads(int break_Pads) {
Break_Pads = break_Pads;
}
public void setCoolant(int coolant) {
Coolant = coolant;
}
public int getOil_filter() {
return oil_filter;
}
public int getWasher_plug_drain() {
return washer_plug_drain;
}
public int getWheel_alignment_and_balance() {
return Wheel_alignment_and_balance;
}
public int getFuel_filter() {
return Fuel_filter;
}
public int getBreak_fluid() {
return Break_fluid;
}
public int getTransmission_Fluid() {
return Transmission_Fluid;
}
public int getClutch() {
return clutch;
}
public int getEngine_Oil() {
return Engine_Oil;
}
public int getDust_and_pollen_filter() {
return Dust_and_pollen_filter;
}
public int getAir_clean_filter() {
return Air_clean_filter;
}
public int getSpark_plug() {
return Spark_plug;
}
public int getBreak_and_Clutch_oil() {
return Break_and_Clutch_oil;
}
public int getBreak_Pads() {
return Break_Pads;
}
public int getCoolant() {
return Coolant;
}
public void setMileage_range(String mileage_range) {
this.mileage_range = mileage_range;
}
public void setMileage(String mileage) {
this.mileage = mileage;
}
private String make_year;
public String getVehicle_type() {
return vehicle_type;
}
public String getBrand() {
return brand;
}
public String getModel() {
return model;
}
public String getEngine_type() {
return engine_type;
}
public String getMake_year() {
return make_year;
}
public String getMileage_range() {
return mileage_range;
}
public String getMileage() {
return mileage;
}
public DataModal(String vehicle_type,
String brand,
String model,
String engine_type,
String make_year,
String mileage_range,
String mileage,
int oil_filter,
int washer_plug_drain,
int Wheel_alignment_and_balance,
int Fuel_filter,
int Break_fluid,
int Transmission_Fluid,
int clutch,
int Engine_Oil,
int Dust_and_pollen_filter,
int Air_clean_filter,
int Spark_plug,
int Break_and_Clutch_oil,
int Break_Pads,
int Coolant
) {
this.vehicle_type=vehicle_type;
this.brand=brand;
this.model=model;
this.engine_type=engine_type;
this.make_year=make_year;
this.mileage_range=mileage_range;
this.mileage=mileage;
this.oil_filter=oil_filter;
this.washer_plug_drain=washer_plug_drain;
this.Wheel_alignment_and_balance=Wheel_alignment_and_balance;
this.Fuel_filter=Fuel_filter;
this.Break_fluid=Break_fluid;
this.Transmission_Fluid=Transmission_Fluid;
this.clutch=clutch;
this.Engine_Oil=Engine_Oil;
this.Dust_and_pollen_filter=Dust_and_pollen_filter;
this.Air_clean_filter=Air_clean_filter;
this.Spark_plug=Spark_plug;
this.Break_and_Clutch_oil=Break_and_Clutch_oil;
this.Break_Pads=Break_Pads;
this.Coolant=Coolant;
// this.name = name;
//this.job = job;
}
}
\ No newline at end of file
package com.sliit.smartserviceassistant;
import com.google.gson.annotations.SerializedName;
public class DataModal1 {
private String username;
private String email;
private String first_name;
private String last_name;
private String password;
private String password2;
private String date_of_birth;
data data1;
public void setUsername(String username) {
this.username = username;
}
public void setEmail(String email) {
this.email = email;
}
public void setFirst_name(String first_name) {
this.first_name = first_name;
}
public void setLast_name(String last_name) {
this.last_name = last_name;
}
public void setPassword(String password) {
this.password = password;
}
public void setPassword2(String password2) {
this.password2 = password2;
}
public void setDate_of_birth(String date_of_birth) {
this.date_of_birth = date_of_birth;
}
public String getUsername() {
return username;
}
public String getEmail() {
return email;
}
public String getFirst_name() {
return first_name;
}
public String getLast_name() {
return last_name;
}
public String getPassword() {
return password;
}
public String getPassword2() {
return password2;
}
public String getDate_of_birth() {
return date_of_birth;
}
public DataModal1(String username,String email,String first_name,String last_name,String password,
String password2,String date_of_birth){
this.username=username;
this.email=email;
this.first_name=first_name;
this.last_name=last_name;
this.password=password;
this.password2=password2;
this.date_of_birth=date_of_birth;
}
}
package com.sliit.smartserviceassistant;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class DataModal2 {
private String vehicle_type;
private String brand;
private String model;
private String engine_type;
private String mileage_range;
private String mileage;
List<Integer> predictedVals=new ArrayList<Integer>();
public List<Integer> getPredictedVals() {
return predictedVals;
}
public Float getPredicted_data() {
return predicted_data;
}
public void setPredicted_data(Float predicted_data) {
this.predicted_data = predicted_data;
}
private Float predicted_data;
public void setVehicle_type(String vehicle_type) {
this.vehicle_type = vehicle_type;
}
public void setBrand(String brand) {
this.brand = brand;
}
public void setModel(String model) {
this.model = model;
}
public void setEngine_type(String engine_type) {
this.engine_type = engine_type;
}
public void setMileage_range(String mileage_range) {
this.mileage_range = mileage_range;
}
public void setMileage(String mileage) {
this.mileage = mileage;
}
public void setMake_year(String make_year) {
this.make_year = make_year;
}
public String getVehicle_type() {
return vehicle_type;
}
public String getBrand() {
return brand;
}
public String getModel() {
return model;
}
public String getEngine_type() {
return engine_type;
}
public String getMileage_range() {
return mileage_range;
}
public String getMileage() {
return mileage;
}
public String getMake_year() {
return make_year;
}
private String make_year;
public DataModal2(String vehicle_type,
String brand,
String model,
String engine_type,
String make_year,
String mileage_range,
String mileage,
Float predicted_data
) {
this.vehicle_type=vehicle_type;
this.brand=brand;
this.model=model;
this.engine_type=engine_type;
this.make_year=make_year;
this.mileage_range=mileage_range;
this.mileage=mileage;
this.predicted_data=predicted_data;
}
}
package com.appsnipp.education;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ProgressBar;
import android.widget.TextView;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.CompoundButton;
import android.widget.Spinner;
import android.widget.Switch;
import android.widget.TextView;
import android.widget.Toast;
import android.widget.ToggleButton;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import android.widget.Toast;
import com.squareup.okhttp.Callback;
import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.Request;
import com.squareup.okhttp.Response;
import java.sql.CallableStatement;
import java.sql.DriverManager;
import java.sql.Types;
import java.sql.Connection;
import java.sql.DriverManager;
public class Loging extends AppCompatActivity {
//
// EditText textInputEditTextUsername,textInputEditTextPassword;
Button buttonLogin;
TextView textViewLoging;
ProgressBar progressBar;
Intent i;
Connection conexion=null;
TextView textUsername,textPassword;
String Confirmusername;
String Confirmpassword;
private OkHttpClient mclient;
private String strURL;
//="http://192.168.8.103:8000/api/login?username=hasith&user_pass=1234";//GET
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//for changing status bar icon colors
if(Build.VERSION.SDK_INT>= Build.VERSION_CODES.M){
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
}
setContentView(R.layout.activity_loging);
textUsername = (TextView) findViewById(R.id.editTextusername);
textPassword = (TextView) findViewById(R.id.editTextPassword);
Button sendButton = (Button) findViewById(R.id.cirLoginButton);
sendButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Confirmusername=textUsername.getText().toString();
Confirmpassword=textPassword.getText().toString();
strURL ="http://192.168.1.6:8000/api/login?username="+Confirmusername+"&user_pass="+Confirmpassword;
mclient=new OkHttpClient();
Request request= new Request.Builder().url(strURL).build();
mclient.newCall(request).enqueue(new Callback() {
@Override
public void onFailure(Request request, IOException e) {
}
@Override
public void onResponse(Response response) throws IOException {
if(response.isSuccessful())
{
String strJson=response.body().string();
System.out.println(strJson);
if(strJson.equals("ok")==true){
//Toast.makeText(Loging.this, "You form is sucessfull", Toast.LENGTH_SHORT).show();
Intent k = new Intent(Loging.this, MainActivity.class);
startActivity(k);
finish();
}
}else{
System.out.println("fail");
}
}
});
}
});
}
//
public void onLoginClick(View View){
startActivity(new Intent(this,SignUp.class));
overridePendingTransition(R.anim.slide_in_right,R.anim.stay);
}
}
package com.sliit.smartserviceassistant;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.sliit.smartserviceassistant.insurance.InsuranceMainActivity;
import com.sliit.smartserviceassistant.maintenancedetails.MaintenanceDetailsMainActivity;
import com.sliit.smartserviceassistant.repairmethods.RepairMethodsMainActivity;
import com.sliit.smartserviceassistant.spareparts.SparePartsMainActivity;
public class MainActivity extends AppCompatActivity {
private Button btn_insurance;
private Button btn_maintenance;
private Button btn_repair_methods;
private Button btn_spare_parts;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// Button navigation to insurance function
btn_insurance = findViewById(R.id.btn_ins);
btn_insurance.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(MainActivity.this, InsuranceMainActivity.class);
startActivity(intent);
}
});
// Button navigation to maintenance function
btn_maintenance = findViewById(R.id.btn_maintenance_details);
btn_maintenance.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(MainActivity.this, MaintenanceDetailsMainActivity.class);
startActivity(intent);
}
});
// Button navigation to repair methods function
btn_repair_methods = findViewById(R.id.btn_repair_methods);
btn_repair_methods.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(MainActivity.this, RepairMethodsMainActivity.class);
startActivity(intent);
}
});
// Button navigation to insurance function
btn_spare_parts = findViewById(R.id.btn_spare_parts_price);
btn_spare_parts.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(MainActivity.this, SparePartsMainActivity.class);
startActivity(intent);
}
});
}
}
\ No newline at end of file
package com.appsnipp.education;
package com.sliit.smartserviceassistant;
import android.content.Intent;
import android.graphics.Bitmap;
......
package com.appsnipp.education;
package com.sliit.smartserviceassistant;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
......@@ -370,7 +370,7 @@ public class PredictedMileage extends AppCompatActivity implements AdapterView.O
// builder and passing our base url
Retrofit retrofit = new Retrofit.Builder()
.baseUrl("http://192.168.1.6:8000/api/")
.baseUrl("http://192.168.1.101:8000/api/")
.addConverterFactory(GsonConverterFactory.create())
.build();
// Gson gson = new Gson();
......@@ -379,7 +379,7 @@ public class PredictedMileage extends AppCompatActivity implements AdapterView.O
// passing data from our text fields to our modal class.
DataModal modal = new DataModal(vehicle_type, brand,model,engine_type,make_year,mileage_range,region,mileage,oil_filter,
DataModal modal = new DataModal(vehicle_type, brand,model,engine_type,make_year,mileage_range,mileage,oil_filter,
washer_plug_drain,Wheel_alignment_and_balance,Fuel_filter,Break_fluid,Transmission_Fluid,clutch,Engine_Oil,
Dust_and_pollen_filter,Air_clean_filter,Spark_plug,Break_and_Clutch_oil,Break_Pads,Coolant);
......@@ -392,7 +392,7 @@ public class PredictedMileage extends AppCompatActivity implements AdapterView.O
@Override
public void onResponse(Call<DataModal> call, Response<DataModal> response) {
Toast.makeText(PredictedMileage.this, "Data added to API", Toast.LENGTH_SHORT).show();
Toast.makeText(PredictedMileage.this, "Data added", Toast.LENGTH_SHORT).show();
DataModal responseFromAPI1 = response.body();
TextView textName19 = (TextView) findViewById(R.id.textView19);
......
package com.sliit.smartserviceassistant;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.Layout;
import android.view.View;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.TextView;
public class Prediction extends AppCompatActivity {
private ProgressBar progressBar;
private TextView textView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_prediction);
View test1View = findViewById(R.id.includepredictedSugestions);
test1View.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v){
startActivityForResult(new Intent(Prediction.this,predicted_suggestions.class), 0);
}
});
View test2View = findViewById(R.id.includepredicted_mileage);
test2View.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v){
startActivityForResult(new Intent(Prediction.this,PredictedMileage.class), 0);
}
});
int cal=10000;
PredictedMileage classc = new PredictedMileage();
int cal2=classc.cal2;
System.out.println(cal2);
float calfinal=((float)cal2/(float)cal);
System.out.println(calfinal);
float calfinal1= (float)calfinal*(float)100;
System.out.println(calfinal1);
int calfinal3=Math.round(calfinal1);
System.out.println(calfinal3);
progressBar=findViewById(R.id.progress_bar);
textView=findViewById(R.id.textView2);
progressBar.setProgress(calfinal3);
textView.setText(calfinal3+"%");
}
}
\ No newline at end of file
package com.sliit.smartserviceassistant;
import com.appsnipp.education.DataModal;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
public interface RetrofitAPI {
// as we are making a post request to post a data
// so we are annotating it with post
// and along with that we are passing a parameter as users
@POST("project-data-create/")
//on below line we are creating a method to post our data.
Call<DataModal> createPost(@Body DataModal dataModal);
}
package com.sliit.smartserviceassistant;
import com.sliit.smartserviceassistant.DataModal;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;
public interface RetrofitAPI1 {
// as we are making a post request to post a data
// so we are annotating it with post
// and along with that we are passing a parameter as users
@POST("register")
//on below line we are creating a method to post our data.
Call<DataModal1> createPost1(@Body DataModal1 dataModal1);
}
package com.sliit.smartserviceassistant;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;
public interface RetrofitAPI2 {
// as we are making a post request to post a data
// so we are annotating it with post
// and along with that we are passing a parameter as users
@POST("project-data-create1/")
//on below line we are creating a method to post our data.
Call<DataModal2> createPost2(@Body DataModal2 dataModal2);
}
package com.appsnipp.education;
import android.app.DatePickerDialog;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.icu.util.Calendar;
import android.os.Build;
import android.support.annotation.RequiresApi;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.Layout;
import android.util.Log;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.DatePicker;
import android.widget.TextView;
import android.widget.Toast;
import android.icu.util.Calendar;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.time.Month;
import java.time.Year;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
public class SignUp extends AppCompatActivity {
TextView textName20;
TextView textName21;
TextView textName22;
TextView textName23;
TextView textName24;
TextView textName25;
TextView textName26;
TextView text27;
private DatePickerDialog.OnDateSetListener mDateSetListener;
private static final String TAG = "MainActivity";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_sign_up);
changeStatusBarColor();
textName20 = (TextView) findViewById(R.id.editTextNameSignUp);
textName21 = (TextView) findViewById(R.id.editTextEmailSignUp);
textName22 = (TextView) findViewById(R.id.editTextFirstnameSignUp);
textName23 = (TextView) findViewById(R.id.editTextLastnameSignUp);
textName24 = (TextView) findViewById(R.id.editTextpaswordSignup);
textName25 = (TextView) findViewById(R.id.editTextConfirmpaswordSignUp);
textName26 = (TextView) findViewById(R.id.editTextDateOfBirthdaySignUp);
textName26.setOnFocusChangeListener(new View.OnFocusChangeListener() {
@RequiresApi(api = Build.VERSION_CODES.N)
@Override
public void onFocusChange(View v, boolean hasFocus) {
if(hasFocus) {
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(SignUp.this, android.R.style.Theme_Holo_Light_Dialog_MinWidth,mDateSetListener,year,month,day);
dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
dialog.show();
} else {
// Hide your calender here
}
}
});
// textName26.setOnClickListener(new View.OnClickListener() {
// @RequiresApi(api = Build.VERSION_CODES.N)
// @Override
// public void onClick(View view) {
//
//
// }
// });
mDateSetListener = new DatePickerDialog.OnDateSetListener() {
@Override
public void onDateSet(DatePicker datePicker, int year, int month, int day) {
month = month + 1;
Log.d(TAG, "onDateSet: mm/dd/yyy: " + month + "/" + day + "/" + year);
String date = year+"-"+month+"-"+ day;
textName26.setText(date);
}
};
final Button button = findViewById(R.id.cirRegisterButton);
button.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
if (textName20 .getText().toString().isEmpty() || textName21.getText().toString().isEmpty() || textName22.getText().toString().isEmpty()||
textName23.getText().toString().isEmpty() ||
textName24.getText().toString().isEmpty() ||
textName25.getText().toString().isEmpty()){
// textName26.getText().toString().isEmpty()) {
System.out.println("HY1");
Toast.makeText(SignUp.this, "Please enter All the values", Toast.LENGTH_SHORT).show();
return;
}else{
System.out.println("HY2");
postData1(textName20.getText().toString(), textName21.getText().toString(),textName22.getText().toString(),textName23.getText().toString(),textName24.getText().toString(),textName25.getText().toString(),textName26.getText().toString());
String FullName = textName22.getText().toString()+" "+textName23.getText().toString();
FileOutputStream outputStream;
try{
outputStream = openFileOutput("myfile",MODE_PRIVATE);
outputStream.write(FullName.getBytes());
outputStream.close();
}catch (Exception e){
e.printStackTrace();
}
Toast.makeText(SignUp.this, "Your Registration is sucessfull", Toast.LENGTH_SHORT).show();
}
}
});
}
private void postData1(String username,
String email, String first_name,String last_name,String password,String password2,String date_of_birth
){
// builder and passing our base url
Retrofit retrofit1 = new Retrofit.Builder()
.baseUrl("http://192.168.1.6:8000/api/")
.addConverterFactory(GsonConverterFactory.create())
.build();
RetrofitAPI1 retrofitAPI1 = retrofit1.create(RetrofitAPI1.class);
////
DataModal1 modal1 = new DataModal1(username,email,first_name,last_name,password,password2,date_of_birth);
////
Call<DataModal1> call1 = retrofitAPI1.createPost1(modal1);
////
////
////
call1.enqueue(new Callback<DataModal1>() {
@Override
public void onResponse(Call<DataModal1> call1, Response<DataModal1> response) {
// this method is called when we get response from our api.
Toast.makeText(SignUp.this, "Data added to API", Toast.LENGTH_SHORT).show();
DataModal1 responseFromAPI1 = response.body();
}
//
@Override
public void onFailure(Call<DataModal1> call1, Throwable t) {
// setting text to our text view when
// we get error response from API.
Toast.makeText(SignUp.this, "Data can't added to API", Toast.LENGTH_SHORT).show();
}
});
}
private void changeStatusBarColor() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
Window window = getWindow();
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
// window.setStatusBarColor(Color.TRANSPARENT);
window.setStatusBarColor(getResources().getColor(R.color.register_bk_color));
}
}
public void onLoginClick(View view){
startActivity(new Intent(this,Loging.class));
overridePendingTransition(R.anim.slide_in_left,android.R.anim.slide_out_right);
}
}
\ No newline at end of file
package com.sliit.smartserviceassistant;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
import android.widget.TextView;
import android.widget.Toast;
public class Testing extends AppCompatActivity implements AdapterView.OnItemSelectedListener {
TextView textName;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_testing);
// textName = (TextView) findViewById(R.id.textView2);
// Spinner spinner = findViewById(R.id.spinner1);
// ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,
// R.array.numbers, android.R.layout.simple_spinner_item);
// adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
// spinner.setAdapter(adapter);
// spinner.setOnItemSelectedListener(this);
}
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
String text = parent.getItemAtPosition(position).toString();
textName.setText("Hi " + text);
Toast.makeText(parent.getContext(), text, Toast.LENGTH_SHORT).show();
}
@Override
public void onNothingSelected(AdapterView<?> parent) {
}
}
\ No newline at end of file
package com.sliit.smartserviceassistant;
public class data {
public String getResponse() {
return response;
public String getResponse() {
return response;
}
String response;
String response;
}
package com.appsnipp.education;
package com.sliit.smartserviceassistant;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
......@@ -165,14 +165,21 @@ public class predicted_suggestions extends AppCompatActivity implements AdapterV
){
Retrofit retrofit2 = new Retrofit.Builder()
.baseUrl("http://192.168.1.6:8000/api/")
.baseUrl("http://192.168.1.101:8000/api/")
.addConverterFactory(GsonConverterFactory.create())
.build();
// "vehicle_type": "Car",
// "brand": "Toyota",
// "model": "amaze",
// "make_year": "Diesel",
// "engine_type": "2016",
// "mileage_range": "60000",
// "mileage": "856"
RetrofitAPI2 retrofitAPI2 = retrofit2.create(RetrofitAPI2.class);
DataModal2 modal2 = new DataModal2(vehicle_type, brand,model,make_year,engine_type,mileage_range,mileage,region,predicted_data);
DataModal2 modal2 = new DataModal2(vehicle_type,brand,model,make_year,engine_type,mileage_range,mileage,predicted_data);
......@@ -184,9 +191,10 @@ public class predicted_suggestions extends AppCompatActivity implements AdapterV
@Override
public void onResponse(Call<DataModal2> call2, Response<DataModal2> response2) {
Toast.makeText(predicted_suggestions.this, "Data added to API", Toast.LENGTH_SHORT).show();
Toast.makeText(predicted_suggestions.this, "Data added", Toast.LENGTH_SHORT).show();
List<Integer> predicted_value_ss=new ArrayList<Integer>();
predicted_value_ss=response2.body().getPredictedVals();
System.out.println(predicted_value_ss);
// Maintainces classone1 = new Maintainces();
// checking2=classone1.checking2;
......@@ -232,7 +240,7 @@ public class predicted_suggestions extends AppCompatActivity implements AdapterV
@Override
public void onFailure(Call<DataModal2> call2, Throwable t) {
Toast.makeText(predicted_suggestions.this, "Data can't added to API", Toast.LENGTH_SHORT).show();
Toast.makeText(predicted_suggestions.this, "Data can't added", Toast.LENGTH_SHORT).show();
System.out.println(t.getMessage());
}
......
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.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=".Changers_in_one">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/finalback">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<include layout="@layout/oil_filter" android:id="@+id/layoutoilfilter" />
<include layout="@layout/engine_oil" android:id="@+id/layoutengineoil" />
<include layout="@layout/washer_plug" android:id="@+id/layoutwasher_plug" />
<include layout="@layout/dust_filter" android:id="@+id/layoutdust_filter" />
<include layout="@layout/wheel_align" android:id="@+id/layoutwheel_align" />
<include layout="@layout/air_clean_filter" android:id="@+id/layoutair_clean_filter" />
<include layout="@layout/fuel_filter" android:id="@+id/layoutfuel_filter" />
<include layout="@layout/spark_plug" android:id="@+id/layoutspark_plug" />
<include layout="@layout/brake_fluid" android:id="@+id/layoutbrake_fluid" />
<include layout="@layout/break_oil" android:id="@+id/layoutbreak_oil" />
<include layout="@layout/transmission_fluid" android:id="@+id/layouttransmission_fluid" />
<include layout="@layout/break_pads" android:id="@+id/layoutbreak_pads" />
<include layout="@layout/clutch" android:id="@+id/layoutclutch" />
<include layout="@layout/coolant" android:id="@+id/layoutcoolant" />
</LinearLayout>
</ScrollView>
</android.support.constraint.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.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=".Changers_in_two">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/finalback"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<include
android:id="@+id/layoutoilfilter"
layout="@layout/oil_filter"
/>
<include
android:id="@+id/layoutengineoil"
layout="@layout/engine_oil"
/>
<include
android:id="@+id/layoutwasher_plug"
layout="@layout/washer_plug" />
<include
android:id="@+id/layoutdust_filter"
layout="@layout/dust_filter" />
<include
android:id="@+id/layoutwheel_align"
layout="@layout/wheel_align" />
<include
android:id="@+id/layoutair_clean_filter"
layout="@layout/air_clean_filter" />
<include
android:id="@+id/layoutfuel_filter"
layout="@layout/fuel_filter" />
<include
android:id="@+id/layoutspark_plug"
layout="@layout/spark_plug" />
<include
android:id="@+id/layoutbrake_fluid"
layout="@layout/brake_fluid" />
<include
android:id="@+id/layoutbreak_oil"
layout="@layout/break_oil" />
<include
android:id="@+id/layouttransmission_fluid"
layout="@layout/transmission_fluid" />
<include
android:id="@+id/layoutbreak_pads"
layout="@layout/break_pads" />
<include
android:id="@+id/layoutclutch"
layout="@layout/clutch" />
<include
android:id="@+id/layoutcoolant"
layout="@layout/coolant" />
</LinearLayout>
</ScrollView>
</android.support.constraint.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.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=".Prediction">
<ScrollView
android:id="@+id/scrollView2"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<RelativeLayout
android:layout_gravity="center"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:id="@+id/headerLayout"
android:layout_width="315dp"
android:layout_height="395dp"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_marginStart="24dp"
android:layout_marginTop="69dp"
android:layout_marginEnd="32dp"
android:background="@drawable/reports_header_bk"
android:paddingLeft="20dp"
android:paddingTop="6dp"
android:paddingRight="20dp"
android:paddingBottom="20dp">
<TextView
android:id="@+id/salesHeaderTextView"
style="@style/reportContentText"
android:layout_width="335dp"
android:layout_height="67dp"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_marginStart="0dp"
android:layout_marginTop="45dp"
android:layout_marginEnd="0dp"
android:gravity="center"
android:text="@string/total_mileage"
android:textSize="40sp" />
<TextView
android:id="@+id/f89"
style="@style/viewParent.headerText"
android:layout_width="335dp"
android:layout_height="wrap_content"
android:layout_below="@+id/salesHeaderTextView"
android:layout_alignParentStart="true"
android:layout_alignParentEnd="true"
android:layout_marginStart="0dp"
android:layout_marginTop="15dp"
android:layout_marginEnd="0dp"
android:layout_marginBottom="70dp"
android:gravity="center"
android:text="@string/_15_290_km"
android:textColor="@color/whiteTextColor" />
<TextView
android:id="@+id/textView2"
android:layout_width="67dp"
android:layout_height="51dp"
android:layout_alignStart="@+id/progress_bar"
android:layout_alignBottom="@+id/progress_bar"
android:layout_marginStart="45dp"
android:layout_marginBottom="60dp"
android:gravity="center"
android:text="60%"
android:textSize="30dp" />
<ProgressBar
android:id="@+id/progress_bar"
style="@style/CircularDeterminateProgressBar"
android:layout_width="172dp"
android:layout_height="192dp"
android:layout_alignParentStart="true"
android:layout_alignParentBottom="true"
android:layout_marginStart="67dp"
android:layout_marginTop="-64dp"
android:layout_marginBottom="34dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:progress="60" />
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="120dp">
<include
android:id="@+id/includepredictedSugestions"
layout="@layout/predict_suggesstions"
android:layout_width="359dp"
android:layout_height="99dp"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_alignParentBottom="true"
android:layout_marginStart="22dp"
android:layout_marginTop="20dp"
android:layout_marginEnd="30dp"
android:layout_marginBottom="1dp" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="120dp">
<include
android:id="@+id/includepredicted_mileage"
layout="@layout/predict_mileage"
android:layout_width="359dp"
android:layout_height="97dp"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_alignParentBottom="true"
android:layout_marginStart="22dp"
android:layout_marginTop="20dp"
android:layout_marginEnd="30dp"
android:layout_marginBottom="3dp" />
</RelativeLayout>
</LinearLayout>
</ScrollView>
<!-- <LinearLayout-->
<!-- android:id="@+id/cardLayout"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginTop="320dp"-->
<!-- app:layout_constraintEnd_toEndOf="parent"-->
<!-- app:layout_constraintStart_toStartOf="parent"-->
<!-- app:layout_constraintTop_toTopOf="@+id/headerLayout">-->
<!-- <android.support.v7.widget.CardView-->
<!-- style="@style/reportsCardStyle"-->
<!-- app:cardBackgroundColor="@color/whiteTextColor"-->
<!-- app:cardCornerRadius="16dp">-->
<!-- <LinearLayout-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_gravity="center"-->
<!-- android:orientation="vertical">-->
<!-- <TextView-->
<!-- android:id="@+id/this_month"-->
<!-- style="@style/reportContentText"-->
<!-- android:text="@string/this_month"-->
<!-- android:textColor="#79D0A3" />-->
<!-- <TextView-->
<!-- android:id="@+id/valuethismonth"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:text="@string/km"-->
<!-- android:textColor="@color/black"-->
<!-- android:textSize="27sp"-->
<!-- android:textStyle="bold" />-->
<!-- </LinearLayout>-->
<!-- </android.support.v7.widget.CardView>-->
<!-- <android.support.v7.widget.CardView-->
<!-- style="@style/reportsCardStyle"-->
<!-- app:cardBackgroundColor="@color/whiteTextColor"-->
<!-- app:cardCornerRadius="16dp">-->
<!-- <LinearLayout-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_gravity="center"-->
<!-- android:orientation="vertical">-->
<!-- <TextView-->
<!-- style="@style/reportContentText"-->
<!-- android:text="@string/thisweekkm"-->
<!-- android:textColor="#79D0A3" />-->
<!-- <TextView-->
<!-- android:id="@+id/valuethisWeek"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:text="@string/km"-->
<!-- android:textColor="@color/black"-->
<!-- android:textSize="27sp"-->
<!-- android:textStyle="bold" />-->
<!-- </LinearLayout>-->
<!-- </android.support.v7.widget.CardView>-->
<!-- </LinearLayout>-->
</android.support.constraint.ConstraintLayout>
\ No newline at end of file
This diff is collapsed.
<?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"
tools:context=".MainActivity">
</LinearLayout>
This diff is collapsed.
<?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.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1" >
<TextView
android:id="@+id/textView7"
android:layout_width="match_parent"
android:layout_height="82dp"
android:layout_weight="1"
android:gravity="center"
android:text="Clutch"
android:textColor="@color/whiteTextColor"
android:textSize="50sp" />
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/finalback"
android:layout_weight="1">
<TextView
android:id="@+id/textView23"
android:layout_width="match_parent"
android:layout_height="82dp"
android:layout_weight="1"
android:gravity="center"
android:text="Air Clean Filter"
android:textColor="@color/whiteTextColor"
android:textSize="50sp"
app:layout_constraintBottom_toTopOf="@+id/imageView3"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/editTextTextMultiLine13"
android:layout_width="293dp"
android:layout_height="375dp"
android:layout_weight="1"
android:background="@color/whiteBodyColor"
android:ems="10"
android:gravity="start|top"
android:inputType="textMultiLine"
android:text="
\n• Traditional wisdom falls in line with the idea that the filters should be changed every 3,000 miles.
\n\n• Your air filters can realistically last 1-2 years under the right driving conditions. Driving conditions and climate can affect the lifespan of an air filter. If you often drive on dirt roads, do a lot of stop and start driving or live in a dusty and dry climate, you might need to change your air filter more often.
\n\n• The important thing to remember with any air filter maintenance is to always replace a soiled air filter.
\n\n• Don’t just clean the filter and re-install.
\n\n• To keep track of when to change the air filter, many people rely on a visual inspection to help determine when to replace it.
"
android:textColor="@color/black"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.495"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.785" />
<ImageView
android:id="@+id/imageView3"
android:layout_width="184dp"
android:layout_height="178dp"
android:layout_marginBottom="392dp"
android:layout_weight="1"
android:src="@drawable/air_clean"
app:layout_constraintBottom_toBottomOf="@+id/editTextTextMultiLine13"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.497"
app:layout_constraintStart_toStartOf="parent" />
</android.support.constraint.ConstraintLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout 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="com.appsnipp.education.MainActivity">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:visibility="gone"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />
</android.support.design.widget.AppBarLayout>
<include layout="@layout/content_main" />
<android.support.design.widget.BottomNavigationView
android:id="@+id/navigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="?android:attr/windowBackground"
android:foreground="?attr/selectableItemBackground"
app:menu="@menu/master_bottom_navigation"
app:elevation="10dp"
app:labelVisibilityMode="labeled"
app:itemIconTint="@color/bottom_navigation_color"
app:itemTextColor="@color/bottom_navigation_color"
app:itemBackground="@color/bottomNavigationBackground"/>
</android.support.design.widget.CoordinatorLayout>
<?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.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1" >
<TextView
android:id="@+id/textView7"
android:layout_width="match_parent"
android:layout_height="82dp"
android:layout_weight="1"
android:gravity="center"
android:text="Clutch"
android:textColor="@color/whiteTextColor"
android:textSize="50sp" />
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/finalback"
android:layout_weight="1">
<TextView
android:id="@+id/textView23"
android:layout_width="match_parent"
android:layout_height="82dp"
android:layout_weight="1"
android:gravity="center"
android:text="Brake Fluid"
android:textColor="@color/whiteTextColor"
android:textSize="50sp"
app:layout_constraintBottom_toTopOf="@+id/imageView3"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/editTextTextMultiLine13"
android:layout_width="344dp"
android:layout_height="420dp"
android:layout_weight="1"
android:background="@color/whiteBodyColor"
android:ems="10"
android:gravity="start|top"
android:inputType="textMultiLine"
android:text="
\n• Check your brake fluid whenever you have the bonnet open\n\n
It takes only a minute to check your brake fluid levels. If the level is low, it’s worth getting it checked out by a mechanic. Most other fluids, such as gearbox oil and power-steering fluid don’t need checking outside of routine servicing, but it’s worth checking your brake fluid level while you have the bonnet open. If the level is low, or falling quickly, it could indicate a potentially dangerous leak in the braking system that could lead to brake failure.
\n\n• Always clean the area around the cap.
\n\n• Never shake brake fluid!
\n\n• Add brake fluid slowly.
\n\n• Recheck in a few days.
\n\n\nOne more thing: never shake a bottle of brake fluid before you add it to your car.
"
android:textColor="@color/black"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.492"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.948" />
<ImageView
android:id="@+id/imageView3"
android:layout_width="184dp"
android:layout_height="178dp"
android:layout_marginBottom="436dp"
android:layout_weight="1"
android:src="@drawable/brake_fluid"
app:layout_constraintBottom_toBottomOf="@+id/editTextTextMultiLine13"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</android.support.constraint.ConstraintLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
\ No newline at end of file
<?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">
<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" >
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1" >
<TextView
android:id="@+id/textView7"
android:layout_width="match_parent"
android:layout_height="82dp"
android:layout_weight="1"
android:gravity="center"
android:text="Clutch"
android:textColor="@color/whiteTextColor"
android:textSize="50sp" />
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="836dp"
android:layout_weight="1"
android:background="@drawable/finalback">
<TextView
android:id="@+id/textView23"
android:layout_width="match_parent"
android:layout_height="120dp"
android:layout_weight="1"
android:gravity="center"
android:text="Brake and Clutch Oil"
android:textColor="@color/whiteTextColor"
android:textSize="35sp"
app:layout_constraintBottom_toTopOf="@+id/imageView3"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.205"
tools:layout_editor_absoluteX="0dp" />
<TextView
android:id="@+id/editTextTextMultiLine13"
android:layout_width="312dp"
android:layout_height="566dp"
android:layout_weight="1"
android:background="@color/whiteBodyColor"
android:ems="10"
android:gravity="start|top"
android:inputType="textMultiLine"
android:text="
\nAt least one brake inspection/service per year is highly recommended. Brakes aren't something to put off. Squealing, vibration during deceleration, and a spongy brake pedal all require immediate attention.
\n\n • Have your brake and brake pads checked once per year. If they are too worn to work properly, have them replaced.
\n\n • Check your brake fluid regularly. Your vehicle’s brake fluid is essential to transfer heat to all parts of the brake system and absorb water. If the fluid is a dark color, it may be time to have it flushed.
\n\n • Listen and watch for warning signs. These may include unusual noises, strange brake response, and abnormal feeling when you press on the brakes, and they may indicate a dangerous problem that you should have checked out right away.
\n\n • While driving, try coasting to slow down before applying brakes whenever possible. This helps to preserve your car’s brakes by putting less pressure on them.
\n\n • Avoid braking when cars ahead of you brake unnecessarily.
"
android:textColor="@color/black"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.494"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="1.0" />
<ImageView
android:id="@+id/imageView3"
android:layout_width="207dp"
android:layout_height="200dp"
android:layout_marginBottom="564dp"
android:layout_weight="1"
android:src="@drawable/break_oil"
app:layout_constraintBottom_toBottomOf="@+id/editTextTextMultiLine13"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.497"
app:layout_constraintStart_toStartOf="parent" />
</android.support.constraint.ConstraintLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
</ScrollView>
</LinearLayout>
\ No newline at end of file
<?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.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1" >
<TextView
android:id="@+id/textView7"
android:layout_width="match_parent"
android:layout_height="82dp"
android:layout_weight="1"
android:gravity="center"
android:text="Clutch"
android:textColor="@color/whiteTextColor"
android:textSize="50sp" />
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/finalback"
android:layout_weight="1">
<TextView
android:id="@+id/textView23"
android:layout_width="match_parent"
android:layout_height="82dp"
android:layout_weight="1"
android:gravity="center"
android:text="Brake Pads"
android:textColor="@color/whiteTextColor"
android:textSize="50sp"
app:layout_constraintBottom_toTopOf="@+id/imageView3"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/editTextTextMultiLine13"
android:layout_width="313dp"
android:layout_height="430dp"
android:layout_weight="1"
android:background="@color/whiteBodyColor"
android:ems="10"
android:gravity="start|top"
android:inputType="textMultiLine"
android:text="
• Never Double Foot Your Paddle
\n\n• Not Replacing Brake Pads After the Recommended Distance
\n\n• Use Good Quality Brake Pads
\n\n• Avoid Braking Suddenly
\n\n• Drive With The Flow Of Traffic To Avoid Any Unnecessary Heavy Braking.
\n\n• Give Yourself Plenty Of Following Distance From The Car In Front Of You So You Can Coast To A Nice, Easy Stop.
\n\n• Remove Any Unnecessary Weight From Your Vehicle.
\n\n• Keep Your Speed Low In Heavy Traffic And Avoid Any Sudden Braking.
"
android:textColor="@color/black"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="1.0" />
<ImageView
android:id="@+id/imageView3"
android:layout_width="184dp"
android:layout_height="178dp"
android:layout_marginBottom="436dp"
android:layout_weight="1"
android:src="@drawable/breakpads"
app:layout_constraintBottom_toBottomOf="@+id/editTextTextMultiLine13"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</android.support.constraint.ConstraintLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<android.support.v7.widget.CardView
android:id="@+id/card_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
card_view:cardElevation="5dp"
card_view:cardCornerRadius="7dp"
card_view:cardBackgroundColor="@color/whiteBodyColor"
card_view:cardPreventCornerOverlap="false"
android:layout_margin="@dimen/card_margin">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:id="@+id/youtubeThubnail"
android:layout_width="120dp"
android:layout_height="120dp"
android:src="@drawable/frutorials"
android:scaleType="centerCrop" />
<TextView
android:id="@+id/title"
android:layout_width="110dp"
android:layout_height="wrap_content"
android:layout_below="@id/youtubeThubnail"
android:textColor="@color/frutorial_title"
android:layout_margin="5dp"
android:text="Sample"
android:textSize="@dimen/frutorial_title" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@android:drawable/ic_media_play"
android:layout_alignParentLeft="true"
android:layout_below="@id/youtubeThubnail"
android:layout_marginTop="-40dp"/>
</RelativeLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
<android.support.v7.widget.CardView android:layout_width="150dp"
android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:minHeight="150dp"
app:cardElevation="10dp"
app:cardBackgroundColor="#03A9F4"
app:cardCornerRadius="16dp"
android:layout_marginRight="20dp"
android:layout_marginTop="20dp"
android:layout_marginBottom="20dp">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="center">
<!-- <ImageView-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_gravity="center"-->
<!-- android:adjustViewBounds="true"-->
<!-- android:cropToPadding="true"-->
<!-- android:maxWidth="100dp"-->
<!-- app:srcCompat="@drawable/solution_1" />-->
<TextView
android:layout_width="265dp"
android:layout_height="63dp"
android:layout_gravity="center"
android:layout_marginLeft="20dp"
android:layout_marginBottom="10dp"
android:gravity="center"
android:text="Breakdown Solutions"
android:textColor="@color/whiteTextColor"
android:textSize="20sp"
android:textStyle="bold" />
</LinearLayout>
</android.support.v7.widget.CardView>
\ No newline at end of file
<android.support.v7.widget.CardView android:layout_width="150dp"
android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:minHeight="150dp"
app:cardElevation="10dp"
app:cardBackgroundColor="#03A9F4"
app:cardCornerRadius="16dp"
android:layout_marginRight="20dp"
android:layout_marginTop="20dp"
android:layout_marginBottom="20dp">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="center">
<!-- <ImageView-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_gravity="center"-->
<!-- android:adjustViewBounds="true"-->
<!-- android:cropToPadding="true"-->
<!-- android:maxWidth="100dp"-->
<!-- app:srcCompat="@drawable/maintainces_1" />-->
<TextView
android:id="@+id/maintaince_click"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginBottom="10dp"
android:text="Maintainces"
android:textColor="@color/whiteTextColor"
android:textSize="20sp"
android:textStyle="bold" />
</LinearLayout>
</android.support.v7.widget.CardView>
\ No newline at end of file
<android.support.v7.widget.CardView android:layout_width="150dp"
android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:minHeight="150dp"
app:cardElevation="10dp"
app:cardBackgroundColor="#03A9F4"
app:cardCornerRadius="16dp"
android:layout_marginRight="20dp"
android:layout_marginTop="20dp"
android:layout_marginBottom="20dp">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="center">
<!-- <ImageView-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_gravity="center"-->
<!-- android:adjustViewBounds="true"-->
<!-- android:cropToPadding="true"-->
<!-- android:maxWidth="100dp"-->
<!-- app:srcCompat="@drawable/spareparts_1" />-->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginBottom="10dp"
android:text="Spare Parts"
android:textColor="@color/whiteTextColor"
android:textSize="20sp"
android:textStyle="bold" />
</LinearLayout>
</android.support.v7.widget.CardView>
\ No newline at end of file
<android.support.v7.widget.CardView android:layout_width="150dp"
android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:minHeight="150dp"
app:cardElevation="10dp"
app:cardBackgroundColor="#03A9F4"
app:cardCornerRadius="16dp"
android:layout_marginRight="20dp"
android:layout_marginTop="20dp"
android:layout_marginBottom="20dp">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="center">
<!-- <ImageView-->
<!-- android:layout_width="144dp"-->
<!-- android:layout_height="102dp"-->
<!-- android:layout_gravity="center"-->
<!-- android:adjustViewBounds="true"-->
<!-- android:cropToPadding="true"-->
<!-- android:maxWidth="100dp"-->
<!-- app:srcCompat="@drawable/insurance_1" />-->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginBottom="10dp"
android:text="Insurance"
android:textColor="@color/whiteTextColor"
android:textSize="20sp"
android:textStyle="bold" />
</LinearLayout>
</android.support.v7.widget.CardView>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.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:id="@+id/linearLayout6"
android:layout_width="match_parent"
android:layout_height="match_parent">
<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" >
<TextView
android:text="hyg"
android:layout_width="wrap_content"
android:layout_height="match_parent">
</TextView>
</LinearLayout>
</ScrollView>
</android.support.constraint.ConstraintLayout>
<?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.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1" >
<TextView
android:id="@+id/textView7"
android:layout_width="match_parent"
android:layout_height="82dp"
android:layout_weight="1"
android:gravity="center"
android:text="Clutch"
android:textColor="@color/whiteTextColor"
android:textSize="50sp" />
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/finalback"
android:layout_weight="1">
<TextView
android:id="@+id/textView23"
android:layout_width="match_parent"
android:layout_height="82dp"
android:layout_weight="1"
android:gravity="center"
android:text="Clutch"
android:textColor="@color/whiteTextColor"
android:textSize="50sp"
app:layout_constraintBottom_toTopOf="@+id/imageView3"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/editTextTextMultiLine13"
android:layout_width="342dp"
android:layout_height="430dp"
android:layout_weight="1"
android:background="@color/whiteBodyColor"
android:ems="10"
android:gravity="start|top"
android:inputType="textMultiLine"
android:text="
\n• Never ride your clutch. This burns out your clutch quickly. Instead, keep your foot off the clutch any time you are pressing on the accelerator.
\n\n• Only use your clutch when you need to. If you stop, put the car in neutral and take your foot off the clutch. Keeping the clutch pressed down when it is not in use can increase the likelihood of a clutch repair in the future.
\n\n• Do not treat your clutch like a foot rest. Doing so can release the bearings.
\n\n• If you drive a manual transmission vehicle, do not downshift each time you slow down the vehicle. This is what you should use brakes for instead.
\n\n• Take full advantage of your car’s parking brake. Leaving your car in gear may prevent it from rolling, but it puts significant strain on your clutch.
"
android:textColor="@color/black"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="1.0" />
<ImageView
android:id="@+id/imageView3"
android:layout_width="184dp"
android:layout_height="178dp"
android:layout_marginBottom="436dp"
android:layout_weight="1"
android:src="@drawable/clutch"
app:layout_constraintBottom_toBottomOf="@+id/editTextTextMultiLine13"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</android.support.constraint.ConstraintLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.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"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="com.appsnipp.education.MainActivity"
tools:showIn="@layout/app_bar_main"
style="@style/parent.contentLayout">
<android.support.v4.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/textView6"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="WELCOME TO THE VEHICLE\n ASSISTANT"
android:textColor="@color/register_bk_color"
android:textSize="30dp" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp">
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_marginTop="4dp"
android:layout_marginBottom="20dp"
android:minHeight="200dp"
app:cardBackgroundColor="#FFFFFF"
app:cardCornerRadius="16dp"
app:cardElevation="10dp"
app:cardPreventCornerOverlap="false">
</android.support.v7.widget.CardView>
<ImageView
android:layout_width="match_parent"
android:layout_height="175dp"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_marginTop="4dp"
android:layout_marginEnd="0dp"
android:adjustViewBounds="true"
android:cropToPadding="true"
android:elevation="44dp"
android:src="@drawable/app_main_page" />
</RelativeLayout>
<!--remove the below layout with recycler view, use card poplar courses as model for design-->
<android.support.constraint.ConstraintLayout
android:id="@+id/relativeLayout"
android:layout_width="358dp"
android:layout_height="400sp"
android:layout_gravity="center"
android:orientation="horizontal">
<include
android:id="@+id/include"
layout="@layout/card_popular_courses"
android:layout_width="300dp"
android:layout_height="67dp"
app:layout_constraintBottom_toBottomOf="@+id/include3"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.421"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.067" />
<include
android:id="@+id/include1"
layout="@layout/card_popular_courses1"
android:layout_width="300dp"
android:layout_height="67dp"
android:layout_marginTop="8dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.421"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/include" />
<include
android:id="@+id/include2"
layout="@layout/card_popular_courses2"
android:layout_width="300dp"
android:layout_height="64dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.421"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/include1"
app:layout_constraintVertical_bias="0.056" />
<include
android:id="@+id/include3"
layout="@layout/card_popular_courses3"
android:layout_width="300dp"
android:layout_height="64dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.421"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.714" />
</android.support.constraint.ConstraintLayout>
<!--remove the below layout with recycler view, use card poplar courses as model for design-->
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
</android.support.constraint.ConstraintLayout>
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.NestedScrollView 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"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="com.appsnipp.education.Maintainces">
//tools:showIn="@layout/activity_maintainces">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginTop="20dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp">
<TextView
style="@style/headerText"
android:text="Account Info"
android:layout_marginBottom="20dp"/>
<RelativeLayout style="@style/profileDetailsLayout">
<ImageView
android:id="@+id/nameImageView"
android:src="@drawable/ic_name"
style="@style/profileDetailsImage" />
<TextView
android:id="@+id/nameTextView"
android:text="Owner Name"
android:layout_toRightOf="@id/nameImageView"
style="@style/profileDetailsTextMain" />
<TextView
android:text="developer"
android:id="@+id/owner"
android:layout_toRightOf="@id/nameImageView"
style="@style/profileDetailsMiniText" />
</RelativeLayout>
<View style="@style/proifleDetailsView" />
<View style="@style/proifleDetailsView" />
<RelativeLayout style="@style/profileDetailsLayout">
<ImageView
android:id="@+id/emailImageView"
android:src="@drawable/ic_email"
style="@style/profileDetailsImage" />
<TextView
android:text="Vehicle Type"
android:layout_toRightOf="@id/emailImageView"
style="@style/profileDetailsTextMain" />
<TextView
android:id="@+id/VDe"
android:text="developer@appsnipp.com"
android:layout_toRightOf="@id/emailImageView"
style="@style/profileDetailsMiniText" />
</RelativeLayout>
<RelativeLayout style="@style/profileDetailsLayout">
<ImageView
android:id="@+id/vehicleBrandView"
android:src="@drawable/ic_mobile"
style="@style/profileDetailsImage" />
<TextView
android:text="Vehicle Brand"
android:layout_toRightOf="@id/vehicleBrandView"
style="@style/profileDetailsTextMain"/>
<TextView
android:id="@+id/BrandDe"
android:text="Bugatti"
android:layout_toRightOf="@id/vehicleBrandView"
style="@style/profileDetailsMiniText" />
</RelativeLayout>
<View style="@style/proifleDetailsView" />
<RelativeLayout style="@style/profileDetailsLayout">
<ImageView
android:id="@+id/vehicleModelView"
android:src="@drawable/ic_address"
style="@style/profileDetailsImage" />
<TextView
android:text="Vehicle Model"
android:layout_toRightOf="@id/vehicleModelView"
style="@style/profileDetailsTextMain" />
<TextView
android:id="@+id/ModelDe"
android:text="Maze"
android:layout_toRightOf="@id/vehicleModelView"
style="@style/profileDetailsMiniText" />
</RelativeLayout>
<View style="@style/proifleDetailsView" />
<RelativeLayout style="@style/profileDetailsLayout">
<ImageView
android:id="@+id/dobImageView"
android:src="@drawable/ic_dob"
style="@style/profileDetailsImage" />
<TextView
android:text="Manufactur Date"
android:layout_toRightOf="@id/dobImageView"
style="@style/profileDetailsTextMain" />
<TextView
android:id="@+id/makeyearDE"
android:text="12-05-2019"
android:layout_toRightOf="@id/dobImageView"
style="@style/profileDetailsMiniText" />
</RelativeLayout>
<RelativeLayout style="@style/profileDetailsLayout">
<ImageView
android:id="@+id/EngineTypeView"
android:src="@drawable/ic_dob"
style="@style/profileDetailsImage" />
<TextView
android:text="Engine Type"
android:layout_toRightOf="@id/EngineTypeView"
style="@style/profileDetailsTextMain" />
<TextView
android:id="@+id/EngineTypeDe"
android:text="Petrol"
android:layout_toRightOf="@id/EngineTypeView"
style="@style/profileDetailsMiniText" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/BackToUpComing"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_gravity="bottom"
android:layout_marginTop="20dp"
>
<!-- <View-->
<!-- android:layout_alignParentTop="true"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="30dp"-->
<!-- android:background="@drawable/profile_bk"/>-->
<TextView
style="@style/profileStyledBackButton12"
android:layout_width="311dp"
android:layout_height="match_parent"
android:text="See upcoming\nMaintainces Procedure" />
</RelativeLayout>
<View style="@style/proifleDetailsView" />
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
\ No newline at end of file
<?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.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1" >
<TextView
android:id="@+id/textView7"
android:layout_width="match_parent"
android:layout_height="82dp"
android:layout_weight="1"
android:gravity="center"
android:text="Clutch"
android:textColor="@color/whiteTextColor"
android:textSize="50sp" />
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/finalback"
android:layout_weight="1">
<TextView
android:id="@+id/textView23"
android:layout_width="match_parent"
android:layout_height="82dp"
android:layout_weight="1"
android:gravity="center"
android:text="Coolant"
android:textColor="@color/whiteTextColor"
android:textSize="50sp"
app:layout_constraintBottom_toTopOf="@+id/imageView3"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/editTextTextMultiLine13"
android:layout_width="311dp"
android:layout_height="427dp"
android:layout_weight="1"
android:background="@color/whiteBodyColor"
android:ems="10"
android:gravity="start|top"
android:inputType="textMultiLine"
android:text="
\n• Choose The Right Coolant For Your Car. Replace coolant at the intervals recommended by the manufacturer, regardless of the condition of the coolant. You cannot gauge the effectiveness of coolant based on appearance. Use only products recommended by the manufacturer of your car.
\n\n• Monitor Seasonally
\n\n• Add/Flush And Replace Coolant Safely. Don’t forget that coolant is also diverted to the heating system of a car and turn on the heater when draining, flushing or filling a system to ensure all coolant is affected/drained.
\n\n• If possible when replacing old coolant, try to flush the cooling system with a quality (alkaline based) flushing product, especially if changing brands.
\n\n• Never mix inhibitor or coolant products. Always drain the cooling system and flush completely if switching brands, the coolant appears contaminated or where scale build-up is suspected.
"
android:textColor="@color/black"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="1.0" />
<ImageView
android:id="@+id/imageView3"
android:layout_width="184dp"
android:layout_height="178dp"
android:layout_marginBottom="436dp"
android:layout_weight="1"
android:src="@drawable/cool"
app:layout_constraintBottom_toBottomOf="@+id/editTextTextMultiLine13"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</android.support.constraint.ConstraintLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
\ No newline at end of file
<?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">
<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" >
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1" >
<TextView
android:id="@+id/textView7"
android:layout_width="match_parent"
android:layout_height="82dp"
android:layout_weight="1"
android:gravity="center"
android:text="Clutch"
android:textColor="@color/whiteTextColor"
android:textSize="50sp" />
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="1089dp"
android:layout_weight="1"
android:background="@drawable/finalback">
<TextView
android:id="@+id/textView23"
android:layout_width="match_parent"
android:layout_height="120dp"
android:layout_weight="1"
android:gravity="center"
android:text="Dust and Pollen Filter"
android:textColor="@color/whiteTextColor"
android:textSize="50sp"
app:layout_constraintBottom_toTopOf="@+id/imageView3"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.205"
tools:layout_editor_absoluteX="0dp" />
<TextView
android:id="@+id/editTextTextMultiLine13"
android:layout_width="305dp"
android:layout_height="513dp"
android:layout_marginBottom="8dp"
android:layout_weight="1"
android:background="@color/whiteBodyColor"
android:ems="10"
android:gravity="start|top"
android:inputType="textMultiLine"
android:text="
• This filter should be replaced every 30,000 miles (48,000 km) under normal conditions. \n\n
• It should be replaced every 15,000 miles (24,000 km) if you drive primarily in urban areas that have high concentrations of soot in the air from industry and diesel-powered vehicles.
\n\n• Replace it more often if air flow from the heating and cooling system becomes less than usual.
\n\n\nSteps:\n\n
1. Open the glove box\n\n
2. Disengage the two tabs by pushing on each side panel\n\n
3. Pivot the glove box out of the way\n\n
4. Push in the tabs on the corners of the filter case cover, and remove it\n\n
5. Remove the filter from the case\n\n
6. Install a new filter in the case\n\n
"
android:textColor="@color/black"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.41"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.637" />
<ImageView
android:id="@+id/imageView3"
android:layout_width="406dp"
android:layout_height="396dp"
android:layout_marginBottom="436dp"
android:layout_weight="1"
android:src="@drawable/dust_and_pollen_filter"
app:layout_constraintBottom_toBottomOf="@+id/editTextTextMultiLine13"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.388"
app:layout_constraintStart_toStartOf="parent" />
</android.support.constraint.ConstraintLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
</ScrollView>
</LinearLayout>
\ No newline at end of file
<?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.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1" >
<TextView
android:id="@+id/textView7"
android:layout_width="match_parent"
android:layout_height="82dp"
android:layout_weight="1"
android:gravity="center"
android:text="Clutch"
android:textColor="@color/whiteTextColor"
android:textSize="50sp" />
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/finalback"
android:layout_weight="1">
<TextView
android:id="@+id/textView23"
android:layout_width="match_parent"
android:layout_height="82dp"
android:layout_weight="1"
android:gravity="center"
android:text="Engine Oil"
android:textColor="@color/whiteTextColor"
android:textSize="50sp"
app:layout_constraintBottom_toTopOf="@+id/imageView3"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/editTextTextMultiLine13"
android:layout_width="320dp"
android:layout_height="291dp"
android:layout_weight="1"
android:background="@color/whiteBodyColor"
android:ems="10"
android:gravity="start|top"
android:inputType="textMultiLine"
android:text="
\t\t\t\t\t• Check engine oil at every other fill-up\n\n
\t\t\t\t\t• Change the oil frequently\n\n
\t\t\t\t\t• Avoid overfilling your crankcase with oil\n\n
\t\t\t\t\t• Wipe the oil pan plug clean\n\n
\t\t\t\t\t• Consider adding oil coolers\n\n
\t\t\t\t\t• Synthetic oil is better\n\n
\t\t\t\t\t• Heavier is not always better
"
android:textColor="@color/black"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.494"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.67" />
<ImageView
android:id="@+id/imageView3"
android:layout_width="219dp"
android:layout_height="194dp"
android:layout_marginBottom="316dp"
android:layout_weight="1"
android:src="@drawable/engineoil"
app:layout_constraintBottom_toBottomOf="@+id/editTextTextMultiLine13"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.444"
app:layout_constraintStart_toStartOf="parent" />
</android.support.constraint.ConstraintLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
\ No newline at end of file
<?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.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1" >
<TextView
android:id="@+id/textView7"
android:layout_width="match_parent"
android:layout_height="82dp"
android:layout_weight="1"
android:gravity="center"
android:text="Fuel Filter"
android:textColor="@color/whiteTextColor"
android:textSize="50sp" />
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/finalback"
android:layout_weight="1">
<TextView
android:id="@+id/textView23"
android:layout_width="match_parent"
android:layout_height="82dp"
android:layout_weight="1"
android:gravity="center"
android:text="Fuel Filter"
android:textColor="@color/whiteTextColor"
android:textSize="50sp"
app:layout_constraintBottom_toTopOf="@+id/imageView3"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/editTextTextMultiLine13"
android:layout_width="312dp"
android:layout_height="370dp"
android:layout_weight="1"
android:background="@color/whiteBodyColor"
android:ems="10"
android:gravity="start|top"
android:inputType="textMultiLine"
android:text="
\n• Filters can be replaced every 60,000 miles.
\n\n\n• A fuel filter prevents debris from entering your vehicle's engine, and changing or cleaning it regularly is essential.
\n\n\n• If your filter is nylon or paper, you should just replace it with a new one. If it's made of metal and isn't too grimy, you can clean and reuse it.
\n\n\n• Before you start, relieve your fuel system's pressure and disconnect your battery. Remove the filter from the fuel lines, then spray it with a solvent cleaner. Let it dry for an hour, then reinstall it, reconnect your battery, and run your engine.
"
android:textColor="@color/black"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.494"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.817" />
<ImageView
android:id="@+id/imageView3"
android:layout_width="184dp"
android:layout_height="178dp"
android:layout_marginBottom="404dp"
android:layout_weight="1"
android:src="@drawable/ff"
app:layout_constraintBottom_toBottomOf="@+id/editTextTextMultiLine13"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.497"
app:layout_constraintStart_toStartOf="parent" />
</android.support.constraint.ConstraintLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
\ No newline at end of file
<?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:layout_height="@dimen/nav_header_height"
android:background="@drawable/side_nav_bar"
android:gravity="bottom"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:theme="@style/ThemeOverlay.AppCompat.Dark">
<ImageView
android:id="@+id/imageView"
android:layout_width="184dp"
android:layout_height="61dp"
android:paddingTop="@dimen/nav_header_vertical_spacing"
app:srcCompat="@drawable/concept" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="@dimen/nav_header_vertical_spacing"
android:text="Vehicle Service"
android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="SLIIT Final Year Project 2021" />
</LinearLayout>
This diff is collapsed.
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
app:cardBackgroundColor="@color/whiteTextColor"
app:cardCornerRadius="5dp"
android:layout_marginTop="5dp"
android:layout_marginBottom="5dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp">
<ImageView
android:id="@+id/salesImageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_cash"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_centerVertical="true"
android:layout_marginLeft="20dp"
android:layout_toRightOf="@id/salesImageView">
<TextView
style="@style/reportContentText"
android:text="Mileage"
android:textColor="#25C0DE" />
<TextView
style="@style/viewParent.headerText"
android:textSize="21sp"
android:text="kilometer(km)"/>
</LinearLayout>
</RelativeLayout>
</android.support.v7.widget.CardView>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
package com.appsnipp.education;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
}
\ 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