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
93a7930d
authored
Sep 02, 2016
by
Krishna Vemulavada
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
loginscreen make as scrollable
parent
f44312e4
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
59 additions
and
111 deletions
app/build.gradle
app/src/main/java/com/vsoft/uoflservicenow/ui/LoginScreen.java
app/src/main/java/com/vsoft/uoflservicenow/ui/MyRequestActivity.java
app/src/main/res/drawable/ic_chevron_left_black_24dp.xml
app/src/main/res/layout/activity_login.xml
app/src/main/res/layout/login_screen.xml
app/src/main/res/layout/request_list_screen.xml
app/src/main/res/values/dimen.xml
app/build.gradle
View file @
93a7930d
...
...
@@ -31,7 +31,7 @@ android {
defaultConfig
{
applicationId
"com.vsoft.uoflservicenow"
minSdkVersion
9
minSdkVersion
15
targetSdkVersion
24
versionCode
1
versionName
"0.0.4"
...
...
app/src/main/java/com/vsoft/uoflservicenow/ui/LoginScreen.java
View file @
93a7930d
...
...
@@ -97,15 +97,8 @@ public class LoginScreen extends Activity {
userName
.
setError
(
getResources
().
getString
(
R
.
string
.
user_error
));
return
;
}
else
if
(
TextUtils
.
isEmpty
(
passwordStrng
))
{
password
.
setError
(
getResources
().
getString
(
R
.
string
.
pasw_error
));
return
;
}
else
if
(
TextUtils
.
isEmpty
(
userNameStrng
)||
TextUtils
.
isEmpty
(
passwordStrng
))
{
userName
.
setError
(
getResources
().
getString
(
R
.
string
.
user_error
));
password
.
setError
(
getResources
().
getString
(
R
.
string
.
pasw_error
));
return
;
}
else
if
(!
TextUtils
.
isEmpty
(
userNameStrng
)
&&
!
TextUtils
.
isEmpty
(
passwordStrng
)){
else
if
(!
TextUtils
.
isEmpty
(
userNameStrng
)
&&
!
TextUtils
.
isEmpty
(
passwordStrng
)){
new
LoginDetailsSendToServer
().
execute
(
userName
.
getText
().
toString
().
trim
(),
password
.
getText
().
toString
().
trim
());
}
...
...
app/src/main/java/com/vsoft/uoflservicenow/ui/MyRequestActivity.java
View file @
93a7930d
...
...
@@ -53,7 +53,6 @@ public class MyRequestActivity extends AppCompatActivity {
actionBar
.
setDisplayHomeAsUpEnabled
(
true
);
actionBar
.
setElevation
(
0
);
actionBar
.
setTitle
(
R
.
string
.
my_reques_string
);
actionBar
.
setTitle
(
R
.
string
.
my_reques_string
);
actionBar
.
setDisplayShowHomeEnabled
(
false
);
actionBar
.
setDisplayShowTitleEnabled
(
true
);
}
...
...
app/src/main/res/drawable/ic_chevron_left_black_24dp.xml
0 → 100644
View file @
93a7930d
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:width=
"36dp"
android:height=
"36dp"
android:viewportWidth=
"24.0"
android:viewportHeight=
"24.0"
>
<path
android:fillColor=
"@android:color/holo_red_dark"
android:pathData=
"M15.41,7.41L14,6l-6,6 6,6 1.41,-1.41L10.83,12z"
/>
</vector>
app/src/main/res/layout/activity_login.xml
View file @
93a7930d
<?xml version="1.0" encoding="utf-8"?>
<
LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<
ScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"
wrap_cont
ent"
android:layout_height=
"
match_par
ent"
android:layout_gravity=
"center"
android:background=
"#FFF"
android:gravity=
"center"
android:id=
"@+id/login_scroll"
android:orientation=
"vertical"
>
<ScrollView
android:id=
"@+id/login_scroll"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:scrollbarStyle=
"insideOverlay"
...
...
@@ -33,7 +34,7 @@
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"
wrap_cont
ent"
android:layout_height=
"
match_par
ent"
android:background=
"@drawable/ic_login_layout_bg"
android:orientation=
"vertical"
...
...
@@ -44,12 +45,15 @@
android:layout_height=
"wrap_content"
android:background=
"@drawable/username_under_bg_box"
android:hint=
"Username"
android:layout_marginLeft=
"20dp"
android:layout_marginRight=
"20dp"
android:padding=
"10dp"
android:layout_marginLeft=
"@dimen/login_screen_margin_left"
android:layout_marginRight=
"@dimen/login_screen_margin_right"
android:padding=
"@dimen/normal_margin"
android:inputType=
"text"
android:cursorVisible=
"true"
android:text=
""
android:drawableLeft=
"@mipmap/ic_user_icon"
android:singleLine=
"true"
/
>
android:singleLine=
"true"
>
</EditText
>
<EditText
android:id=
"@+id/login_screen_password_edit_text"
android:layout_width=
"match_parent"
...
...
@@ -57,30 +61,31 @@
android:background=
"@drawable/username_under_bg_box"
android:hint=
"Password"
android:drawableLeft=
"@mipmap/ic_password_icon"
android:inputType=
"textPassword"
android:padding=
"10dp"
android:layout_marginLeft=
"20dp"
android:layout_marginRight=
"20dp"
android:padding=
"@dimen/normal_margin"
android:text=
""
android:layout_marginLeft=
"@dimen/login_screen_margin_left"
android:layout_marginRight=
"@dimen/login_screen_margin_right"
android:singleLine=
"true"
/>
<TextView
android:id=
"@+id/login_screen_login_text_view"
android:layout_width=
"match_parent"
android:layout_height=
"
40dp
"
android:layout_
gravity=
"left
"
android:
layout_marginTop=
"10dp
"
android:
layout_marginBottom=
"10dp
"
android:
padding=
"10dp
"
android:layout_height=
"
wrap_content
"
android:layout_
marginTop=
"@dimen/normal_margin
"
android:
paddingBottom=
"@dimen/normal_margin
"
android:
paddingTop=
"@dimen/normal_margin
"
android:
textColor=
"@android:color/white
"
android:background=
"@drawable/login_bg"
android:layout_marginLeft=
"
20dp
"
android:layout_marginRight=
"
20dp
"
android:layout_marginLeft=
"
@dimen/login_screen_margin_left
"
android:layout_marginRight=
"
@dimen/login_screen_margin_right
"
android:text=
"@string/login_screen_login_string"
android:textAlignment=
"center"
android:textSize=
"@dimen/extra_normal_text_size"
/>
</LinearLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
\ No newline at end of file
</ScrollView>
\ No newline at end of file
app/src/main/res/layout/login_screen.xml
deleted
100644 → 0
View file @
f44312e4
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@drawable/ic_login_background"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"bottom"
android:layout_marginBottom=
"@dimen/login_screen_layout_margin_bottom"
android:layout_marginLeft=
"@dimen/login_screen_layout_margin_left"
android:layout_marginRight=
"@dimen/login_screen_layout_margin_right"
android:layout_marginTop=
"@dimen/login_screen_layout_margin_top"
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/login_screen_margin_left"
android:layout_marginRight=
"@dimen/login_screen_margin_right"
android:background=
"@drawable/username_under_bg_box"
android:drawableLeft=
"@mipmap/ic_user_icon"
android:hint=
"@string/login_screen_user_name_string"
android:lines=
"1"
android:singleLine=
"true"
android:text=
"a0kuma18"
android:textCursorDrawable=
"@null"
/>
<EditText
android:id=
"@+id/login_screen_password_edit_text"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/login_screen_margin_left"
android:layout_marginRight=
"@dimen/login_screen_margin_right"
android:background=
"@drawable/username_under_bg_box"
android:drawableLeft=
"@mipmap/ic_password_icon"
android:hint=
"@string/login_screen_password_string"
android:inputType=
"textPassword"
android:lines=
"1"
android:singleLine=
"true"
android:text=
"v$0ftA$win"
android:textCursorDrawable=
"@null"
/>
<TextView
android:id=
"@+id/login_screen_login_text_view"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/login_screen_margin_left"
android:layout_marginRight=
"@dimen/login_screen_margin_right"
android:layout_marginTop=
"@dimen/login_screen_login_bottom"
android:background=
"@drawable/login_bg"
android:paddingBottom=
"@dimen/normal_margin"
android:paddingTop=
"@dimen/normal_margin"
android:textAlignment=
"center"
android:textColor=
"@android:color/white"
android:textSize=
"@dimen/extra_normal_text_size"
/>
</LinearLayout>
</LinearLayout>
app/src/main/res/layout/request_list_screen.xml
View file @
93a7930d
<?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"
android:orientation=
"vertical"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/screen_bg_color"
>
android:background=
"@color/screen_bg_color"
android:orientation=
"vertical"
>
<android.support.v7.widget.Toolbar
android:id=
"@+id/tool_bar_view"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_margin=
"0dp"
android:background=
"@android:color/white"
android:minHeight=
"?attr/actionBarSize"
android:padding=
"0dp"
app:contentInsetEnd=
"0dp"
app:contentInsetLeft=
"0dp"
app:contentInsetRight=
"0dp"
app:contentInsetStart=
"0dp"
/>
android:id=
"@+id/tool_bar_view"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_margin=
"0dp"
android:background=
"@android:color/white"
android:minHeight=
"?attr/actionBarSize"
android:padding=
"0dp"
app:contentInsetEnd=
"0dp"
app:contentInsetLeft=
"0dp"
app:contentInsetRight=
"0dp"
app:contentInsetStart=
"0dp"
/>
<ListView
android:id=
"@+id/request_screen_list_view"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@android:color/white"
android:layout_margin=
"8dp"
android:
padding=
"10dp
"
android:
background=
"@android:color/white
"
android:divider=
"#8e8e8e"
android:dividerHeight=
"0.5dp"
android:scrollbars=
"none"
/>
android:padding=
"10dp"
android:scrollbars=
"none"
/>
</LinearLayout>
\ No newline at end of file
app/src/main/res/values/dimen.xml
View file @
93a7930d
...
...
@@ -20,8 +20,8 @@
<dimen
name=
"list_item_height"
>
100dp
</dimen>
<!--Login Screen-->
<dimen
name=
"login_screen_margin_left"
>
2
0dp
</dimen>
<dimen
name=
"login_screen_margin_right"
>
2
0dp
</dimen>
<dimen
name=
"login_screen_margin_left"
>
3
0dp
</dimen>
<dimen
name=
"login_screen_margin_right"
>
3
0dp
</dimen>
<dimen
name=
"login_screen_login_bottom"
>
15dp
</dimen>
<dimen
name=
"login_screen_layout_margin_left"
>
20dp
</dimen>
<dimen
name=
"login_screen_layout_margin_right"
>
20dp
</dimen>
...
...
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