Android Layout 01_activity_Login.xml

來源:互聯網
上載者:User

標籤:

activity_login.xml

 1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 2     xmlns:tools="http://schemas.android.com/tools" 3     android:layout_width="match_parent" 4     android:layout_height="match_parent" 5     android:paddingBottom="@dimen/activity_vertical_margin" 6     android:paddingLeft="@dimen/activity_horizontal_margin" 7     android:paddingRight="@dimen/activity_horizontal_margin" 8     android:paddingTop="@dimen/activity_vertical_margin" 9     tools:context=".MainActivity" >10 11     <TextView12         android:id="@+id/textView1"13         android:layout_width="wrap_content"14         android:layout_height="wrap_content"15         android:layout_alignParentLeft="true"16         android:text="賬戶:" />17     <EditText18         android:id="@+id/et_loginname"19         android:layout_width="match_parent"20         android:layout_height="wrap_content"21         android:layout_marginLeft="8dp"22         android:layout_toRightOf="@id/textView1"23         android:hint="登入名稱"24         android:ems="10" >25         <requestFocus />26     </EditText>27      <TextView28         android:id="@+id/textView2"29         android:layout_width="wrap_content"30         android:layout_height="wrap_content"31         android:layout_below="@id/et_loginname"32         android:text="密碼:" />33     <EditText34         android:id="@+id/et_loginpwd"35         android:layout_width="match_parent"36         android:layout_height="wrap_content"37         android:layout_below="@id/et_loginname"38         android:layout_toRightOf="@id/textView2"39         android:layout_marginLeft="8dp"40         android:hint="賬戶密碼"41         android:ems="10"42         android:inputType="numberPassword" />43     <Button44         android:id="@+id/button2"45         android:layout_width="wrap_content"46         android:layout_height="wrap_content"47         android:layout_marginRight="8dp"48         android:layout_below="@id/et_loginpwd"49         android:layout_alignParentRight="true"50         android:text="重設" />51     <Button52         android:id="@+id/button1"53         android:layout_width="wrap_content"54         android:layout_height="wrap_content"55         android:layout_below="@id/et_loginpwd"56         android:layout_toLeftOf="@id/button2"57         android:onClick="login"58         android:text="確定" />59 60 </RelativeLayout>

 

Android Layout 01_activity_Login.xml

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.