admin管理员组文章数量:1646324
安卓中QQ登陆
一种是流的方式,一种是声明一个共享参数sharedpreference
第一种方法:
第一步:将QQ头像粘贴到drawable—hdpi中
第二步:在xml布局文件中编辑页面布局(ImageView,EditText,CheckBox,Button)
<LinearLayout xmlns:android="http://schemas.android/apk/res/android"
xmlns:tools="http://schemas.android/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizontal"
android:orientation="vertical"
tools:context=".MainActivity" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/qq"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="请输入QQ号码"
android:id="@+id/et_qqnumber"/>
<EditText
android:id="@+id/et_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="请输入密码
版权声明:本文标题:安卓中QQ登陆源代码 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/dongtai/1729446989a1201497.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论