Previously, I used an AppController
class extends from Application and in Manifest, that is added. Now, I prepare a signupModel
class. In this class, I need LayoutInflater
because of context. But when debugging, context has AppController
. However, I want context is not include AppController
?
public class SignUpModel {
Context context ;
EditText signup_email;
public SignUpModel(Context context){
this.context = context;
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View view = inflater.inflate(R.layout.activity_sign_up,null);
signup_email = (EditText) view.findViewById(R.id.signup_email);
}
public String getEmail() {
return signup_email.getText().toString();
}
}