Gostaria de saber como eu faço pro edittext se ajustar automaticamente no centro da activity assim que selecionado.
OBS. Já estou usando android:windowSoftInputMode="stateVisible|adjustResize" (Manifest) ScrollView (na activity)
<activity
android:name=".ui.AdesaoSenhaEletronicaProvisoriaActivity_"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateVisible|adjustResize"
android:theme="@style/AppTheme.Full.Light">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<PACOTE.ui.custom.HeaderAdesaoView_
android:id="@+id/headerView"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="@dimen/activity_horizontal_margin">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="@string/otimo"
android:textAppearance="@style/TextoTitulo" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:gravity="center"
android:textSize="17sp"
android:text="@string/senha_provisoria_intro" />
<br.gov.caixa.internetbankingmobile.ui.custom.EditTextValidation_
android:id="@+id/et_senha_provisoria"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="28dp" />
<PACOTE.ui.custom.EditTextValidation_
android:id="@+id/et_nova_senha"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_small" />
<PACOTE.ui.custom.EditTextValidation_
android:id="@+id/et_confirme_nova_senha"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_small"/>