2
我花了很多时间来搜索如何解决我的问题,但仍然不成功,所以我希望有人能帮助我。 这里是我的代码:如何在Android Studio 1.5中添加XML中的按钮ID?
<Button
android:id="@+id/login_button"
android:layout_below="@id/password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/login"
/>
任何其他的看法是好的,只是按钮
你的ID到按钮是正确的 –
这可能会也可能不会帮助,但是在XML *中声明的每个小部件都必须声明'android:layout_height'属性。也就是说,请发布您的整个布局。 – AutonomousApps
@AutonomousApps我在我的代码中添加'android:layout_height',但仍然不好。 – Zack