`
iaiai
  • 浏览: 2136063 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Android QQ登录界面

阅读更多
布局loginpage.xml:
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout android:orientation="vertical" android:id="@+id/loginRoot"
	android:layout_width="fill_parent" android:layout_height="fill_parent"
	xmlns:android="http://schemas.android.com/apk/res/android">
	<LinearLayout android:orientation="vertical" android:id="@+id/LinearLayout01"
		android:layout_width="fill_parent" android:layout_height="wrap_content"
		android:layout_weight="1.0"
		android:background="@drawable/default_bg">
		<RelativeLayout android:id="@+id/RelativeLayout02"
			android:background="@drawable/login_back" android:paddingTop="21.0px"
			android:paddingBottom="10.0px" android:layout_width="fill_parent"
			android:layout_height="wrap_content" android:layout_marginLeft="15.0px"
			android:layout_marginTop="62.0px" android:layout_marginRight="15.0px">
			<ImageView android:id="@+id/faceImg" android:background="@drawable/login_head"
				android:layout_width="wrap_content" android:layout_height="wrap_content" />
			<EditText android:id="@+id/login_edit_account"
				android:background="@drawable/qq_edit_login" android:paddingLeft="45.0sp"
				android:saveEnabled="true" android:layout_width="fill_parent"
				android:layout_height="wrap_content" android:layout_marginLeft="5.0dip"
				android:layout_marginTop="5.0dip" android:layout_marginRight="5.0dip"
				android:layout_marginBottom="5.0px" android:hint="@string/strInputAccHint"
				android:maxLength="10" android:layout_toRightOf="@+id/faceImg"
				android:layout_alignParentTop="true" android:inputType="number" />
			<TextView android:textSize="16.0dip" android:textColor="#ff3f3f3f"
				android:gravity="center_vertical" android:id="@+id/TextView01"
				android:paddingLeft="7.0sp" android:layout_width="wrap_content"
				android:layout_height="wrap_content" android:layout_marginRight="15.0sp"
				android:text="@string/strAccInputLabel" android:layout_alignLeft="@+id/login_edit_account"
				android:layout_alignTop="@+id/login_edit_account"
				android:layout_alignBottom="@+id/login_edit_account" />
			<ImageButton android:id="@+id/ImageButton02"
				android:background="@drawable/more_select" android:layout_width="wrap_content"
				android:layout_height="wrap_content" android:layout_marginRight="1.0dip"
				android:layout_alignTop="@+id/login_edit_account"
				android:layout_alignRight="@+id/login_edit_account"
				android:layout_alignBottom="@+id/login_edit_account" />
			<EditText android:id="@+id/login_edit_pwd"
				android:background="@drawable/qq_edit_login" android:paddingLeft="45.0sp"
				android:saveEnabled="true" android:layout_width="wrap_content"
				android:layout_height="wrap_content" android:layout_marginRight="1.0dip"
				android:maxLength="16" android:layout_below="@+id/login_edit_account"
				android:layout_alignLeft="@+id/login_edit_account"
				android:layout_alignRight="@+id/login_edit_account"
				android:inputType="textPassword" />
			<TextView android:textSize="16.0dip" android:textColor="#ff3f3f3f"
				android:gravity="center_vertical" android:id="@+id/TextView02"
				android:paddingLeft="7.0sp" android:layout_width="wrap_content"
				android:layout_height="wrap_content" android:text="@string/strPswInputLabel"
				android:layout_alignTop="@+id/login_edit_pwd"
				android:layout_alignRight="@+id/TextView01"
				android:layout_alignBottom="@+id/login_edit_pwd" />
			<CheckBox android:textSize="16.0sp" android:textColor="#ff222222"
				android:id="@+id/login_cb_savepwd" android:paddingLeft="25.0px"
				android:layout_width="wrap_content" android:layout_height="wrap_content"
				android:checked="true" android:button="@drawable/qq_btn_check"
				android:text="@string/opt_remember" android:layout_alignBaseline="@+id/login_btn_login" />
			<Button android:id="@+id/login_btn_login" android:layout_width="130.0px"
				android:layout_height="42.0px" android:layout_marginTop="7.0px"
				android:layout_marginRight="12.0dip" android:text="@string/login"
				android:layout_below="@+id/TextView02"
				android:layout_alignParentRight="true" />
		</RelativeLayout>
		<TableLayout android:id="@+id/TableLayout01"
			android:layout_width="fill_parent" android:layout_height="wrap_content"
			android:layout_marginLeft="20.0px" android:layout_marginRight="20.0px"
			android:stretchColumns="1">
			<TableRow>
				<CheckBox android:textColor="#7fffffff" android:id="@+id/login_cb_visible"
					android:layout_width="wrap_content" android:layout_height="wrap_content"
					android:text="@string/opt_hideLogin" style="@style/MyCheckBox" />
				<CheckBox android:textColor="#7fffffff"
					android:layout_gravity="right" android:id="@+id/login_cb_openvibra"
					android:layout_width="wrap_content" android:layout_height="wrap_content"
					android:text="@string/opt_openVibra" style="@style/MyCheckBox" />
			</TableRow>
			<TableRow>
				<CheckBox android:textColor="#7fffffff" android:id="@+id/login_cb_receivegroupmsg"
					android:layout_width="wrap_content" android:layout_height="wrap_content"
					android:text="@string/opt_acceptGroupMsg" style="@style/MyCheckBox" />
				<CheckBox android:textColor="#7fffffff"
					android:layout_gravity="right" android:id="@+id/login_cb_quite"
					android:layout_width="wrap_content" android:layout_height="wrap_content"
					android:text="@string/opt_silent" style="@style/MyCheckBox" />
			</TableRow>
		</TableLayout>
	</LinearLayout>
	<RelativeLayout android:id="@+id/RelativeLayout01"
		android:background="@drawable/bottom" android:layout_width="fill_parent"
		android:layout_height="44.0dip">
		<ImageButton android:id="@+id/login_option"
			android:background="@drawable/option" android:clickable="true"
			android:layout_width="wrap_content" android:layout_height="wrap_content"
			android:layout_marginLeft="13.0dip" android:layout_marginTop="2.0dip"
			android:layout_centerVertical="true" />
	</RelativeLayout>
</LinearLayout>


strings.xml:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="hello">Hello World, Date!</string>
    <string name="app_name">丸子-Widget</string>
    <string name="strInputAccHint">输入帐号</string>
    <string name="strAccInputLabel">帐号</string>
    <string name="strPswInputLabel">密码</string>
    <string name="opt_remember">记住密码</string>
    <string name="login">登 录</string>
    <string name="opt_hideLogin">隐身登录</string>
    <string name="opt_silent">静音登录</string>
    <string name="opt_openVibra">开启振动</string>
    <string name="opt_acceptGroupMsg">接收群消息</string>
</resources>


styles.xml:
<?xml version="1.0" encoding="UTF-8"?>
<resources>
    <style name="MyCheckBox" parent="@android:style/Widget.CompoundButton.CheckBox">
        <item name="android:textSize">16.0sp</item>
        <item name="android:textColor">@color/qq_checkbox_text_color</item>
        <item name="android:paddingLeft">28.0px</item>
        <item name="android:button">@drawable/qq_btn_check</item>
    </style>
</resources>


运行结果:
  • 大小: 38.6 KB
分享到:
评论
20 楼 llfzy 2011-06-30  
呵呵。。。界面设计的不错
19 楼 kidd3166 2011-06-30  
呵呵,不错,很漂亮
18 楼 tangbohu 2011-06-30  
android什么版本的?
17 楼 tangbohu 2011-06-30  
基于什么license发布的,有版权吗?没有的话我下载来用了。
16 楼 killpoer3 2011-06-30  
Cindy_Lee 写道
这东西反编译一下神马都有了

别人好心分享,你在这里放什么P?找抽?最烦这种人了。
15 楼 jayqean 2011-06-29  
很不错的说
14 楼 爪哇岛岛主 2011-06-29  
dingding
13 楼 Cindy_Lee 2011-06-28  
jjcoder 写道
Cindy_Lee 写道
这东西反编译一下神马都有了


--
:oops:  招行的 CMBMobileBank.apk 求反编译方法、
貌似加了密的、搞不定啊、谁能帮忙?

布局文件应该是没加密的把,如果你想借鉴UI可以试试
12 楼 figobbq 2011-06-24  
不错撒~!!
11 楼 ice.k 2011-06-24  
关键的选择QQ号的下拉框有没呢?
10 楼 ninggy 2011-06-24  
不错,挺一下
9 楼 yanweimin7 2011-06-24  
午间休息时间支持下,挺漂亮的
8 楼 jjcoder 2011-06-24  
Cindy_Lee 写道
这东西反编译一下神马都有了


--
:oops:  招行的 CMBMobileBank.apk 求反编译方法、
貌似加了密的、搞不定啊、谁能帮忙?
7 楼 Cindy_Lee 2011-06-24  
这东西反编译一下神马都有了
6 楼 xiao_hua 2011-06-24  
eoe早就有了,不知道系不系同一个人
5 楼 linhrg 2011-06-24  
很漂亮,不错
4 楼 Ahua772 2011-06-24  
好东西 ,但之前也有人发布过一个QQ登录界面
3 楼 obullxl 2011-06-24  
不错,很漂亮。
2 楼 qq123zhz 2011-06-24  
不错。。。。
1 楼 qianlei007 2011-06-23  
不错,挺漂亮的。。。

相关推荐

Global site tag (gtag.js) - Google Analytics