Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Krishna Vemulavada
/
vera_2.1_app
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6d1b9b04
authored
Sep 27, 2019
by
Krishna Vemulawada
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
login choose
parent
69c0aa2a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
73 additions
and
25 deletions
app/src/main/AndroidManifest.xml
app/src/main/java/com/vsoft/vera/ui/LoginChooseActivity.java
app/src/main/java/com/vsoft/vera/ui/SplashScreen.java
app/src/main/res/layout/activity_login.xml
app/src/main/AndroidManifest.xml
View file @
6d1b9b04
...
@@ -41,6 +41,11 @@
...
@@ -41,6 +41,11 @@
android:name=
".ui.LoginScreen"
android:name=
".ui.LoginScreen"
android:screenOrientation=
"portrait"
android:screenOrientation=
"portrait"
android:windowSoftInputMode=
"adjustResize|stateHidden"
/>
android:windowSoftInputMode=
"adjustResize|stateHidden"
/>
<activity
android:name=
".ui.LoginChooseActivity"
android:screenOrientation=
"portrait"
/>
<activity
android:name=
".ui.ResetPasswordActivity"
<activity
android:name=
".ui.ResetPasswordActivity"
android:screenOrientation=
"portrait"
android:screenOrientation=
"portrait"
android:fitsSystemWindows=
"true"
android:fitsSystemWindows=
"true"
...
...
app/src/main/java/com/vsoft/vera/ui/LoginChooseActivity.java
0 → 100644
View file @
6d1b9b04
package
com
.
vsoft
.
vera
.
ui
;
import
android.app.Activity
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.widget.EditText
;
import
android.widget.ImageView
;
import
android.widget.TextView
;
import
com.vsoft.vera.CatalogueApplication
;
import
com.vsoft.vera.R
;
import
com.vsoft.vera.db.models.UserApiValues
;
import
java.util.List
;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
import
butterknife.OnClick
;
public
class
LoginChooseActivity
extends
Activity
{
TextView
loginSSO
,
loginOTP
;
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
// TODO Auto-generated method stub
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_login
);
loginSSO
=
findViewById
(
R
.
id
.
login_with_sso
);
loginOTP
=
findViewById
(
R
.
id
.
login_with_otp
);
loginSSO
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
}
});
loginOTP
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
}
});
}
}
app/src/main/java/com/vsoft/vera/ui/SplashScreen.java
View file @
6d1b9b04
...
@@ -49,7 +49,7 @@ public class SplashScreen extends Activity {
...
@@ -49,7 +49,7 @@ public class SplashScreen extends Activity {
public
void
run
()
{
public
void
run
()
{
// This method will be executed once the timer is over
// This method will be executed once the timer is over
// Start your app main activity
// Start your app main activity
Intent
i
=
new
Intent
(
SplashScreen
.
this
,
Login
Screen
.
class
);
Intent
i
=
new
Intent
(
SplashScreen
.
this
,
Login
ChooseActivity
.
class
);
startActivity
(
i
);
startActivity
(
i
);
// close this activity
// close this activity
...
...
app/src/main/res/layout/activity_login.xml
View file @
6d1b9b04
...
@@ -14,43 +14,37 @@
...
@@ -14,43 +14,37 @@
<ImageView
<ImageView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:visibility=
"gone"
android:background=
"@drawable/ic_login_banner"
/>
android:background=
"@drawable/ic_login_banner"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginTop=
"50dp"
android:layout_marginTop=
"250dp"
android:layout_gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<EditText
android:id=
"@+id/login_screen_username_edit_text"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/extra_large_margin"
android:layout_marginRight=
"@dimen/extra_large_margin"
android:background=
"@drawable/username_under_bg_box"
android:drawableLeft=
"@mipmap/ic_user_icon"
android:hint=
"@string/username_string"
android:lines=
"1"
android:padding=
"@dimen/normal_margin"
android:singleLine=
"true"
/>
<EditText
android:id=
"@+id/login_screen_password_edit_text"
<TextView
android:id=
"@+id/login_with_sso"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"@dimen/normal_margin"
android:layout_marginLeft=
"@dimen/extra_large_margin"
android:layout_marginLeft=
"@dimen/extra_large_margin"
android:layout_marginRight=
"@dimen/extra_large_margin"
android:layout_marginRight=
"@dimen/extra_large_margin"
android:background=
"@drawable/username_under_bg_box"
android:layout_marginTop=
"30dp"
android:drawableLeft=
"@mipmap/ic_password_icon"
android:background=
"@drawable/login_bg"
android:hint=
"@string/password_string"
android:gravity=
"center"
android:inputType=
"textPassword"
android:paddingBottom=
"@dimen/normal_margin"
android:lines=
"1"
android:paddingTop=
"@dimen/normal_margin"
android:padding=
"@dimen/normal_margin"
android:text=
"Login with SSO"
android:singleLine=
"true"
/>
android:textColor=
"@android:color/white"
android:textSize=
"@dimen/large_text_size"
/>
<TextView
<TextView
android:id=
"@+id/login_
screen_login_text_view
"
android:id=
"@+id/login_
with_otp
"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"@dimen/normal_margin"
android:layout_marginBottom=
"@dimen/normal_margin"
...
@@ -61,7 +55,7 @@
...
@@ -61,7 +55,7 @@
android:gravity=
"center"
android:gravity=
"center"
android:paddingBottom=
"@dimen/normal_margin"
android:paddingBottom=
"@dimen/normal_margin"
android:paddingTop=
"@dimen/normal_margin"
android:paddingTop=
"@dimen/normal_margin"
android:text=
"
@string/login_screen_login_string
"
android:text=
"
Login with otp
"
android:textColor=
"@android:color/white"
android:textColor=
"@android:color/white"
android:textSize=
"@dimen/large_text_size"
/>
android:textSize=
"@dimen/large_text_size"
/>
</LinearLayout>
</LinearLayout>
...
...
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