Created PinSecurityFragment
This commit is contained in:
parent
c21fb6786f
commit
cbb42ecaf0
3 changed files with 86 additions and 2 deletions
|
@ -0,0 +1,38 @@
|
|||
package cy.agorise.crystalwallet.fragments;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.support.v4.app.Fragment;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import butterknife.ButterKnife;
|
||||
import cy.agorise.crystalwallet.R;
|
||||
|
||||
/**
|
||||
* Created by xd on 1/18/18.
|
||||
*/
|
||||
|
||||
public class PinSecurityFragment extends Fragment {
|
||||
|
||||
public PinSecurityFragment() {
|
||||
// Required empty public constructor
|
||||
}
|
||||
|
||||
public static PinSecurityFragment newInstance() {
|
||||
PinSecurityFragment fragment = new PinSecurityFragment();
|
||||
Bundle args = new Bundle();
|
||||
fragment.setArguments(args);
|
||||
return fragment;
|
||||
}
|
||||
|
||||
@Override
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
||||
Bundle savedInstanceState) {
|
||||
// Inflate the layout for this fragment
|
||||
View v = inflater.inflate(R.layout.fragment_pin_security, container, false);
|
||||
ButterKnife.bind(this, v);
|
||||
|
||||
return v;
|
||||
}
|
||||
}
|
|
@ -65,12 +65,11 @@ public class SecuritySettingsFragment extends Fragment {
|
|||
case 0:
|
||||
//return new GeneralSettingsFragment();
|
||||
case 1:
|
||||
//return new SecuritySettingsFragment();
|
||||
return new PinSecurityFragment();
|
||||
case 2:
|
||||
return new BackupsSettingsFragment();
|
||||
}
|
||||
|
||||
|
||||
return null; //new OnConstructionFragment();
|
||||
}
|
||||
|
||||
|
|
47
app/src/main/res/layout/fragment_pin_security.xml
Normal file
47
app/src/main/res/layout/fragment_pin_security.xml
Normal file
|
@ -0,0 +1,47 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvCurrentPin"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="24dp"
|
||||
android:text="Current PIN"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etCurrentPin"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="numberPassword"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvCurrentPin"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etNewPin"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:hint="New PIN"
|
||||
android:inputType="numberPassword"
|
||||
app:layout_constraintTop_toBottomOf="@+id/etCurrentPin"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etConfirmPin"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:hint="Confirm PIN"
|
||||
android:inputType="numberPassword"
|
||||
app:layout_constraintTop_toBottomOf="@+id/etNewPin"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"/>
|
||||
|
||||
</android.support.constraint.ConstraintLayout>
|
Loading…
Reference in a new issue