Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
E
echo-adr-Deprecated
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
echo
echo-adr-Deprecated
Commits
8ec9bb6f
Commit
8ec9bb6f
authored
Jul 19, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录页面
parent
162d2054
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
475 additions
and
107 deletions
+475
-107
build.gradle
app/build.gradle
+4
-2
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+26
-18
HttpProxyService.java
app/src/main/java/com/virjar/echo/adr/HttpProxyService.java
+1
-2
MainActivity.java
app/src/main/java/com/virjar/echo/adr/MainActivity.java
+1
-1
LoginActivity.java
app/src/main/java/com/virjar/echo/adr/ui/LoginActivity.java
+59
-0
OnSwipeTouchListener.java
...ain/java/com/virjar/echo/adr/ui/OnSwipeTouchListener.java
+75
-0
ic_launcher_foreground.xml
app/src/main/res/drawable-v24/ic_launcher_foreground.xml
+15
-11
buttonshapewhitebg.xml
app/src/main/res/drawable/buttonshapewhitebg.xml
+11
-0
good_morning_img.png
app/src/main/res/drawable/good_morning_img.png
+0
-0
good_night_img.png
app/src/main/res/drawable/good_night_img.png
+0
-0
ic_email_white_24dp.xml
app/src/main/res/drawable/ic_email_white_24dp.xml
+9
-0
ic_launcher_background.xml
app/src/main/res/drawable/ic_launcher_background.xml
+67
-67
ic_lock_white_24dp.xml
app/src/main/res/drawable/ic_lock_white_24dp.xml
+9
-0
calibri.ttf
app/src/main/res/font/calibri.ttf
+0
-0
gotham.ttf
app/src/main/res/font/gotham.ttf
+0
-0
activity_login.xml
app/src/main/res/layout/activity_login.xml
+183
-0
colors.xml
app/src/main/res/values/colors.xml
+6
-3
styles.xml
app/src/main/res/values/styles.xml
+7
-1
gradle.properties
gradle.properties
+2
-2
No files found.
app/build.gradle
View file @
8ec9bb6f
...
...
@@ -42,8 +42,10 @@ android {
dependencies
{
implementation
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
implementation
'androidx.appcompat:appcompat:1.1.0'
implementation
'androidx.constraintlayout:constraintlayout:1.1.3'
implementation
'com.android.support:appcompat-v7:27.1.1'
implementation
'com.android.support.constraint:constraint-layout:1.1.1'
implementation
'com.android.support:design:27.1.1'
//compile 'com.android.support:support-v4:24.2.0'
api
project
(
':echo-lib'
)
...
...
app/src/main/AndroidManifest.xml
View file @
8ec9bb6f
...
...
@@ -2,11 +2,6 @@
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
package=
"com.virjar.echo.adr"
>
<uses-permission
android:name=
"android.permission.SYSTEM_ALERT_WINDOW"
/>
<uses-permission
android:name=
"android.permission.RECEIVE_BOOT_COMPLETED"
/>
<uses-permission
android:name=
"android.permission.INTERNET"
/>
<uses-permission
android:name=
"android.permission.WRITE_EXTERNAL_STORAGE"
/>
<uses-permission
android:name=
"android.permission.FOREGROUND_SERVICE"
/>
<application
android:allowBackup=
"true"
...
...
@@ -15,7 +10,13 @@
android:roundIcon=
"@mipmap/ic_launcher_round"
android:supportsRtl=
"true"
android:theme=
"@style/AppTheme"
>
<activity
android:name=
".MainActivity"
>
<activity
android:name=
".MainActivity"
/>
<activity
android:name=
".ui.LoginActivity"
android:theme=
"@style/Theme.AppCompat.NoActionBar"
android:windowSoftInputMode=
"stateHidden|adjustPan"
android:configChanges=
"orientation|screenSize"
>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
...
...
@@ -23,18 +24,6 @@
</intent-filter>
</activity>
<service
android:name=
"com.virjar.echo.adr.HttpProxyService"
android:enabled=
"true"
android:exported=
"true"
tools:ignore=
"ExportedService"
>
<intent-filter
android:priority=
"1000"
>
<action
android:name=
"com.virjar.g4proxy.service"
/>
<category
android:name=
"android.intent.category.DEFAULT"
/>
</intent-filter>
</service>
<!--开机自启服务-->
<receiver
android:name=
"com.virjar.echo.adr.StartOnBootBroadcastReceiver"
android:enabled=
"true"
...
...
@@ -58,6 +47,25 @@
</intent-filter>
</receiver>
<!--开机自启服务-->
<service
android:name=
"com.virjar.echo.adr.HttpProxyService"
android:enabled=
"true"
android:exported=
"true"
tools:ignore=
"ExportedService"
>
<intent-filter
android:priority=
"1000"
>
<action
android:name=
"com.virjar.g4proxy.service"
/>
<category
android:name=
"android.intent.category.DEFAULT"
/>
</intent-filter>
</service>
</application>
<uses-permission
android:name=
"android.permission.RECEIVE_BOOT_COMPLETED"
/>
<uses-permission
android:name=
"android.permission.INTERNET"
/>
<uses-permission
android:name=
"android.permission.WRITE_EXTERNAL_STORAGE"
/>
<uses-permission
android:name=
"android.permission.FOREGROUND_SERVICE"
/>
<uses-permission
android:name=
"android.permission.SYSTEM_ALERT_WINDOW"
/>
</manifest>
\ No newline at end of file
app/src/main/java/com/virjar/echo/adr/HttpProxyService.java
View file @
8ec9bb6f
...
...
@@ -10,9 +10,8 @@ import android.graphics.BitmapFactory;
import
android.graphics.Color
;
import
android.os.Build
;
import
android.os.IBinder
;
import
android.support.annotation.Nullable
;
import
androidx.annotation.Nullable
;
import
androidx.multidex.BuildConfig
;
import
com.virjar.echo.nat.client.EchoClient
;
import
com.virjar.echo.nat.log.EchoLogger
;
...
...
app/src/main/java/com/virjar/echo/adr/MainActivity.java
View file @
8ec9bb6f
...
...
@@ -2,8 +2,8 @@ package com.virjar.echo.adr;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.support.v7.app.AppCompatActivity
;
import
androidx.appcompat.app.AppCompatActivity
;
public
class
MainActivity
extends
AppCompatActivity
{
...
...
app/src/main/java/com/virjar/echo/adr/ui/LoginActivity.java
0 → 100644
View file @
8ec9bb6f
package
com
.
virjar
.
echo
.
adr
.
ui
;
import
android.os.Bundle
;
import
android.support.v7.app.AppCompatActivity
;
import
android.view.Window
;
import
android.view.WindowManager
;
import
android.widget.ImageView
;
import
android.widget.TextView
;
import
com.virjar.echo.adr.R
;
public
class
LoginActivity
extends
AppCompatActivity
{
ImageView
imageView
;
TextView
textView
;
int
count
=
0
;
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
requestWindowFeature
(
Window
.
FEATURE_NO_TITLE
);
getWindow
().
setFlags
(
WindowManager
.
LayoutParams
.
FLAG_FULLSCREEN
,
WindowManager
.
LayoutParams
.
FLAG_FULLSCREEN
);
setContentView
(
R
.
layout
.
activity_login
);
imageView
=
findViewById
(
R
.
id
.
imageView
);
textView
=
findViewById
(
R
.
id
.
textView
);
imageView
.
setOnTouchListener
(
new
OnSwipeTouchListener
(
getApplicationContext
())
{
public
void
onSwipeTop
()
{
}
public
void
onSwipeRight
()
{
if
(
count
==
0
)
{
imageView
.
setImageResource
(
R
.
drawable
.
good_night_img
);
textView
.
setText
(
"Night"
);
count
=
1
;
}
else
{
imageView
.
setImageResource
(
R
.
drawable
.
good_morning_img
);
textView
.
setText
(
"Morning"
);
count
=
0
;
}
}
public
void
onSwipeLeft
()
{
if
(
count
==
0
)
{
imageView
.
setImageResource
(
R
.
drawable
.
good_night_img
);
textView
.
setText
(
"Night"
);
count
=
1
;
}
else
{
imageView
.
setImageResource
(
R
.
drawable
.
good_morning_img
);
textView
.
setText
(
"Morning"
);
count
=
0
;
}
}
public
void
onSwipeBottom
()
{
}
});
}
}
app/src/main/java/com/virjar/echo/adr/ui/OnSwipeTouchListener.java
0 → 100644
View file @
8ec9bb6f
package
com
.
virjar
.
echo
.
adr
.
ui
;
import
android.content.Context
;
import
android.view.GestureDetector
;
import
android.view.GestureDetector.SimpleOnGestureListener
;
import
android.view.MotionEvent
;
import
android.view.View
;
import
android.view.View.OnTouchListener
;
public
class
OnSwipeTouchListener
implements
OnTouchListener
{
private
final
GestureDetector
gestureDetector
;
public
OnSwipeTouchListener
(
Context
ctx
){
gestureDetector
=
new
GestureDetector
(
ctx
,
new
GestureListener
());
}
@Override
public
boolean
onTouch
(
View
v
,
MotionEvent
event
)
{
return
gestureDetector
.
onTouchEvent
(
event
);
}
private
final
class
GestureListener
extends
SimpleOnGestureListener
{
private
static
final
int
SWIPE_THRESHOLD
=
100
;
private
static
final
int
SWIPE_VELOCITY_THRESHOLD
=
100
;
@Override
public
boolean
onDown
(
MotionEvent
e
)
{
return
true
;
}
@Override
public
boolean
onFling
(
MotionEvent
e1
,
MotionEvent
e2
,
float
velocityX
,
float
velocityY
)
{
boolean
result
=
false
;
try
{
float
diffY
=
e2
.
getY
()
-
e1
.
getY
();
float
diffX
=
e2
.
getX
()
-
e1
.
getX
();
if
(
Math
.
abs
(
diffX
)
>
Math
.
abs
(
diffY
))
{
if
(
Math
.
abs
(
diffX
)
>
SWIPE_THRESHOLD
&&
Math
.
abs
(
velocityX
)
>
SWIPE_VELOCITY_THRESHOLD
)
{
if
(
diffX
>
0
)
{
onSwipeRight
();
}
else
{
onSwipeLeft
();
}
result
=
true
;
}
}
else
if
(
Math
.
abs
(
diffY
)
>
SWIPE_THRESHOLD
&&
Math
.
abs
(
velocityY
)
>
SWIPE_VELOCITY_THRESHOLD
)
{
if
(
diffY
>
0
)
{
onSwipeBottom
();
}
else
{
onSwipeTop
();
}
result
=
true
;
}
}
catch
(
Exception
exception
)
{
exception
.
printStackTrace
();
}
return
result
;
}
}
public
void
onSwipeRight
()
{
}
public
void
onSwipeLeft
()
{
}
public
void
onSwipeTop
()
{
}
public
void
onSwipeBottom
()
{
}
}
\ No newline at end of file
app/src/main/res/drawable-v24/ic_launcher_foreground.xml
View file @
8ec9bb6f
...
...
@@ -2,15 +2,19 @@
xmlns:aapt=
"http://schemas.android.com/aapt"
android:width=
"108dp"
android:height=
"108dp"
android:viewportWidth=
"108"
android:viewportHeight=
"108"
>
<path
android:pathData=
"M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z"
>
android:viewportHeight=
"108"
android:viewportWidth=
"108"
>
<path
android:fillType=
"evenOdd"
android:pathData=
"M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z"
android:strokeColor=
"#00000000"
android:strokeWidth=
"1"
>
<aapt:attr
name=
"android:fillColor"
>
<gradient
android:endX=
"
85.84757
"
android:endY=
"9
2.4963
"
android:startX=
"4
2.9492
"
android:startY=
"
49.59793
"
android:endX=
"
78.5885
"
android:endY=
"9
0.9159
"
android:startX=
"4
8.7653
"
android:startY=
"
61.0927
"
android:type=
"linear"
>
<item
android:color=
"#44000000"
...
...
@@ -24,7 +28,7 @@
<path
android:fillColor=
"#FFFFFF"
android:fillType=
"nonZero"
android:pathData=
"M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
android:strokeWidth=
"1"
android:strokeColor=
"#00000000"
/>
</vector>
\ No newline at end of file
android:pathData=
"M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z"
android:strokeColor=
"#00000000"
android:strokeWidth=
"1"
/>
</vector>
app/src/main/res/drawable/buttonshapewhitebg.xml
0 → 100644
View file @
8ec9bb6f
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item>
<shape
android:shape=
"rectangle"
>
<corners
android:radius=
"8dp"
/>
<solid
android:color=
"@android:color/transparent"
/>
<stroke
android:color=
"#96ffffff"
android:width=
"2dp"
/>
</shape>
</item>
</selector>
\ No newline at end of file
app/src/main/res/drawable/good_morning_img.png
0 → 100644
View file @
8ec9bb6f
759 KB
app/src/main/res/drawable/good_night_img.png
0 → 100644
View file @
8ec9bb6f
561 KB
app/src/main/res/drawable/ic_email_white_24dp.xml
0 → 100644
View file @
8ec9bb6f
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:width=
"24dp"
android:height=
"24dp"
android:viewportWidth=
"24.0"
android:viewportHeight=
"24.0"
>
<path
android:fillColor=
"#96ffffff"
android:pathData=
"M20,4L4,4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2L22,6c0,-1.1 -0.9,-2 -2,-2zM20,8l-8,5 -8,-5L4,6l8,5 8,-5v2z"
/>
</vector>
app/src/main/res/drawable/ic_launcher_background.xml
View file @
8ec9bb6f
...
...
@@ -2,169 +2,169 @@
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:width=
"108dp"
android:height=
"108dp"
android:viewport
Width
=
"108"
android:viewport
Height
=
"108"
>
android:viewport
Height
=
"108"
android:viewport
Width
=
"108"
>
<path
android:fillColor=
"#
3DDC84
"
android:fillColor=
"#
26A69A
"
android:pathData=
"M0,0h108v108h-108z"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M9,0L9,108"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M19,0L19,108"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M29,0L29,108"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M39,0L39,108"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M49,0L49,108"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M59,0L59,108"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M69,0L69,108"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M79,0L79,108"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M89,0L89,108"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M99,0L99,108"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M0,9L108,9"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M0,19L108,19"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M0,29L108,29"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M0,39L108,39"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M0,49L108,49"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M0,59L108,59"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M0,69L108,69"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M0,79L108,79"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M0,89L108,89"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M0,99L108,99"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M19,29L89,29"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M19,39L89,39"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M19,49L89,49"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M19,59L89,59"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M19,69L89,69"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M19,79L89,79"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M29,19L29,89"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M39,19L39,89"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M49,19L49,89"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M59,19L59,89"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M69,19L69,89"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M79,19L79,89"
android:stroke
Width=
"0.8
"
android:stroke
Color=
"#33FFFFFF
"
/>
android:stroke
Color=
"#33FFFFFF
"
android:stroke
Width=
"0.8
"
/>
</vector>
app/src/main/res/drawable/ic_lock_white_24dp.xml
0 → 100644
View file @
8ec9bb6f
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:width=
"24dp"
android:height=
"24dp"
android:viewportWidth=
"24.0"
android:viewportHeight=
"24.0"
>
<path
android:fillColor=
"#96ffffff"
android:pathData=
"M18,8h-1L17,6c0,-2.76 -2.24,-5 -5,-5S7,3.24 7,6v2L6,8c-1.1,0 -2,0.9 -2,2v10c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2L20,10c0,-1.1 -0.9,-2 -2,-2zM12,17c-1.1,0 -2,-0.9 -2,-2s0.9,-2 2,-2 2,0.9 2,2 -0.9,2 -2,2zM15.1,8L8.9,8L8.9,6c0,-1.71 1.39,-3.1 3.1,-3.1 1.71,0 3.1,1.39 3.1,3.1v2z"
/>
</vector>
app/src/main/res/font/calibri.ttf
0 → 100644
View file @
8ec9bb6f
File added
app/src/main/res/font/gotham.ttf
0 → 100644
View file @
8ec9bb6f
File added
app/src/main/res/layout/activity_login.xml
0 → 100644
View file @
8ec9bb6f
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:focusableInTouchMode=
"true"
tools:context=
".ui.LoginActivity"
>
<FrameLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
>
<ImageView
android:id=
"@+id/imageView"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:scaleType=
"centerCrop"
android:src=
"@drawable/good_morning_img"
/>
</FrameLayout>
<LinearLayout
android:id=
"@+id/linearLayout"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentTop=
"true"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"80dp"
android:orientation=
"horizontal"
>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:fontFamily=
"@font/gotham"
android:text=
"Good "
android:textColor=
"#ffffff"
android:textSize=
"32sp"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
<TextView
android:id=
"@+id/textView"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentTop=
"true"
android:layout_centerHorizontal=
"true"
android:fontFamily=
"@font/gotham"
android:text=
"Morning"
android:textColor=
"#ffffff"
android:textSize=
"32sp"
/>
<View
android:layout_width=
"match_parent"
android:layout_height=
"2dp"
android:layout_marginTop=
"2dp"
android:background=
"#deff00"
/>
</LinearLayout>
</LinearLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/linearLayout"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"4dp"
android:fontFamily=
"@font/calibri"
android:gravity=
"center"
android:text=
"echo proxy client"
android:textColor=
"#9affffff"
android:textSize=
"10sp"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:layout_centerHorizontal=
"true"
android:layout_marginBottom=
"32dp"
android:orientation=
"vertical"
android:paddingLeft=
"32dp"
android:paddingRight=
"32dp"
>
<android.support.design.widget.TextInputLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:textColorHint=
"#96ffffff"
android:theme=
"@style/EditScreenTextInputLayoutStyle"
>
<EditText
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:drawablePadding=
"16dp"
android:drawableRight=
"@drawable/ic_email_white_24dp"
android:fontFamily=
"@font/calibri"
android:hint=
"UserName"
android:inputType=
"textEmailAddress"
android:maxLines=
"1"
android:textColor=
"@android:color/white"
android:textSize=
"16sp"
/>
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:textColorHint=
"#96ffffff"
android:theme=
"@style/EditScreenTextInputLayoutStyle"
>
<EditText
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:drawablePadding=
"16dp"
android:drawableRight=
"@drawable/ic_lock_white_24dp"
android:fontFamily=
"@font/calibri"
android:hint=
"Password"
android:inputType=
"textPassword"
android:maxLines=
"1"
android:textColor=
"@android:color/white"
android:textSize=
"16sp"
/>
</android.support.design.widget.TextInputLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"16dp"
android:layout_marginBottom=
"8dp"
android:gravity=
"center"
android:orientation=
"horizontal"
>
<Button
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"16dp"
android:background=
"@drawable/buttonshapewhitebg"
android:fontFamily=
"@font/calibri"
android:text=
"Sign in"
android:textAllCaps=
"false"
android:textStyle=
"bold"
android:textColor=
"#96ffffff"
android:textSize=
"16dp"
/>
<Button
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"16dp"
android:background=
"@drawable/buttonshapewhitebg"
android:fontFamily=
"@font/calibri"
android:text=
"Settings"
android:textAllCaps=
"false"
android:textColor=
"#96ffffff"
android:textSize=
"16dp"
android:textStyle=
"bold"
/>
</LinearLayout>
<TextView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"16dp"
android:fontFamily=
"@font/calibri"
android:text=
"powered by virjar@intiin.inc"
android:textAlignment=
"center"
android:textColor=
"#96ffffff"
android:textSize=
"16sp"
/>
</LinearLayout>
</RelativeLayout>
app/src/main/res/values/colors.xml
View file @
8ec9bb6f
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color
name=
"colorPrimary"
>
#6200EE
</color>
<color
name=
"colorPrimaryDark"
>
#3700B3
</color>
<color
name=
"colorAccent"
>
#03DAC5
</color>
<color
name=
"colorPrimary"
>
#FFFFFF
</color>
<color
name=
"colorPrimaryDark"
>
#FFFFFF
</color>
<color
name=
"colorAccent"
>
#FFFFFF
</color>
<color
name=
"textInputLayout"
>
#96ffffff
</color>
</resources>
app/src/main/res/values/styles.xml
View file @
8ec9bb6f
...
...
@@ -7,5 +7,11 @@
<item
name=
"colorPrimaryDark"
>
@color/colorPrimaryDark
</item>
<item
name=
"colorAccent"
>
@color/colorAccent
</item>
</style>
<style
name=
"EditScreenTextInputLayoutStyle"
parent=
"Theme.AppCompat.Light.NoActionBar"
>
<item
name=
"colorControlNormal"
>
@color/textInputLayout
</item>
<item
name=
"colorControlActivated"
>
@color/textInputLayout
</item>
<item
name=
"colorControlHighlight"
>
@color/textInputLayout
</item>
<item
name=
"colorAccent"
>
@color/textInputLayout
</item>
<item
name=
"android:textColorHint"
>
@color/textInputLayout
</item>
</style>
</resources>
gradle.properties
View file @
8ec9bb6f
...
...
@@ -14,7 +14,7 @@ org.gradle.jvmargs=-Xmx1536m
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app's APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX
=
tru
e
android.useAndroidX
=
fals
e
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier
=
tru
e
android.enableJetifier
=
fals
e
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