已采纳回答 / Te_Fuir
在eclipse环境下需要安装ADT插件,然后在android management里面可以设置自己的安卓虚拟机,不过可能会报错缺少一个intel 硬件加速驱动,直接下载解压安装就可以
2017-07-10
已采纳回答 / qq_你好不送_03331182
<com.example.lenovo.textview.MarqueeText android:id="@+id/textview1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/text_view1" android:singleLine="true" android:ellipsize="marquee" a...
2017-07-05
已采纳回答 / 慕粉1850267836
android 程序安装后一闪而过说明程序闪退了,可以到logcat中查看异常日志。Android开发中,所的有输出都在logcat中 包含System.out输出和printStackTrace()输出都在Logcat中,Android开发,建议使用android提供的Log工具类来打印信息。找到Logcat视图的方式:Eclipse 点击 WindowShow View会出来一个对话框点击Ok按钮时,会在控制台窗口出现LogCat视图android.util.Log常用的方法有以下5个:Log.v()...
2017-06-01
已采纳回答 / 慕瓜0387546
findViewById找出来是View,你的loginButton是Button,不能直接赋View上去,所以前面加(Button)把View强转为Button。大概是Button loginButton = (Button) View
2017-05-24
已采纳回答 / 晓龙歌
如果你这个按钮是之前在 xml里面有的 就不需要new一个对象,而是通过findviewById函数来找到对应的对象,如果你只是需要新建一个按钮 就需要new一个。
2017-05-22
已采纳回答 / qq_Sherlock_53404324
英文翻译为:通过id找到视图 这里的btn1 是Button类 继承与View类 属于视图 而 你设置的button1 是id 这个button1通过findViewById方法找到了Button类的对象btn1
2017-05-20