Skip to content
Snippets Groups Projects
Commit e930b71a authored by NimalNallasamy's avatar NimalNallasamy
Browse files

NewChanges

parent b196c232
No related branches found
No related tags found
No related merge requests found
......@@ -82,4 +82,9 @@ public class AddUser extends AppCompatActivity implements View.OnClickListener {
});
}
}
public void onBackPressed()
{
Intent i = new Intent(this,Login1.class);
startActivity(i);
}
}
package com.example.nimal.help;
import android.app.ProgressDialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
......@@ -138,4 +139,10 @@ public class Edit_Hosp extends AppCompatActivity {
{
tv.setText(str);
}
public void onBackPressed()
{
Intent i = new Intent(this,Login1.class);
startActivity(i);
}
}
package com.example.nimal.help;
import android.*;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
......@@ -47,4 +48,9 @@ public class Location extends AppCompatActivity {
gps.showSettingsAlert();
}
}
public void onBackPressed()
{
Intent i = new Intent(this,Login1.class);
startActivity(i);
}
}
......@@ -2,6 +2,7 @@ package com.example.nimal.help;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
......@@ -132,4 +133,9 @@ public class Remove_Hosp extends AppCompatActivity {
{
tv.setText(str);
}
public void onBackPressed()
{
Intent i = new Intent(this,Login1.class);
startActivity(i);
}
}
......@@ -2,6 +2,7 @@ package com.example.nimal.help;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
......@@ -129,4 +130,9 @@ public class View_Hosp extends AppCompatActivity{
view1.setText(str);
}
public void onBackPressed()
{
Intent i = new Intent(this,Login1.class);
startActivity(i);
}
}
\ No newline at end of file
......@@ -6,36 +6,52 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background=""
tools:context="com.example.nimal.help.Add_Hosp">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter Hospital Name"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:gravity="center"
android:id="@+id/hname" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter City"
android:gravity="center"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:id="@+id/hcity" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter Latitude"
android:gravity="center"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:id="@+id/latitude" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter Longitude"
android:layout_marginLeft="10dp"
android:gravity="center"
android:layout_marginRight="10dp"
android:id="@+id/longitude" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter Speciality"
android:layout_marginLeft="10dp"
android:gravity="center"
android:layout_marginRight="10dp"
android:id="@+id/speciality" />
<EditText
......@@ -43,12 +59,18 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="number"
android:gravity="center"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:hint="Enter Contact No." />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/Rating"
android:layout_marginLeft="10dp"
android:gravity="center"
android:layout_marginRight="10dp"
android:inputType="numberDecimal"
android:hint="Enter the rating out of 5"
android:maxLength="4"/>
......@@ -57,6 +79,9 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Add"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:id="@+id/add" />
</LinearLayout>
......@@ -102,7 +102,6 @@
android:clickable="true"
android:onClick="messaging"
android:visibility="invisible"
android:stateListAnimator=""
app:fabSize="mini"
app:srcCompat="@android:drawable/stat_notify_chat" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment