Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
likorn
/
Lavina
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
29537765
authored
May 07, 2018
by
Paktalin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Customized menu top
parent
74e5677d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
7 deletions
app/src/main/java/com/example/paktalin/lavina/LoginActivity.java
app/src/main/res/drawable/wine_button.png
app/src/main/res/layout/app_bar_main.xml
app/src/main/res/layout/nav_header_main.xml
app/src/main/res/values/strings.xml
app/src/main/java/com/example/paktalin/lavina/LoginActivity.java
View file @
29537765
...
@@ -3,6 +3,7 @@ package com.example.paktalin.lavina;
...
@@ -3,6 +3,7 @@ package com.example.paktalin.lavina;
import
android.animation.Animator
;
import
android.animation.Animator
;
import
android.animation.AnimatorListenerAdapter
;
import
android.animation.AnimatorListenerAdapter
;
import
android.annotation.TargetApi
;
import
android.annotation.TargetApi
;
import
android.content.Intent
;
import
android.content.pm.PackageManager
;
import
android.content.pm.PackageManager
;
import
android.support.annotation.NonNull
;
import
android.support.annotation.NonNull
;
import
android.support.design.widget.Snackbar
;
import
android.support.design.widget.Snackbar
;
...
@@ -186,6 +187,8 @@ public class LoginActivity extends AppCompatActivity implements LoaderCallbacks<
...
@@ -186,6 +187,8 @@ public class LoginActivity extends AppCompatActivity implements LoaderCallbacks<
showProgress
(
true
);
showProgress
(
true
);
mAuthTask
=
new
UserLoginTask
(
email
,
password
);
mAuthTask
=
new
UserLoginTask
(
email
,
password
);
mAuthTask
.
execute
((
Void
)
null
);
mAuthTask
.
execute
((
Void
)
null
);
Intent
intent
=
new
Intent
(
LoginActivity
.
this
,
MainActivity
.
class
);
startActivity
(
intent
);
}
}
}
}
private
boolean
isEmailValid
(
String
email
)
{
private
boolean
isEmailValid
(
String
email
)
{
...
...
app/src/main/res/drawable/wine_button.png
0 → 100644
View file @
29537765
7.4 KB
app/src/main/res/layout/app_bar_main.xml
View file @
29537765
...
@@ -27,7 +27,10 @@
...
@@ -27,7 +27,10 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"bottom|end"
android:layout_gravity=
"bottom|end"
app:backgroundTint=
"@color/colorPrimary"
app:srcCompat=
"@drawable/wine_button"
/>
<!--android:background="@color/colorPrimaryDark"-->
android:layout_margin="@dimen/fab_margin"
android:layout_margin="@dimen/fab_margin"
app:srcCompat=
"@
android:drawable/ic_dialog_email
"
/>
app:srcCompat="@
drawable/wine_button
" />
</android.support.design.widget.CoordinatorLayout>
</android.support.design.widget.CoordinatorLayout>
app/src/main/res/layout/nav_header_main.xml
View file @
29537765
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/nav_header_height"
android:layout_height=
"@dimen/nav_header_height"
android:background=
"@
drawable/side_nav_bar
"
android:background=
"@
color/colorPrimaryDark
"
android:gravity=
"bottom"
android:gravity=
"bottom"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:paddingBottom=
"@dimen/activity_vertical_margin"
android:paddingBottom=
"@dimen/activity_vertical_margin"
...
@@ -14,22 +14,22 @@
...
@@ -14,22 +14,22 @@
<ImageView
<ImageView
android:id=
"@+id/imageView"
android:id=
"@+id/imageView"
android:layout_width=
"
wrap_content
"
android:layout_width=
"
100dp
"
android:layout_height=
"
wrap_content
"
android:layout_height=
"
100dp
"
android:paddingTop=
"@dimen/nav_header_vertical_spacing"
android:paddingTop=
"@dimen/nav_header_vertical_spacing"
app:srcCompat=
"@
mipmap/ic_launcher_round
"
/>
app:srcCompat=
"@
drawable/logo
"
/>
<TextView
<TextView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:paddingTop=
"@dimen/nav_header_vertical_spacing"
android:paddingTop=
"@dimen/nav_header_vertical_spacing"
android:text=
"
Android Studio
"
android:text=
"
@string/app_name
"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
/>
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
/>
<TextView
<TextView
android:id=
"@+id/textView"
android:id=
"@+id/textView"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
android.studio@android.com
"
/>
android:text=
"
@string/slogan
"
/>
</LinearLayout>
</LinearLayout>
app/src/main/res/values/strings.xml
View file @
29537765
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
<!-- Strings related to login -->
<!-- Strings related to login -->
<string
name=
"prompt_email"
>
Email
</string>
<string
name=
"prompt_email"
>
Email
</string>
<string
name=
"slogan"
>
Your digital cellar
</string>
<string
name=
"prompt_password"
>
Password (optional)
</string>
<string
name=
"prompt_password"
>
Password (optional)
</string>
<string
name=
"action_sign_in"
>
Sign in
</string>
<string
name=
"action_sign_in"
>
Sign in
</string>
<string
name=
"action_register"
>
Register
</string>
<string
name=
"action_register"
>
Register
</string>
...
...
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