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
2f329ed7
authored
Sep 06, 2016
by
npadhy
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
login in keyboard hiden
parent
a465a9a0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
106 additions
and
70 deletions
app/build.gradle
app/src/main/AndroidManifest.xml
app/src/main/java/com/vsoft/uoflservicenow/ui/LoginScreen.java
app/src/main/java/com/vsoft/uoflservicenow/ui/MyRequestActivity.java
app/src/main/java/com/vsoft/uoflservicenow/utils/KeyboardUtil.java
app/src/main/res/drawable/ic_arrow_back_black_24dp.xml
app/src/main/res/drawable/ic_chevron_left_black_24dp.xml
app/src/main/res/layout/activity_login.xml
app/src/main/res/layout/request_list_screen.xml
app/src/main/res/values/colors.xml
app/build.gradle
View file @
2f329ed7
...
@@ -34,7 +34,7 @@ android {
...
@@ -34,7 +34,7 @@ android {
minSdkVersion
15
minSdkVersion
15
targetSdkVersion
24
targetSdkVersion
24
versionCode
1
versionCode
1
versionName
"0.0.
5
"
versionName
"0.0.
6
"
multiDexEnabled
true
multiDexEnabled
true
}
}
buildTypes
{
buildTypes
{
...
...
app/src/main/AndroidManifest.xml
View file @
2f329ed7
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
android:name=
"com.vsoft.uoflservicenow.ui.LoginScreen"
android:name=
"com.vsoft.uoflservicenow.ui.LoginScreen"
android:label=
"@string/app_name"
android:label=
"@string/app_name"
android:screenOrientation=
"portrait"
android:screenOrientation=
"portrait"
android:windowSoftInputMode=
"
stateHidden|adjustPa
n"
>
android:windowSoftInputMode=
"
adjustResize|stateHidde
n"
>
<intent-filter>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
<action
android:name=
"android.intent.action.MAIN"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
...
...
app/src/main/java/com/vsoft/uoflservicenow/ui/LoginScreen.java
View file @
2f329ed7
This diff is collapsed.
Click to expand it.
app/src/main/java/com/vsoft/uoflservicenow/ui/MyRequestActivity.java
View file @
2f329ed7
...
@@ -24,6 +24,7 @@ import com.vsoft.uoflservicenow.utils.Util;
...
@@ -24,6 +24,7 @@ import com.vsoft.uoflservicenow.utils.Util;
import
java.util.List
;
import
java.util.List
;
import
butterknife.BindView
;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
import
butterknife.ButterKnife
;
import
butterknife.OnClick
;
/**
/**
* Created by kvemulavada on 8/30/2016.
* Created by kvemulavada on 8/30/2016.
...
@@ -49,10 +50,9 @@ public class MyRequestActivity extends AppCompatActivity {
...
@@ -49,10 +50,9 @@ public class MyRequestActivity extends AppCompatActivity {
setSupportActionBar
(
mToolbar
);
setSupportActionBar
(
mToolbar
);
ActionBar
actionBar
=
getSupportActionBar
();
ActionBar
actionBar
=
getSupportActionBar
();
if
(
actionBar
!=
null
)
{
if
(
actionBar
!=
null
)
{
actionBar
.
setDisplayHomeAsUpEnabled
(
true
);
actionBar
.
setElevation
(
0
);
actionBar
.
setElevation
(
0
);
actionBar
.
setTitle
(
R
.
string
.
my_reques_string
);
actionBar
.
setTitle
(
""
);
actionBar
.
setDisplayShowHomeEnabled
(
false
);
actionBar
.
setDisplayShowHomeEnabled
(
false
);
actionBar
.
setDisplayShowTitleEnabled
(
true
);
actionBar
.
setDisplayShowTitleEnabled
(
true
);
}
}
...
@@ -68,6 +68,10 @@ public class MyRequestActivity extends AppCompatActivity {
...
@@ -68,6 +68,10 @@ public class MyRequestActivity extends AppCompatActivity {
}
}
}
}
@OnClick
(
R
.
id
.
nav_back
)
public
void
backButtonClick
()
{
finish
();
}
class
FetchMyRequestData
extends
AsyncTask
<
String
,
Void
,
SyncStatus
>
{
class
FetchMyRequestData
extends
AsyncTask
<
String
,
Void
,
SyncStatus
>
{
private
ProgressDialog
progressDialog
;
private
ProgressDialog
progressDialog
;
...
...
app/src/main/java/com/vsoft/uoflservicenow/utils/KeyboardUtil.java
0 → 100644
View file @
2f329ed7
package
com
.
vsoft
.
uoflservicenow
.
utils
;
import
android.app.Activity
;
import
android.content.Context
;
import
android.util.Log
;
import
android.view.inputmethod.InputMethodManager
;
/**
* Created by npadhy on 9/6/2016.
*/
public
class
KeyboardUtil
{
public
static
void
hideKeyboard
(
Activity
activity
)
{
try
{
InputMethodManager
inputManager
=
(
InputMethodManager
)
activity
.
getSystemService
(
Context
.
INPUT_METHOD_SERVICE
);
inputManager
.
hideSoftInputFromWindow
(
activity
.
getCurrentFocus
().
getWindowToken
(),
InputMethodManager
.
HIDE_NOT_ALWAYS
);
}
catch
(
Exception
e
)
{
// Ignore exceptions if any
Log
.
e
(
"KeyBoardUtil"
,
e
.
toString
(),
e
);
}
}
}
app/src/main/res/drawable/ic_arrow_back_black_24dp.xml
0 → 100644
View file @
2f329ed7
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:width=
"34dp"
android:height=
"34dp"
android:viewportWidth=
"24.0"
android:viewportHeight=
"24.0"
>
<path
android:fillColor=
"#E41B23"
android:pathData=
"M20,11H7.83l5.59,-5.59L12,4l-8,8 8,8 1.41,-1.41L7.83,13H20v-2z"
/>
</vector>
app/src/main/res/drawable/ic_chevron_left_black_24dp.xml
View file @
2f329ed7
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:width=
"3
6
dp"
android:width=
"3
5
dp"
android:height=
"
36
dp"
android:height=
"
45
dp"
android:viewportWidth=
"24.0"
android:viewportWidth=
"24.0"
android:viewportHeight=
"24.0"
>
android:viewportHeight=
"24.0"
>
<path
<path
android:fillColor=
"
@android:color/holo_red_dark
"
android:fillColor=
"
#FF0000
"
android:pathData=
"M15.41,7.41L14,6l-6,6 6,6 1.41,-1.41L10.83,12z"
/>
android:pathData=
"M15.41,7.41L14,6l-6,6 6,6 1.41,-1.41L10.83,12z"
/>
</vector>
</vector>
app/src/main/res/layout/activity_login.xml
View file @
2f329ed7
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<
ScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
<
LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
match_par
ent"
android:layout_height=
"
wrap_cont
ent"
android:layout_gravity=
"center"
android:layout_gravity=
"center"
android:background=
"#FFF"
android:background=
"#FFF"
android:gravity=
"center"
android:gravity=
"center"
android:id=
"@+id/login_scroll"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<ScrollView
<ScrollView
android:id=
"@+id/login_scroll"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:scrollbarStyle=
"insideOverlay"
android:scrollbarStyle=
"insideOverlay"
android:animateLayoutChanges=
"true"
android:animateLayoutChanges=
"true"
>
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
android:orientation=
"vertical"
>
>
<ImageView
<ImageView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
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_par
ent"
android:layout_height=
"
wrap_cont
ent"
android:background=
"@drawable/ic_login_layout_bg"
android:background=
"@drawable/ic_login_layout_bg"
android:orientation=
"vertical"
android:orientation=
"vertical"
>
>
<EditText
<EditText
android:id=
"@+id/login_screen_username_edit_text"
android:id=
"@+id/login_screen_username_edit_text"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@drawable/username_under_bg_box"
android:background=
"@drawable/username_under_bg_box"
android:hint=
"Username"
android:hint=
"Username"
android:layout_marginLeft=
"@dimen/login_screen_margin_left"
android:layout_marginLeft=
"20dp"
android:layout_marginRight=
"@dimen/login_screen_margin_right"
android:layout_marginRight=
"20dp"
android:padding=
"@dimen/normal_margin"
android:padding=
"10dp"
android:inputType=
"text"
android:cursorVisible=
"true"
android:text=
"a0kuma18"
android:text=
"a0kuma18"
android:drawableLeft=
"@mipmap/ic_user_icon"
android:drawableLeft=
"@mipmap/ic_user_icon"
android:singleLine=
"true"
>
android:singleLine=
"true"
/>
</EditText>
<EditText
<EditText
android:id=
"@+id/login_screen_password_edit_text"
android:id=
"@+id/login_screen_password_edit_text"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -62,30 +46,28 @@
...
@@ -62,30 +46,28 @@
android:hint=
"Password"
android:hint=
"Password"
android:drawableLeft=
"@mipmap/ic_password_icon"
android:drawableLeft=
"@mipmap/ic_password_icon"
android:inputType=
"textPassword"
android:inputType=
"textPassword"
android:padding=
"
@dimen/normal_margin
"
android:padding=
"
10dp
"
android:text=
"v$0ftA$win"
android:text=
"v$0ftA$win"
android:layout_marginLeft=
"
@dimen/login_screen_margin_left
"
android:layout_marginLeft=
"
20dp
"
android:layout_marginRight=
"
@dimen/login_screen_margin_right
"
android:layout_marginRight=
"
20dp
"
android:singleLine=
"true"
/>
android:singleLine=
"true"
/>
<TextView
<TextView
android:id=
"@+id/login_screen_login_text_view"
android:id=
"@+id/login_screen_login_text_view"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/normal_margin"
android:layout_gravity=
"left"
android:paddingBottom=
"@dimen/normal_margin"
android:layout_marginTop=
"10dp"
android:paddingTop=
"@dimen/normal_margin"
android:layout_marginBottom=
"10dp"
android:paddingTop=
"10dp"
android:paddingBottom=
"10dp"
android:textColor=
"@android:color/white"
android:textColor=
"@android:color/white"
android:background=
"@drawable/login_bg"
android:background=
"@drawable/login_bg"
android:layout_marginLeft=
"@dimen/login_screen_margin_left"
android:layout_marginLeft=
"20dp"
android:layout_marginRight=
"@dimen/login_screen_margin_right"
android:layout_marginRight=
"20dp"
android:textSize=
"@dimen/large_text_size"
android:text=
"@string/login_screen_login_string"
android:text=
"@string/login_screen_login_string"
android:textAlignment=
"center"
android:textAlignment=
"center"
/>
android:textSize=
"@dimen/extra_normal_text_size"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</ScrollView>
</ScrollView>
</ScrollView>
</LinearLayout>
\ No newline at end of file
\ No newline at end of file
app/src/main/res/layout/request_list_screen.xml
View file @
2f329ed7
...
@@ -5,27 +5,41 @@
...
@@ -5,27 +5,41 @@
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/screen_bg_color"
android:background=
"@color/screen_bg_color"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<android.support.v7.widget.Toolbar
<android.support.v7.widget.Toolbar
android:id=
"@+id/tool_bar_view"
android:id=
"@+id/tool_bar_view"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin=
"0dp"
android:background=
"@android:color/white"
android:background=
"@android:color/white"
android:minHeight=
"?attr/actionBarSize"
android:minHeight=
"?attr/actionBarSize"
app:titleTextColor=
"@color/tool_bar_title_color"
>
android:padding=
"0dp"
<RelativeLayout
app:contentInsetEnd=
"0dp"
android:layout_width=
"match_parent"
app:contentInsetLeft=
"0dp"
android:layout_height=
"wrap_content"
app:contentInsetRight=
"0dp"
android:layout_alignParentLeft=
"true"
>
app:contentInsetStart=
"0dp"
/>
<ImageView
android:id=
"@+id/nav_back"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:src=
"@drawable/ic_arrow_back_black_24dp"
android:layout_alignParentLeft=
"true"
/>
<TextView
style=
"@style/TextAppearance.AppCompat.Widget.ActionBar.Title"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:layout_centerVertical=
"true"
android:text=
"@string/my_reques_string"
android:textColor=
"@color/tool_bar_title_color"
/>
</RelativeLayout>
</android.support.v7.widget.Toolbar>
<ListView
<ListView
android:id=
"@+id/request_screen_list_view"
android:id=
"@+id/request_screen_list_view"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_margin=
"
8
dp"
android:layout_margin=
"
10
dp"
android:background=
"@android:color/white"
android:background=
"@android:color/white"
android:divider=
"#8e8e8e"
android:divider=
"#8e8e8e"
android:dividerHeight=
"0.5dp"
android:dividerHeight=
"0.5dp"
...
...
app/src/main/res/values/colors.xml
View file @
2f329ed7
...
@@ -11,10 +11,11 @@
...
@@ -11,10 +11,11 @@
<color
name=
"home_screen_bg_color"
>
@color/colorPrimary
</color>
<color
name=
"home_screen_bg_color"
>
@color/colorPrimary
</color>
<color
name=
"screen_bg_color"
>
#c
0cfd1
</color>
<color
name=
"screen_bg_color"
>
#c
2d1d3
</color>
<color
name=
"bg_border_color"
>
#d6d6d6
</color>
<color
name=
"bg_border_color"
>
#d6d6d6
</color>
<color
name=
"back_button_bg_color"
>
#4f0307
</color>
<color
name=
"back_button_bg_color"
>
#4f0307
</color>
<color
name=
"submit_button_bg_color"
>
#e31b22
</color>
<color
name=
"submit_button_bg_color"
>
#e31b22
</color>
<color
name=
"divider_color"
>
#c9c8cc
</color>
<color
name=
"divider_color"
>
#c9c8cc
</color>
<color
name=
"tool_bar_title_color"
>
#E41B23
</color>
</resources>
</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