admin管理员组

文章数量:1646324

安卓中QQ登陆

一种是流的方式,一种是声明一个共享参数sharedpreference

第一种方法:

第一步:将QQ头像粘贴到drawablehdpi

第二步:在xml布局文件中编辑页面布局(ImageViewEditText,CheckBoxButton

<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