Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
51c69a8d
authored
Dec 16, 2016
by
german
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Invisible lists if keyboard appear. Show again the list if keyboard dissapear fault
parent
7f3dbfae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
3 deletions
android/Pictogram/tabletlibrary/src/main/java/com/yottacode/pictogram/tabletlibrary/gui/SerialActivity.java
android/Pictogram/tabletlibrary/src/main/res/layout/activity_serial.xml
android/Pictogram/tabletlibrary/src/main/java/com/yottacode/pictogram/tabletlibrary/gui/SerialActivity.java
View file @
51c69a8d
...
...
@@ -3,12 +3,15 @@ package com.yottacode.pictogram.tabletlibrary.gui;
import
android.app.Activity
;
import
android.content.Intent
;
import
android.content.SharedPreferences
;
import
android.content.res.Configuration
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.view.View.OnClickListener
;
import
android.view.Window
;
import
android.view.WindowManager
;
import
android.widget.Button
;
import
android.widget.EditText
;
import
android.widget.LinearLayout
;
import
com.yottacode.pictogram.dao.UserLogin
;
import
com.yottacode.pictogram.tabletlibrary.R
;
...
...
@@ -52,7 +55,8 @@ public class SerialActivity extends Activity {
requestWindowFeature
(
Window
.
FEATURE_NO_TITLE
);
setContentView
(
R
.
layout
.
activity_serial
);
//Initial keyboard hide
getWindow
().
setSoftInputMode
(
WindowManager
.
LayoutParams
.
SOFT_INPUT_STATE_ALWAYS_HIDDEN
);
final
EditText
mSerialViewMail
=
(
EditText
)
findViewById
(
R
.
id
.
serialmail
);
final
EditText
mSerialViewPass
=
(
EditText
)
findViewById
(
R
.
id
.
serialpass
);
...
...
@@ -65,6 +69,29 @@ public class SerialActivity extends Activity {
mSerialViewMail
.
setText
(
username
);
mSerialViewPass
.
setText
(
password
);
final
LinearLayout
stuList
=
(
LinearLayout
)
findViewById
(
R
.
id
.
stuLay
);
final
LinearLayout
supList
=
(
LinearLayout
)
findViewById
(
R
.
id
.
supLay
);
mSerialViewMail
.
setOnFocusChangeListener
(
new
View
.
OnFocusChangeListener
()
{
@Override
public
void
onFocusChange
(
View
view
,
boolean
hasFocus
)
{
if
(
hasFocus
){
stuList
.
setVisibility
(
View
.
INVISIBLE
);
supList
.
setVisibility
(
View
.
INVISIBLE
);
}
}
});
mSerialViewPass
.
setOnFocusChangeListener
(
new
View
.
OnFocusChangeListener
()
{
@Override
public
void
onFocusChange
(
View
view
,
boolean
hasFocus
)
{
if
(
hasFocus
){
stuList
.
setVisibility
(
View
.
INVISIBLE
);
supList
.
setVisibility
(
View
.
INVISIBLE
);
}
}
});
// Escribo el último valor indicado de username
...
...
android/Pictogram/tabletlibrary/src/main/res/layout/activity_serial.xml
View file @
51c69a8d
...
...
@@ -72,7 +72,8 @@
android:layout_width=
"400px"
android:layout_alignParentBottom=
"true"
android:layout_alignStart=
"@+id/entrar_button"
android:layout_marginStart=
"270dp"
>
android:layout_marginStart=
"270dp"
android:id=
"@+id/supLay"
>
<TextView
android:layout_width=
"match_parent"
...
...
@@ -97,7 +98,8 @@
android:background=
"@color/darkred"
android:layout_width=
"400px"
android:layout_alignParentBottom=
"true"
android:layout_alignParentStart=
"true"
>
android:layout_alignParentStart=
"true"
android:id=
"@+id/stuLay"
>
<TextView
android:layout_width=
"match_parent"
...
...
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