Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
likorn
/
vocabulary_notebook
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
52b96bce
authored
Nov 10, 2018
by
Paktalin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Completely replaced progress bar inclusion with fragment
parent
54f4a681
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
35 deletions
.idea/misc.xml
app/src/main/java/com/paktalin/vocabularynotebook/ui/LogInActivity.kt
app/src/main/java/com/paktalin/vocabularynotebook/ui/MainActivity.kt
app/src/main/res/layout/activity_log_in.xml
app/src/main/res/layout/activity_main.xml
app/src/main/res/layout/notebook_sheet.xml
app/src/main/res/layout/progress.xml
.idea/misc.xml
View file @
52b96bce
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
</value>
</value>
</option>
</option>
</component>
</component>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_
7
"
project-jdk-name=
"1.8"
project-jdk-type=
"JavaSDK"
>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_
8
"
project-jdk-name=
"1.8"
project-jdk-type=
"JavaSDK"
>
<output
url=
"file://$PROJECT_DIR$/build/classes"
/>
<output
url=
"file://$PROJECT_DIR$/build/classes"
/>
</component>
</component>
<component
name=
"ProjectType"
>
<component
name=
"ProjectType"
>
...
...
app/src/main/java/com/paktalin/vocabularynotebook/ui/LogInActivity.kt
View file @
52b96bce
...
@@ -5,14 +5,10 @@ import android.content.Intent
...
@@ -5,14 +5,10 @@ import android.content.Intent
import
android.support.v7.app.AppCompatActivity
import
android.support.v7.app.AppCompatActivity
import
android.os.Bundle
import
android.os.Bundle
import
android.util.Log
import
android.util.Log
import
android.view.View
import
com.google.firebase.auth.FirebaseAuth
import
com.google.firebase.auth.FirebaseAuth
import
com.paktalin.vocabularynotebook.*
import
kotlinx.android.synthetic.main.activity_log_in.*
import
kotlinx.android.synthetic.main.activity_log_in.*
import
com.paktalin.vocabularynotebook.R
import
com.paktalin.vocabularynotebook.UserManager
import
com.paktalin.vocabularynotebook.fieldsNotEmpty
import
com.paktalin.vocabularynotebook.shortToast
class
LogInActivity
:
AppCompatActivity
()
{
class
LogInActivity
:
AppCompatActivity
()
{
private
var
mAuth
:
FirebaseAuth
?
=
null
private
var
mAuth
:
FirebaseAuth
?
=
null
...
@@ -78,9 +74,9 @@ class LogInActivity : AppCompatActivity() {
...
@@ -78,9 +74,9 @@ class LogInActivity : AppCompatActivity() {
startActivity
(
userActivityIntent
)
startActivity
(
userActivityIntent
)
}
}
private
fun
showProgressBar
()
{
progress
.
visibility
=
View
.
VISIBLE
}
private
fun
showProgressBar
()
{
addProgressBar
(
supportFragmentManager
,
R
.
id
.
container_login
)
}
private
fun
hideProgressBar
()
{
progress
.
visibility
=
View
.
GONE
}
private
fun
hideProgressBar
()
{
removeProgressBar
(
supportFragmentManager
)
}
@SuppressLint
(
"SetTextI18n"
)
@SuppressLint
(
"SetTextI18n"
)
private
fun
createRandomUser
()
{
private
fun
createRandomUser
()
{
...
...
app/src/main/java/com/paktalin/vocabularynotebook/ui/MainActivity.kt
View file @
52b96bce
...
@@ -104,7 +104,7 @@ class MainActivity : AppCompatActivity() {
...
@@ -104,7 +104,7 @@ class MainActivity : AppCompatActivity() {
}
}
fun
addProgressBar
()
{
fun
addProgressBar
()
{
addProgressBar
(
supportFragmentManager
,
R
.
id
.
frameLayout
)
addProgressBar
(
supportFragmentManager
,
R
.
id
.
container_main
)
}
}
fun
removeProgressBar
()
{
fun
removeProgressBar
()
{
...
...
app/src/main/res/layout/activity_log_in.xml
View file @
52b96bce
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
<android.support.constraint.ConstraintLayout
android:id=
"@+id/container_login"
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
xmlns:tools=
"http://schemas.android.com/tools"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
...
@@ -7,11 +8,6 @@
...
@@ -7,11 +8,6 @@
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
tools:context=
".ui.LogInActivity"
>
tools:context=
".ui.LogInActivity"
>
<include
android:id=
"@+id/progress"
layout=
"@layout/progress"
android:visibility=
"gone"
/>
<EditText
<EditText
android:id=
"@+id/etEmail"
android:id=
"@+id/etEmail"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
...
app/src/main/res/layout/activity_main.xml
View file @
52b96bce
...
@@ -9,17 +9,11 @@
...
@@ -9,17 +9,11 @@
android:background=
"#66330E"
>
android:background=
"#66330E"
>
<FrameLayout
<FrameLayout
android:id=
"@+id/
frameLayout
"
android:id=
"@+id/
container_main
"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
<include
layout=
"@layout/notebook_sheet"
/>
<include
layout=
"@layout/notebook_sheet"
/>
<include
android:id=
"@+id/progress"
layout=
"@layout/progress"
android:visibility=
"gone"
/>
</FrameLayout>
</FrameLayout>
<android.support.design.widget.NavigationView
<android.support.design.widget.NavigationView
...
...
app/src/main/res/layout/notebook_sheet.xml
View file @
52b96bce
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
<FrameLayout
<FrameLayout
android:id=
"@+id/
frameLayout
"
android:id=
"@+id/
container_main
"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"@dimen/small_margin"
android:layout_marginEnd=
"@dimen/small_margin"
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/
frameLayout
"
app:layout_constraintTop_toBottomOf=
"@+id/
container_main
"
app:layout_constraintVertical_bias=
"0.0"
>
app:layout_constraintVertical_bias=
"0.0"
>
<LinearLayout
<LinearLayout
...
...
app/src/main/res/layout/progress.xml
deleted
100644 → 0
View file @
54f4a681
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<ProgressBar
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
/>
</FrameLayout>
\ No newline at end of file
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