Commit 856c6439 by chengfengpiaopiao

手机登陆页面EditText位置调整

parent ff4670cd
......@@ -44,14 +44,29 @@
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:fitsSystemWindows="true"
android:name=".view.activity.LoginActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!--<activity-->
<!--android:launchMode="singleTop"-->
<!--android:screenOrientation="portrait"-->
<!--android:theme="@android:style/Theme.Translucent.NoTitleBar"-->
<!--android:fitsSystemWindows="true"-->
<!--android:name=".view.activity.EdActivity">-->
<!--<intent-filter>-->
<!--<action android:name="android.intent.action.MAIN" />-->
<!--<category android:name="android.intent.category.DEFAULT" />-->
<!--<category android:name="android.intent.category.LAUNCHER" />-->
<!--</intent-filter>-->
<!--</activity>-->
<activity
android:name=".view.activity.MainActivity"
android:exported="true"
......
package com.maile.jingcai.view.activity;
import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import com.maile.jingcai.R;
/**
* Created by Administrator on 2017/11/26.
*/
public class EdActivity extends Activity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_ed);
}
}
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:textSize="20sp"
android:paddingTop="30dp"
android:text="请输入密码:"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="vertical"
android:gravity="center_vertical">
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/gridview"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:hint="edit here"
android:inputType="textPassword"
android:gravity="center"/>
</ScrollView>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:dividerPadding="10dp">
<Button
android:id="@+id/smit_btn"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="取 消" />
<Button
android:id="@+id/cancel_btn"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="确 定" />"
</LinearLayout>
</LinearLayout>
\ No newline at end of file
......@@ -11,12 +11,11 @@
<LinearLayout
android:gravity="center"
android:layout_weight="1"
android:layout_width="match_parent"
android:layout_height="0dp">
android:layout_height="230dp">
<ImageView
android:src="@drawable/login_bg_logo"
android:padding="55dp"
android:padding="20dp"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
......@@ -124,7 +123,7 @@
android:gravity="center"
android:textColor="#ffffff"
android:textSize="18sp"
android:layout_marginTop="64dp"
android:layout_marginTop="80dp"
/>
</LinearLayout>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment