1package com.peachpasswords.qa;23import android.app.Activity;4import android.os.Bundle;5import android.text.InputType;6import android.view.View;7import android.widget.EditText;8import android.widget.LinearLayout;91011121314151617public class QaFormActivity extends Activity {18 @Override19 protected void onCreate(Bundle savedInstanceState) {20 super.onCreate(savedInstanceState);21 EditText username = new EditText(this);22 username.setId(android.R.id.edit);23 username.setHint("Username");24 username.setAutofillHints("username");25 username.setImportantForAutofill(View.IMPORTANT_FOR_AUTOFILL_YES);2627 EditText password = new EditText(this);28 password.setHint("Password");29 password.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);30 password.setAutofillHints("password");31 password.setImportantForAutofill(View.IMPORTANT_FOR_AUTOFILL_YES);3233 34 35 36 EditText otp = new EditText(this);37 otp.setHint("2FA Code");38 otp.setInputType(InputType.TYPE_CLASS_NUMBER);39 otp.setAutofillHints("otp");40 otp.setImportantForAutofill(View.IMPORTANT_FOR_AUTOFILL_YES);4142 LinearLayout layout = new LinearLayout(this);43 layout.setOrientation(LinearLayout.VERTICAL);44 layout.setPadding(48, 96, 48, 0);45 layout.addView(username);46 layout.addView(password);47 layout.addView(otp);48 setContentView(layout);49 }50}