レイアウトリソースファイルを変更すると、apkファイルがビルドされ、Android Studio 2.0(プレビュー3b)からインストールされたときに更新/反映されません。Android Studio 2.0(プレビュー3b)のレイアウトxmlの変更はapkで更新されませんでしたか?
例: 私はEditText
を持っていたし、私はこのようなTextInputLayout
追加:私はTextInputLayout
なしでちょうどEditText
、TextInputLayout
を追加する前にアプリを更新した後
<android.support.design.widget.TextInputLayout
android:id="@+id/input_layout_new_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp">
<EditText
android:id="@+id/edit_text_new_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/hint_your_new_password"
android:inputType="textPassword"
android:saveEnabled="false" />
</android.support.design.widget.TextInputLayout>
結果は同じです。最初
- ビルド/クリーンプロジェクト
- ビルド/プロジェクト
- ファイル/無効化キャッシュ/再起動を再構築します..:私が試した
Run
これはおそらく、Prevこれを引き起こしているAndroid Studio 2.0の眺望3b版。何か案は?たぶんそれは単なる設定/構成ですか?
新しいレイアウトファイルは正常に動作しますが、Android Studio 2.0にアップデートする前にファイルをアップデートしていません。 – TouchBoarder