Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
BIDL
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Christof Wolke
BIDL
Commits
0dd39e0b
Commit
0dd39e0b
authored
Aug 04, 2016
by
Christof Wolke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed Login layout
parent
4f98dde5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
29 deletions
+47
-29
BIDL/BIDL/app/src/main/java/de/uni_oldenburg/bidl/guest_view/LoginActivity.java
.../java/de/uni_oldenburg/bidl/guest_view/LoginActivity.java
+2
-8
BIDL/BIDL/app/src/main/res/layout/activity_login.xml
BIDL/BIDL/app/src/main/res/layout/activity_login.xml
+44
-21
BIDL/BIDL/app/src/main/res/values/strings.xml
BIDL/BIDL/app/src/main/res/values/strings.xml
+1
-0
No files found.
BIDL/BIDL/app/src/main/java/de/uni_oldenburg/bidl/guest_view/LoginActivity.java
View file @
0dd39e0b
...
...
@@ -22,6 +22,7 @@ public class LoginActivity extends AppCompatActivity {
private
ImageView
unilogo
;
private
EditText
etEmail
;
private
EditText
etPassword
;
private
TextView
forgotPassword
;
private
CheckBox
stayLoggedIn
;
private
Button
btLogin
;
private
TextView
tvRegister
;
...
...
@@ -43,18 +44,11 @@ public class LoginActivity extends AppCompatActivity {
unilogo
=
(
ImageView
)
findViewById
(
R
.
id
.
uniLogo
);
etEmail
=
(
EditText
)
findViewById
(
R
.
id
.
email
);
etPassword
=
(
EditText
)
findViewById
(
R
.
id
.
password
);
forgotPassword
=
(
TextView
)
findViewById
(
R
.
id
.
toForgotPassword
);
stayLoggedIn
=
(
CheckBox
)
findViewById
(
R
.
id
.
keepingLoggedIn
);
btLogin
=
(
Button
)
findViewById
(
R
.
id
.
loginButton
);
tvRegister
=
(
TextView
)
findViewById
(
R
.
id
.
register
);
/** Fullscreen modus **/
getWindow
().
getDecorView
().
setSystemUiVisibility
(
View
.
SYSTEM_UI_FLAG_LAYOUT_STABLE
|
View
.
SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
|
View
.
SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
|
View
.
SYSTEM_UI_FLAG_HIDE_NAVIGATION
|
View
.
SYSTEM_UI_FLAG_FULLSCREEN
);
/** Login **/
btLogin
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
...
...
BIDL/BIDL/app/src/main/res/layout/activity_login.xml
View file @
0dd39e0b
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
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:id=
"@+id/activity_login"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
tools:context=
"de.uni_oldenburg.bidl.guest_view.LoginActivity"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
android:weightSum=
"1"
android:background=
"@color/white"
android:padding=
"12dp"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:id=
"@+id/uniLogo"
android:src=
"@drawable/unilogo"
android:layout_margin=
"10dp"
/>
<EditText
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:inputType=
"textEmailAddress"
android:layout_gravity=
"center"
android:id=
"@+id/email"
android:hint=
"@string/hintTextEmail"
android:layout_marginTop=
"30dp"
/>
android:layout_margin=
"10dp"
android:contentDescription=
"@string/imageViewDescription"
/>
<EditText
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:inputType=
"textPassword"
android:layout_gravity=
"center"
android:id=
"@+id/password"
android:hint=
"@string/hintTextPass"
android:layout_marginTop=
"10dp"
/>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<EditText
android:layout_width=
"200dp"
android:layout_height=
"wrap_content"
android:inputType=
"textPassword"
android:layout_gravity=
"center"
android:id=
"@+id/password"
android:hint=
"@string/hintTextPass"
android:ems=
"10"
android:layout_below=
"@+id/email"
android:layout_alignStart=
"@+id/email"
android:layout_marginTop=
"19dp"
/>
<EditText
android:layout_width=
"200dp"
android:layout_height=
"wrap_content"
android:inputType=
"textEmailAddress"
android:layout_gravity=
"center"
android:id=
"@+id/email"
android:hint=
"@string/hintTextEmail"
android:layout_marginStart=
"11dp"
android:layout_alignParentTop=
"true"
android:layout_alignParentStart=
"true"
/>
<TextView
android:text=
"@string/forgotPassword"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/email"
android:layout_toEndOf=
"@+id/password"
android:layout_marginStart=
"25dp"
android:id=
"@+id/toForgotPassword"
/>
</RelativeLayout>
<CheckBox
android:layout_width=
"wrap_content"
...
...
@@ -41,6 +63,7 @@
android:id=
"@+id/keepingLoggedIn"
android:checked=
"true"
android:layout_marginTop=
"10dp"
/>
<Button
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
...
...
@@ -57,6 +80,6 @@
android:textColor=
"@color/colorPrimary"
android:layout_gravity=
"center"
android:id=
"@+id/register"
android:layout_marginTop=
"
5
dp"
/>
android:layout_marginTop=
"
30
dp"
/>
</LinearLayout>
BIDL/BIDL/app/src/main/res/values/strings.xml
View file @
0dd39e0b
...
...
@@ -15,6 +15,7 @@
<string
name=
"checkBoxDescription"
>
Eingeloggt bleiben
</string>
<string
name=
"buttonDescription"
>
Login
</string>
<string
name=
"registerDescription"
>
Registrieren
</string>
<string
name=
"forgotPassword"
>
Passwort vergessen?
</string>
</resources>
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