Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
唐文
/
AiyoZhuaWaWa
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
856c6439
authored
Nov 27, 2017
by
chengfengpiaopiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
手机登陆页面EditText位置调整
parent
ff4670cd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
97 additions
and
4 deletions
app/src/main/AndroidManifest.xml
app/src/main/java/com/maile/jingcai/view/activity/EdActivity.java
app/src/main/res/layout/activity_ed.xml
app/src/main/res/layout/layer_login_phone.xml
app/src/main/AndroidManifest.xml
View file @
856c6439
...
...
@@ -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"
...
...
app/src/main/java/com/maile/jingcai/view/activity/EdActivity.java
0 → 100644
View file @
856c6439
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
);
}
}
app/src/main/res/layout/activity_ed.xml
0 → 100644
View file @
856c6439
<?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
app/src/main/res/layout/layer_login_phone.xml
View file @
856c6439
...
...
@@ -11,12 +11,11 @@
<LinearLayout
android:gravity=
"center"
android:layout_weight=
"1"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
>
android:layout_height=
"
23
0dp"
>
<ImageView
android:src=
"@drawable/login_bg_logo"
android:padding=
"
55
dp"
android:padding=
"
20
dp"
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=
"
64
dp"
android:layout_marginTop=
"
80
dp"
/>
</LinearLayout>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment