Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TangKuPos
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王海
TangKuPos
Commits
c1bfdd62
Commit
c1bfdd62
authored
Dec 20, 2017
by
王海
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改登录
parent
31a852de
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
50 deletions
+46
-50
app/src/main/AndroidManifest.xml
app/src/main/AndroidManifest.xml
+5
-4
app/src/main/java/com/xingdata/zzdpos/ui/splash/SplashActivity.java
...in/java/com/xingdata/zzdpos/ui/splash/SplashActivity.java
+1
-1
app/src/main/res/layout/activity_splash.xml
app/src/main/res/layout/activity_splash.xml
+40
-45
app/src/main/res/mipmap-hdpi/splash.png
app/src/main/res/mipmap-hdpi/splash.png
+0
-0
No files found.
app/src/main/AndroidManifest.xml
View file @
c1bfdd62
...
...
@@ -19,12 +19,10 @@
android:configChanges=
"keyboard|orientation|screenSize|keyboardHidden"
android:label=
"@string/main_title"
android:launchMode=
"singleTask"
android:screenOrientation=
"landscape"
android:windowSoftInputMode=
"adjustUnspecified|stateHidden"
/>
<activity
android:name=
".ui.splash.SplashActivity"
android:configChanges=
"keyboard|orientation|screenSize|keyboardHidden"
android:screenOrientation=
"landscape"
android:theme=
"@style/AppTheme"
>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
...
...
@@ -35,10 +33,13 @@
<activity
android:name=
".ui.login.LoginActivity"
android:configChanges=
"keyboard|orientation|screenSize|keyboardHidden"
android:screenOrientation=
"landscape"
android:windowSoftInputMode=
"adjustUnspecified|stateHidden"
/>
<activity
android:name=
".ui.exception.ex.ui.exception.ErrorDialogActivity"
android:name=
".ui.exception.ErrorDialogActivity"
android:configChanges=
"keyboard|orientation|screenSize|keyboardHidden"
android:theme=
"@style/Theme.AppCompat.Light.Dialog"
/>
<activity
android:name=
".ui.exception.ServerErrActivity"
android:configChanges=
"keyboard|orientation|screenSize|keyboardHidden"
android:theme=
"@style/Theme.AppCompat.Light.Dialog"
/>
</application>
...
...
app/src/main/java/com/xingdata/zzdpos/ui/splash/SplashActivity.java
View file @
c1bfdd62
...
...
@@ -54,7 +54,7 @@ public class SplashActivity extends BaseActivity<com.xingdata.zzdpos.ui.splash.S
aAnima
.
setInterpolator
(
new
AccelerateDecelerateInterpolator
());
// 启动动画
mViewBinding
.
tvHint
.
startAnimation
(
aAnima
);
//
mViewBinding.tvHint.startAnimation(aAnima);
}
...
...
app/src/main/res/layout/activity_splash.xml
View file @
c1bfdd62
...
...
@@ -6,43 +6,38 @@
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@
color/appBack
"
android:background=
"@
mipmap/splash
"
android:orientation=
"vertical"
android:padding=
"@dimen/all_margin"
tools:context=
"com.xingdata.zzd
hd
.ui.splash.SplashActivity"
>
tools:context=
"com.xingdata.zzd
pos
.ui.splash.SplashActivity"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"@dimen/all_margin_big"
android:gravity=
"center"
android:orientation=
"vertical"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
>
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintRight_toRightOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
>
<TextView
android:id=
"@+id/tv_hint"
android:drawableStart=
"@mipmap/ic_launcher"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"@color/white"
android:textSize=
"55dp"
/>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/all_margin"
>
<com.github.ybq.android.spinkit.SpinKitView
xmlns:app=
"http://schemas.android.com/apk/res-auto"
<com.github.ybq.android.spinkit.SpinKitView
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:id=
"@+id/spin_kit"
style=
"@style/SpinKitView.Circle"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
app:SpinKit_Color=
"@color/
white"
/>
app:SpinKit_Color=
"@color/
appBack"
/>
<TextView
android:id=
"@+id/tv_progress"
...
...
@@ -50,48 +45,48 @@
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:text=
"0 %"
android:textColor=
"@color/
white"
/>
android:textColor=
"@color/
appBack"
/>
</RelativeLayout>
<TextView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:layout_marginTop=
"@dimen/all_
margin
"
android:layout_marginTop=
"@dimen/all_
padding
"
android:gravity=
"center"
android:text=
"正在加载数据..."
android:textColor=
"@color/
white"
/>
android:textColor=
"@color/
appBack"
/>
</LinearLayout>
<
LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"center"
android:orientation=
"horizontal"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintRight_toRightOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
>
<
!--<LinearLayout-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:gravity="center"-->
<!--android:orientation="horizontal"-->
<!--app:layout_constraintBottom_toBottomOf="parent"-->
<!--app:layout_constraintEnd_toEndOf="parent"-->
<!--app:layout_constraintLeft_toLeftOf="parent"-->
<!--app:layout_constraintRight_toRightOf="parent"-->
<!--app:layout_constraintStart_toStartOf="parent">--
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:drawableStart=
"@mipmap/logo_welcome_zzd"
android:gravity=
"center"
android:drawablePadding=
"@dimen/all_margin"
android:text=
"@string/splash_info"
android:textColor=
"@color/white"
/
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"@dimen/all_margin"
android:drawableStart=
"@mipmap/login_phone"
android:text=
"@string/login_phone"
android:textColor=
"@color/white"
/
>
<
/LinearLayout
>
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:drawableStart="@mipmap/logo_welcome_zzd"-->
<!--android:gravity="center"-->
<!--android:drawablePadding="@dimen/all_margin"-->
<!--android:text="@string/splash_info"-->
<!--android:textColor="@color/white" />--
>
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_marginStart="@dimen/all_margin"-->
<!--android:drawableStart="@mipmap/login_phone"-->
<!--android:text="@string/login_phone"-->
<!--android:textColor="@color/white" />--
>
<
!--</LinearLayout>--
>
</android.support.constraint.ConstraintLayout>
...
...
app/src/main/res/mipmap-hdpi/splash.png
0 → 100644
View file @
c1bfdd62
54.5 KB
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