QQ登錄界面佈局

来源:https://www.cnblogs.com/xfweb/archive/2019/03/20/10565956.html
-Advertisement-
Play Games

簡單的qq登錄界面佈局 ...


簡單的qq登錄界面佈局

 1 <?xml version="1.0" encoding="utf-8"?>
 2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
 3     xmlns:app="http://schemas.android.com/apk/res-auto"
 4     xmlns:tools="http://schemas.android.com/tools"
 5     android:layout_width="match_parent"
 6     android:layout_height="match_parent"
 7     tools:context=".MainActivity"
 8     android:orientation="vertical"
 9     android:background="#e6e6e6">
10     <ImageView
11         android:id="@+id/iv"
12         android:layout_width="70dp"
13         android:layout_height="70dp"
14         android:layout_centerHorizontal="true"
15         android:layout_marginTop="40dp"
16         android:src="#00f150"/>
17     <LinearLayout
18         android:id="@+id/zh"
19         android:layout_width="match_parent"
20         android:layout_height="wrap_content"
21         android:layout_below="@id/iv"
22         android:layout_centerVertical="true"
23         android:layout_marginBottom="5dp"
24         android:layout_marginLeft="10dp"
25         android:layout_marginRight="10dp"
26         android:layout_marginTop="15dp"
27         android:background="#ffffff">
28         <TextView
29         android:layout_width="wrap_content"
30         android:layout_height="wrap_content"
31         android:padding="10dp"
32         android:textColor="#000"
33         android:text="賬號"
34         android:textSize="20sp"/>
35         <EditText
36             android:layout_width="match_parent"
37             android:layout_height="wrap_content"
38             android:layout_marginLeft="5dp"
39             android:padding="10dp" />
40     </LinearLayout>
41     <LinearLayout
42         android:id="@+id/mm"
43         android:layout_width="match_parent"
44         android:layout_height="wrap_content"
45         android:layout_centerVertical="true"
46         android:layout_below="@id/zh"
47         android:layout_marginLeft="10dp"
48         android:layout_marginRight="10dp"
49         android:background="#ffffff">
50         <TextView
51             android:layout_width="wrap_content"
52             android:layout_height="wrap_content"
53             android:padding="10dp"
54             android:textColor="#000"
55             android:text="密碼"
56             android:textSize="20sp"/>
57 
58         <EditText
59             android:layout_width="match_parent"
60             android:layout_height="wrap_content"
61             android:layout_marginLeft="5dp"
62             android:password="true"
63             android:padding="10dp" />
64     </LinearLayout>
65     <Button
66         android:id="@+id/btn_login"
67         android:layout_width="match_parent"
68         android:layout_height="wrap_content"
69         android:layout_below="@+id/mm"
70         android:layout_marginLeft="10dp"
71         android:layout_marginRight="10dp"
72         android:layout_marginTop="50dp"
73         android:background="#3c8dc4"
74         android:text="登錄"
75         android:textColor="#ffffff"
76         android:textSize="20sp"
77         />
78 </RelativeLayout>

 


您的分享是我們最大的動力!

-Advertisement-
Play Games
更多相關文章
  • 1.rpm安裝mysql5.7 2.啟動mysql,更改root密碼 3.主從配置 查看master狀態 在slave上設置master 查看slave狀態 4.配置3個節點ssh互信 最後測試三個節點之間可以無密碼登錄 5.安裝MHA 安裝依賴包 在3個節點安裝MHA的node 在slave/MH ...
  • 關於Redis和Memcache在應用中,都可以實現緩存的功能,但是,具體使用情況需要根據具體業務場景,尤其是對緩存數據有特性要求時,需要選擇對應的緩存機制。 共同點: 都是基於記憶體的資料庫,可用作緩存機制 區別: 1、關於數據類型:Memcache只支持簡單的Key/Value數據結構;Redis ...
  • [20190320]測試相同語句遇到導致cursor pin S的情況.txt--//前面測試鏈接:http://blog.itpub.net/267265/viewspace-2636342/--//各個會話執行語句相同的,很容易出現cursor: pin S等待事件.看看如果各個會話執行的語句不 ...
  • InnoDB Buffer Pool主要是用來緩存數據表和索引數據的記憶體區域,它的預設值為134217728位元組(128MB)。最大值取決於CPU架構;32位系統上的最大值為4294967295(232-1),64位系統上的最大值為18446744073709551615(264-1)。在32位系統 ...
  • 搭建MongoDB環境 安裝MongoDB 1.下載安裝包 MongoDB 提供了 linux 各發行版本 64 位的安裝包,你可以在官網下載安裝包。 下載地址:https://www.mongodb.com/download-center#community 註意:package選擇TGZ 2.移 ...
  • 前面cloudera manager 環境準備和安裝我參考的是: https://blog.csdn.net/m0_38017084/article/details/82218559 這篇博客,寫的非常的詳細。 我這主要寫幾個我安裝完畢之後遇到的幾個問題。 1、在進行mysql設置的時候報錯 就是這 ...
  • 菜單(Menu)在Android開發中,是一種常見的用戶界面組件,通過使用菜單Api可以給用戶提供常見的一致的體驗 ...
  • 之前使用Masonry對UIScrollView進行過約束,當時是遇到了問題的,怎麼約束都不對,因為趕進度直接改用frame了也沒有對問題深究。就這樣過了很久.........,直到前一段換工作的時候面試官問到,使用Masonry對UIScrollView自動佈局應該註意些什麼?額....,猶豫了一 ...
一周排行
    -Advertisement-
    Play Games
  • 示例項目結構 在 Visual Studio 中創建一個 WinForms 應用程式後,項目結構如下所示: MyWinFormsApp/ │ ├───Properties/ │ └───Settings.settings │ ├───bin/ │ ├───Debug/ │ └───Release/ ...
  • [STAThread] 特性用於需要與 COM 組件交互的應用程式,尤其是依賴單線程模型(如 Windows Forms 應用程式)的組件。在 STA 模式下,線程擁有自己的消息迴圈,這對於處理用戶界面和某些 COM 組件是必要的。 [STAThread] static void Main(stri ...
  • 在WinForm中使用全局異常捕獲處理 在WinForm應用程式中,全局異常捕獲是確保程式穩定性的關鍵。通過在Program類的Main方法中設置全局異常處理,可以有效地捕獲並處理未預見的異常,從而避免程式崩潰。 註冊全局異常事件 [STAThread] static void Main() { / ...
  • 前言 給大家推薦一款開源的 Winform 控制項庫,可以幫助我們開發更加美觀、漂亮的 WinForm 界面。 項目介紹 SunnyUI.NET 是一個基於 .NET Framework 4.0+、.NET 6、.NET 7 和 .NET 8 的 WinForm 開源控制項庫,同時也提供了工具類庫、擴展 ...
  • 說明 該文章是屬於OverallAuth2.0系列文章,每周更新一篇該系列文章(從0到1完成系統開發)。 該系統文章,我會儘量說的非常詳細,做到不管新手、老手都能看懂。 說明:OverallAuth2.0 是一個簡單、易懂、功能強大的許可權+可視化流程管理系統。 有興趣的朋友,請關註我吧(*^▽^*) ...
  • 一、下載安裝 1.下載git 必須先下載並安裝git,再TortoiseGit下載安裝 git安裝參考教程:https://blog.csdn.net/mukes/article/details/115693833 2.TortoiseGit下載與安裝 TortoiseGit,Git客戶端,32/6 ...
  • 前言 在項目開發過程中,理解數據結構和演算法如同掌握蓋房子的秘訣。演算法不僅能幫助我們編寫高效、優質的代碼,還能解決項目中遇到的各種難題。 給大家推薦一個支持C#的開源免費、新手友好的數據結構與演算法入門教程:Hello演算法。 項目介紹 《Hello Algo》是一本開源免費、新手友好的數據結構與演算法入門 ...
  • 1.生成單個Proto.bat內容 @rem Copyright 2016, Google Inc. @rem All rights reserved. @rem @rem Redistribution and use in source and binary forms, with or with ...
  • 一:背景 1. 講故事 前段時間有位朋友找到我,說他的窗體程式在客戶這邊出現了卡死,讓我幫忙看下怎麼回事?dump也生成了,既然有dump了那就上 windbg 分析吧。 二:WinDbg 分析 1. 為什麼會卡死 窗體程式的卡死,入口門檻很低,後續往下分析就不一定了,不管怎麼說先用 !clrsta ...
  • 前言 人工智慧時代,人臉識別技術已成為安全驗證、身份識別和用戶交互的關鍵工具。 給大家推薦一款.NET 開源提供了強大的人臉識別 API,工具不僅易於集成,還具備高效處理能力。 本文將介紹一款如何利用這些API,為我們的項目添加智能識別的亮點。 項目介紹 GitHub 上擁有 1.2k 星標的 C# ...