@@ -28,8 +27,8 @@ class AuthenticationLoginFragment : Fragment() {
...
@@ -28,8 +27,8 @@ class AuthenticationLoginFragment : Fragment() {
// Just an example: if the server allow the login via social accounts (oauth authentication) then show the respective interface.
// Just an example: if the server allow the login via social accounts (oauth authentication) then show the respective interface.
shouldShowOauthView(true)
shouldShowOauthView(true)
// In this case we need to setup the text_username_or_email and text_password EditText to hide and show the oauth interface when the user touch the respective fields.
// In this case we need to setup the layout to hide and show the oauth interface when the soft keyboard is shown (means that the user touched the text_username_or_email and text_password EditText).
setupEditTextListener()
setupGlobalLayoutListener()
// Show the first three social account's ImageButton (REMARK: we must show at maximum *three* views)
// Show the first three social account's ImageButton (REMARK: we must show at maximum *three* views)
showLoginUsingFacebookImageButton()
showLoginUsingFacebookImageButton()
...
@@ -55,23 +54,9 @@ class AuthenticationLoginFragment : Fragment() {
...
@@ -55,23 +54,9 @@ class AuthenticationLoginFragment : Fragment() {