mirror of
https://github.com/Nezumi-2711/Foodify.git
synced 2026-09-22 13:38:41 +00:00
Change name activity
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
android:theme="@style/Theme.Foodify"
|
||||
tools:targetApi="31">
|
||||
<activity
|
||||
android:name=".SignInActivity"
|
||||
android:name=".SignUpActivity"
|
||||
android:exported="false" />
|
||||
<activity
|
||||
android:name=".SplashScreenActivity"
|
||||
|
||||
@@ -12,7 +12,7 @@ import android.view.ViewGroup;
|
||||
import android.widget.Button;
|
||||
|
||||
import com.capstone.foodify.R;
|
||||
import com.capstone.foodify.SignInActivity;
|
||||
import com.capstone.foodify.SignUpActivity;
|
||||
|
||||
public class ProfileFragment extends Fragment {
|
||||
|
||||
@@ -27,7 +27,7 @@ public class ProfileFragment extends Fragment {
|
||||
btnSignUp.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
Intent i =new Intent(getActivity(), SignInActivity.class);
|
||||
Intent i =new Intent(getActivity(), SignUpActivity.class);
|
||||
startActivity(i);
|
||||
((Activity) getActivity()).overridePendingTransition(0,0);
|
||||
}
|
||||
|
||||
+3
-3
@@ -22,7 +22,7 @@ import java.util.Calendar;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
|
||||
public class SignInActivity extends AppCompatActivity {
|
||||
public class SignUpActivity extends AppCompatActivity {
|
||||
|
||||
TextInputLayout textInput_email, textInput_password, textInput_phone,
|
||||
textInput_address, textInput_repeatPassword, textInput_firstName, textInput_lastName, textInput_birthDay;
|
||||
@@ -35,7 +35,7 @@ public class SignInActivity extends AppCompatActivity {
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_sign_in);
|
||||
setContentView(R.layout.activity_sign_up);
|
||||
|
||||
setFontUI();
|
||||
|
||||
@@ -53,7 +53,7 @@ public class SignInActivity extends AppCompatActivity {
|
||||
editText.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
new DatePickerDialog(SignInActivity.this,date,myCalendar.get(Calendar.YEAR),myCalendar.get(Calendar.MONTH),myCalendar.get(Calendar.DAY_OF_MONTH)).show();
|
||||
new DatePickerDialog(SignUpActivity.this,date,myCalendar.get(Calendar.YEAR),myCalendar.get(Calendar.MONTH),myCalendar.get(Calendar.DAY_OF_MONTH)).show();
|
||||
}
|
||||
});
|
||||
|
||||
+6
-5
@@ -5,7 +5,7 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".SignInActivity">
|
||||
tools:context=".SignUpActivity">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView"
|
||||
@@ -177,17 +177,18 @@
|
||||
>
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/ward"
|
||||
android:id="@+id/district"
|
||||
android:layout_width="190dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:contentDescription="ward"
|
||||
android:contentDescription="district"
|
||||
/>
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/district"
|
||||
android:id="@+id/ward"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:contentDescription="district"
|
||||
android:contentDescription="ward"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user