package com.afifzafri.studentsdb;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.EditText;

public class EditViewData extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_edit_view_data);

        Intent intentPage = getIntent();
        String studID = intentPage.getStringExtra("STUD_ID");

        EditText editStudID = (EditText)findViewById(R.id.editStudID);
        editStudID.setFocusable(false); // disable input

        editStudID.setText(studID);
    }
}

@@ -165,16 +165,48 @@
 ditText;
+%0Aimport android.widget.TextView;
 %0A%0Apublic
@@ -540,16 +540,22 @@
         
+final 
 EditText
@@ -665,16 +665,537 @@
 le input
+%0A        final EditText editName = (EditText)findViewById(R.id.editName);%0A        final EditText editIC = (EditText)findViewById(R.id.editIC);%0A        final EditText editDOB = (EditText)findViewById(R.id.editDOB);%0A        final EditText editAddress = (EditText)findViewById(R.id.editAddress);%0A        final EditText editProgram = (EditText)findViewById(R.id.editProgram);%0A        final EditText editPhone = (EditText)findViewById(R.id.editPhone);%0A        final EditText editEmail = (EditText)findViewById(R.id.editEmail);
 %0A%0A      

initialize all input field