本文主要介绍通过Button点击事件实现对EditText的内容的监听。具体步骤如下:
1、创建一个Button和一个EditText组件:
<Button
android:id="@+id/login"
android:layout_width="360dp"
android:layout_height="match_parent"
android:background="@drawable/button_circle_shape"
android:text="登录"
tools:layout_editor_absoluteX="286dp"
tools:layout_editor_absoluteY="345dp" />