如何定义按钮功能 [英] How to define a button function
本文介绍了如何定义按钮功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何编写按钮的代码以在Android应用程序中打开下一个.axml页面?
我尝试了什么:
android:text =login
android:layout_width =wrap_content
android:layout_height =wrap_content
android:id =@ + id / LoginButton
android:layout_marginLeft =150.0dp
android:layout_marginTop =20.0 dp
android:clickable =true
android:enabled =true
解决方案
参见 http://www.codeproject.com/KB/android/#Android+Tutorial+Contest [ ^ ],很多有用的样品
how to write code for a button to open next .axml page in android app?
What I have tried:
android:text="login"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/LoginButton"
android:layout_marginLeft="150.0dp"
android:layout_marginTop="20.0dp"
android:clickable="true"
android:enabled="true"
解决方案
See http://www.codeproject.com/KB/android/#Android+Tutorial+Contest[^], lots of useful samples.
这篇关于如何定义按钮功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文