已采納回答 / 慕瓜0387546
findViewById找出來是View,你的loginButton是Button,不能直接賦View上去,所以前面加(Button)把View強轉為Button。大概是Button loginButton = (Button) View
2017-05-24
難道自己就不能花個兩分鐘百度下eclipse常用的快捷鍵?????????????????????????????????????????????????????????????????????????????????????
2017-05-23
。。。在new出來的自定義監聽器類里寫OnClick方法 是為了調用父類的共同方法 以及添加新的業務邏輯 。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
2017-05-23
最新回答 / qq_橢圓的南瓜_03336888
this其實是個上下文,在匿名內部類中,this代表的是這個匿名內部類,而intent跳轉需要的是activity這個對象,所以在匿名內部類中,不能直接寫this,而要明確是那個activity(activity.this來明確)
2017-05-22
已采納回答 / 曉龍歌
如果你這個按鈕是之前在 xml里面有的 就不需要new一個對象,而是通過findviewById函數來找到對應的對象,如果你只是需要新建一個按鈕 就需要new一個。
2017-05-22
最新回答 / MartinKay
我用的也是android studio,但是可以顯示一行哦,另一個控件用了layou_below就不能顯示,所以只有一行可以跑馬,這是我的源碼,你參考下。android studio初始化先刪掉原來的。xml,重新新建一個在layou叫layou.xmllayou.xml:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android...
2017-05-21
已采納回答 / qq_Sherlock_53404324
英文翻譯為:通過id找到視圖 ?這里的btn1 是Button類 繼承與View類 屬于視圖 ? ?而 你設置的button1 是id ?這個button1通過findViewById方法找到了Button類的對象btn1
2017-05-20
https://developer.android.com/studio/tools/sdk/eclipse-adt.html
上面大寫加粗的一句話:The Eclipse ADT plugin is no longer supported per our announcement. Android Studio is now the official IDE for Android
簡言之現在才開始配置eclipse安卓開發環境的話不可能了。
https://dl-ssl.google.com/android/eclipse/這個網站連不上去的了
上面大寫加粗的一句話:The Eclipse ADT plugin is no longer supported per our announcement. Android Studio is now the official IDE for Android
簡言之現在才開始配置eclipse安卓開發環境的話不可能了。
https://dl-ssl.google.com/android/eclipse/這個網站連不上去的了
2017-05-20