contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/ima… · o public...
TRANSCRIPT
![Page 1: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/1.jpg)
Contents Class Chat .................................................................................................................................................. 3
o Nested Class Summary .................................................................................................................. 4
Field Detail .................................................................................................................................... 4
Constructor Detail ......................................................................................................................... 4
Method Detail ............................................................................................................................... 4
Class Conversation .................................................................................................................................... 6
Field Detail .................................................................................................................................... 6
Constructor Detail ......................................................................................................................... 6
Method Detail ............................................................................................................................... 7
Class CustomActivity ................................................................................................................................. 8
Field Detail .................................................................................................................................... 9
Constructor Detail ......................................................................................................................... 9
Method Detail ............................................................................................................................... 9
Class CustomFragment ........................................................................................................................... 11
Field Detail .................................................................................................................................. 11
Constructor Detail ....................................................................................................................... 12
Method Detail ............................................................................................................................. 12
Class Data ............................................................................................................................................... 13
Field Detail .................................................................................................................................. 14
Constructor Detail ....................................................................................................................... 14
Method Detail ............................................................................................................................. 15
Class FindMatch ...................................................................................................................................... 16
Constructor Detail ....................................................................................................................... 17
Method Detail ............................................................................................................................. 17
Class JazzyViewPager ............................................................................................................................ 17
Field Detail .................................................................................................................................. 17
Constructor Detail ....................................................................................................................... 21
Method Detail ............................................................................................................................. 21
Enum JazzyViewPager.State ................................................................................................................... 31
![Page 2: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/2.jpg)
Enum Constant Detail ................................................................................................................. 31
Method Detail ............................................................................................................................. 31
Enum JazzyViewPager.TransitionEffect .................................................................................................. 33
Enum Constant Detail ................................................................................................................. 33
Method Detail ............................................................................................................................. 35
Class LeftNavAdapter ............................................................................................................................. 36
Field Detail .................................................................................................................................. 36
Constructor Detail ....................................................................................................................... 37
Method Detail ............................................................................................................................. 37
Class Login ............................................................................................................................................... 38
Constructor Detail ....................................................................................................................... 38
Method Detail ............................................................................................................................. 38
Class MainActivity ................................................................................................................................... 39
Field Detail .................................................................................................................................. 39
Constructor Detail ....................................................................................................................... 40
Method Detail ............................................................................................................................. 40
Class MainFragment................................................................................................................................ 42
o Nested Class Summary ................................................................................................................ 43
Field Detail .................................................................................................................................. 43
Constructor Detail ....................................................................................................................... 43
Method Detail ............................................................................................................................. 43
Class Match ............................................................................................................................................. 44
Constructor Detail ....................................................................................................................... 45
Method Detail ............................................................................................................................. 45
Class OutlineContainer ........................................................................................................................... 45
Field Detail .................................................................................................................................. 46
Constructor Detail ....................................................................................................................... 47
Method Detail ............................................................................................................................. 48
Class Profile ............................................................................................................................................. 49
Constructor Detail ....................................................................................................................... 49
Method Detail ............................................................................................................................. 49
![Page 3: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/3.jpg)
Class RightNavAdapter .......................................................................................................................... 50
Field Detail .................................................................................................................................. 50
Constructor Detail ....................................................................................................................... 50
Method Detail ............................................................................................................................. 51
Class Settings........................................................................................................................................... 51
Field Detail .................................................................................................................................. 51
Constructor Detail ....................................................................................................................... 52
Method Detail ............................................................................................................................. 52
Class SplashScreen ................................................................................................................................. 52
Field Detail .................................................................................................................................. 53
Constructor Detail ....................................................................................................................... 53
Method Detail ............................................................................................................................. 53
Class TouchEffect ................................................................................................................................... 54
Constructor Detail ....................................................................................................................... 54
Method Detail ............................................................................................................................. 54
Class Util ................................................................................................................................................. 55
Constructor Detail ....................................................................................................................... 55
Method Detail ............................................................................................................................. 55
com.imate.ui
Class Chat
public class Chat
extends CustomFragment
![Page 4: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/4.jpg)
The Class Chat is the Fragment class that is launched when the user clicks any
of item shown in Right navigation panel of Main Activity.. The current
implementation simply shows dummy conversations and when you send a
chat message it will show a dummy auto reply message. You can write your
own code for actual Chat.
o Nested Class Summary
Nested Classes
Modifier and Type Class and Description
private class Chat.ChatAdapter
The Class CutsomAdapter is the adapter class for Chat ListView.
Field Detail o convList
private java.util.ArrayList<Conversation> convList
The Conversation list.
o adp
private Chat.ChatAdapter adp
The chat adapter.
o txt
private android.widget.EditText txt
The Edittext to compose the message.
Constructor Detail o Chat
public Chat()
Method Detail
![Page 5: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/5.jpg)
o onCreateView o public android.view.View onCreateView(android.view.LayoutInflater
inflater,
o android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
Overrides:
onCreateView in class CustomFragment
o onClick
public void onClick(android.view.View v)
Specified by:
onClick in interface android.view.View.OnClickListener
Overrides:
onClick in class CustomFragment
o sendMessage
private void sendMessage()
Call this method to Send message to opponent. The current
implementation simply add an auto reply message with each sent
message. You need to write actual logic for sending and receiving the
messages.
o loadConversationList
private void loadConversationList()
This method currently loads a dummy list of conversations. You can
write the actual implementation of loading conversations.
com.imate.model
![Page 6: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/6.jpg)
Class Conversation
public class Conversation
extends java.lang.Object
The Class Conversation is a Java Bean class that represents a single chat
conversation message.
Field Detail o msg
private java.lang.String msg
The msg.
o isSent
private boolean isSent
The is sent.
o date
private java.lang.String date
The date.
Constructor Detail o Conversation o public Conversation(java.lang.String msg,
o java.lang.String date,
boolean isSent)
Instantiates a new conversation.
Parameters:
msg - the msg
date - the date
![Page 7: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/7.jpg)
isSent - the is sent
Method Detail o getMsg
public java.lang.String getMsg()
Gets the msg.
Returns:
the msg
o setMsg
public void setMsg(java.lang.String msg)
Sets the msg.
Parameters:
msg - the new msg
o isSent
public boolean isSent()
Checks if is sent.
Returns:
true, if is sent
o setSent
public void setSent(boolean isSent)
Sets the sent.
Parameters:
isSent - the new sent
![Page 8: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/8.jpg)
o getDate
public java.lang.String getDate()
Gets the date.
Returns:
the date
o setDate
public void setDate(java.lang.String date)
Sets the date.
Parameters:
date - the new date
com.imate.custom
Class CustomActivity
Direct Known Subclasses:
Login, MainActivity
public class CustomActivity
extends android.support.v4.app.FragmentActivity
implements android.view.View.OnClickListener
![Page 9: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/9.jpg)
This is a common activity that all other activities of the app can extend to
inherit the common behaviors like setting a Theme to activity.
Field Detail o TOUCH
public static final TouchEffect TOUCH
Apply this Constant as touch listener for views to provide alpha touch
effect. The view must have a Non-Transparent background.
Constructor Detail o CustomActivity
public CustomActivity()
Method Detail o onCreate
protected void onCreate(android.os.Bundle savedInstanceState)
Overrides:
onCreate in class android.support.v4.app.FragmentActivity
o onCreateOptionsMenu
public boolean onCreateOptionsMenu(android.view.Menu menu)
Overrides:
onCreateOptionsMenu in class android.app.Activity
o onOptionsItemSelected
public boolean onOptionsItemSelected(android.view.MenuItem item)
Overrides:
onOptionsItemSelected in class android.app.Activity
o setupActionBar
protected void setupActionBar()
This method will setup the top title bar (Action bar) content and display
values. It will also setup the custom background theme for ActionBar.
![Page 10: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/10.jpg)
You can override this method to change the behavior of ActionBar for
particular Activity
o setTouchNClick
public android.view.View setTouchNClick(int id)
Set the touch and click listener for a View.
Parameters:
id - the id of view
Returns:
the view
o setClick
public android.view.View setClick(int id)
Set the click listener for a View.
Parameters:
id - the id of view
Returns:
the view
o onClick
public void onClick(android.view.View v)
Specified by:
onClick in interface android.view.View.OnClickListener
![Page 11: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/11.jpg)
com.imate.custom
Class CustomFragment
Direct Known Subclasses:
Chat, FindMatch, MainFragment, Match, Profile, Settings
public class CustomFragment
extends android.support.v4.app.Fragment
implements android.view.View.OnClickListener
The Class CustomFragment is the base Fragment class. You can extend your
Fragment classes with this class in case you want to apply common set of rules
for those Fragments.
Field Detail o THEME
private static final java.lang.String THEME
The Constant THEME.
See Also:
Constant Field Values
o THEME_WHITE
public static final int THEME_WHITE
The Constant THEME_BLACK.
See Also:
Constant Field Values
o THEME_GRAY
![Page 12: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/12.jpg)
public static final int THEME_GRAY
The Constant THEME_GREEN.
See Also:
Constant Field Values
o THEME_RED
public static final int THEME_RED
The Constant THEME_RED.
See Also:
Constant Field Values
Constructor Detail o CustomFragment
public CustomFragment()
Method Detail o onCreateView o public android.view.View onCreateView(android.view.LayoutInflater
inflater,
o android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
Overrides:
onCreateView in class android.support.v4.app.Fragment
o setTouchNClick
public android.view.View setTouchNClick(android.view.View v)
Set the touch and click listener for a View.
Parameters:
v - the view
Returns:
![Page 13: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/13.jpg)
the same view
o onClick
public void onClick(android.view.View v)
Specified by:
onClick in interface android.view.View.OnClickListener
o saveAppTheme
protected void saveAppTheme(int theme)
Save the theme of the app.
Parameters:
theme - the theme to save
o getAppTheme
protected int getAppTheme()
Returns the current theme of the app. The return value can be one of
following: THEME_BLACK THEME_BLUE THEME_GREEN THEME_RED
Returns:
the app theme
com.imate.model
Class Data
![Page 14: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/14.jpg)
public class Data
extends java.lang.Object
The Class Data is a simple Java Bean that is used to hold Name, Detail and
image pairs.
Field Detail o title
private java.lang.String title
The title.
o desc
private java.lang.String desc
The description.
o image
private int image
The image resource id.
Constructor Detail o Data o public Data(java.lang.String title,
o java.lang.String desc,
int image)
Instantiates a new feed class.
Parameters:
title - the title
desc - the desc
image - the image
o Data o public Data(java.lang.String title,
int image)
Instantiates a new data.
![Page 15: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/15.jpg)
Parameters:
title - the title
image - the image
Method Detail o getTitle
public java.lang.String getTitle()
Gets the title.
Returns:
the title
o setTitle
public void setTitle(java.lang.String title)
Sets the title.
Parameters:
title - the new title
o getDesc
public java.lang.String getDesc()
Gets the description.
Returns:
the description
o setDesc
public void setDesc(java.lang.String desc)
Sets the description.
![Page 16: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/16.jpg)
Parameters:
desc - the new description
o getImage
public int getImage()
Gets the image resource id..
Returns:
the image resource id.
o setImage
public void setImage(int image)
Sets the image resource id..
Parameters:
image - the new image resource id.
com.imate.ui
Class FindMatch
public class FindMatch
extends CustomFragment
![Page 17: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/17.jpg)
The Class FindMatch is the Fragment class that is launched when the user
clicks on Location option in Left navigation panel. This simply shows a dummy
user image. This also applies the current selected theme on the layout.
Constructor Detail o FindMatch
public FindMatch()
Method Detail o onCreateView o public android.view.View onCreateView(android.view.LayoutInflater
inflater,
o android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
Overrides:
onCreateView in class CustomFragment
com.imate.pager
Class JazzyViewPager
public class JazzyViewPager
extends android.support.v4.view.ViewPager
The Class JazzyViewPager is an efficient custom ViewPager that provide a
total of 9 kind of different page transition effects like cube in/out, zoom in/out
etc. You can also customize any of the transition effect as per your need.
Field Detail
![Page 18: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/18.jpg)
o TAG
public static final java.lang.String TAG
The Constant TAG.
See Also:
Constant Field Values
o mEnabled
private boolean mEnabled
The flag for is enabled.
o mFadeEnabled
private boolean mFadeEnabled
The flag for is fade enabled.
o mOutlineEnabled
private boolean mOutlineEnabled
The flag for is outline enabled.
o sOutlineColor
public static int sOutlineColor
The outline color.
o mEffect
private JazzyViewPager.TransitionEffect mEffect
The current transition effect.
o mObjs
private java.util.HashMap<java.lang.Integer,java.lang.Object>
mObjs
![Page 19: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/19.jpg)
Map of View pager items.
o SCALE_MAX
private static final float SCALE_MAX
The Constant SCALE_MAX.
See Also:
Constant Field Values
o ZOOM_MAX
private static final float ZOOM_MAX
The Constant ZOOM_MAX.
See Also:
Constant Field Values
o ROT_MAX
private static final float ROT_MAX
The Constant ROT_MAX.
See Also:
Constant Field Values
o API_11
private static final boolean API_11
The Constant API_11.
o mState
private JazzyViewPager.State mState
The state.
![Page 20: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/20.jpg)
o oldPage
private int oldPage
The old page.
o mLeft
private android.view.View mLeft
The view on left side of current page.
o mRight
private android.view.View mRight
The view on right side of current page.
o mRot
private float mRot
The rotation angle.
o mTrans
private float mTrans
The transition value.
o mScale
private float mScale
The scale factor.
o mMatrix
private android.graphics.Matrix mMatrix
The m matrix.
o mCamera
private android.graphics.Camera mCamera
![Page 21: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/21.jpg)
The m camera.
o mTempFloat2
private float[] mTempFloat2
The m temp float2.
Constructor Detail o JazzyViewPager
public JazzyViewPager(android.content.Context context)
Instantiates a new jazzy view pager.
Parameters:
context - the context
o JazzyViewPager o public JazzyViewPager(android.content.Context context,
android.util.AttributeSet attrs)
Instantiates a new jazzy view pager.
Parameters:
context - the context
attrs - the attrs
Method Detail o setTransitionEffect
public void setTransitionEffect(JazzyViewPager.TransitionEffect e
ffect)
Sets the transition effect.
Parameters:
effect - the new transition effect
o setPagingEnabled
![Page 22: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/22.jpg)
public void setPagingEnabled(boolean enabled)
Sets the paging enabled.
Parameters:
enabled - the new paging enabled
o setFadeEnabled
public void setFadeEnabled(boolean enabled)
Sets the fade enabled.
Parameters:
enabled - the new fade enabled
o getFadeEnabled
public boolean getFadeEnabled()
Gets the fade enabled.
Returns:
the fade enabled
o setOutlineEnabled
public void setOutlineEnabled(boolean enabled)
Sets the outline enabled.
Parameters:
enabled - the new outline enabled
o setOutlineColor
public void setOutlineColor(int color)
Sets the outline color.
![Page 23: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/23.jpg)
Parameters:
color - the new outline color
o wrapWithOutlines
private void wrapWithOutlines()
Wrap with outlines.
o wrapChild
private android.view.View wrapChild(android.view.View child)
Wrap child.
Parameters:
child - the child
Returns:
the view
o addView
public void addView(android.view.View child)
Overrides:
addView in class android.view.ViewGroup
o addView o public void addView(android.view.View child,
int index)
Overrides:
addView in class android.view.ViewGroup
o addView o public void addView(android.view.View child,
android.support.v4.view.ViewPager.LayoutParams params)
o addView o public void addView(android.view.View child,
o int width,
int height)
![Page 24: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/24.jpg)
Overrides:
addView in class android.view.ViewGroup
o addView o public void addView(android.view.View child,
o int index,
android.support.v4.view.ViewPager.LayoutParams params)
o onInterceptTouchEvent
public boolean onInterceptTouchEvent(android.view.MotionEvent arg
0)
Overrides:
onInterceptTouchEvent in class android.support.v4.view.ViewPager
o logState o private void logState(android.view.View v,
java.lang.String title)
Log state.
Parameters:
v - the v
title - the title
o animateScroll o protected void animateScroll(int position,
float positionOffset)
Animate scroll.
Parameters:
position - the position
positionOffset - the position offset
o animateTablet o protected void animateTablet(android.view.View left,
o android.view.View right,
float positionOffset)
![Page 25: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/25.jpg)
Animate tablet.
Parameters:
left - the left
right - the right
positionOffset - the position offset
o animateCube o private void animateCube(android.view.View left,
o android.view.View right,
o float positionOffset,
boolean in)
Animate cube.
Parameters:
left - the left
right - the right
positionOffset - the position offset
in - the in
o animateAccordion o private void animateAccordion(android.view.View left,
o android.view.View right,
float positionOffset)
Animate accordion.
Parameters:
left - the left
right - the right
positionOffset - the position offset
o animateZoom o private void animateZoom(android.view.View left,
![Page 26: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/26.jpg)
o android.view.View right,
o float positionOffset,
boolean in)
Animate zoom.
Parameters:
left - the left
right - the right
positionOffset - the position offset
in - the in
o animateRotate o private void animateRotate(android.view.View left,
o android.view.View right,
o float positionOffset,
boolean up)
Animate rotate.
Parameters:
left - the left
right - the right
positionOffset - the position offset
up - the up
o animateFlipHorizontal o private void animateFlipHorizontal(android.view.View left,
o android.view.View right,
o float positionOffset,
int positionOffsetPixels)
Animate flip horizontal.
Parameters:
left - the left
![Page 27: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/27.jpg)
right - the right
positionOffset - the position offset
positionOffsetPixels - the position offset pixels
o animateFlipVertical o private void animateFlipVertical(android.view.View left,
o android.view.View right,
o float positionOffset,
int positionOffsetPixels)
Animate flip vertical.
Parameters:
left - the left
right - the right
positionOffset - the position offset
positionOffsetPixels - the position offset pixels
o animateStack o protected void animateStack(android.view.View left,
o android.view.View right,
o float positionOffset,
o int positionOffsetPixels,
int position)
Animate stack.
Parameters:
left - the left
right - the right
positionOffset - the position offset
positionOffsetPixels - the position offset pixels
position - the position
![Page 28: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/28.jpg)
o animateStackJ o protected void animateStackJ(android.view.View left,
o android.view.View right,
o float positionOffset,
o int positionOffsetPixels,
int position)
Animate stack j.
Parameters:
left - the left
right - the right
positionOffset - the position offset
positionOffsetPixels - the position offset pixels
position - the position
o manageLayer o private void manageLayer(android.view.View v,
boolean enableHardware)
Manage layer.
Parameters:
v - the v
enableHardware - the enable hardware
o disableHardwareLayer
private void disableHardwareLayer()
Disable hardware layer.
o getOffsetXForRotation o protected float getOffsetXForRotation(float degrees,
o int width,
int height)
Gets the offset x for rotation.
![Page 29: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/29.jpg)
Parameters:
degrees - the degrees
width - the width
height - the height
Returns:
the offset x for rotation
o animateFade o protected void animateFade(android.view.View left,
o android.view.View right,
float positionOffset)
Animate fade.
Parameters:
left - the left
right - the right
positionOffset - the position offset
o animateOutline o protected void animateOutline(android.view.View left,
android.view.View right)
Animate outline.
Parameters:
left - the left
right - the right
o onPageScrolled o public void onPageScrolled(int position,
o float positionOffset,
int positionOffsetPixels)
Overrides:
![Page 30: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/30.jpg)
onPageScrolled in class android.support.v4.view.ViewPager
o isSmall
private boolean isSmall(float positionOffset)
Checks if is small.
Parameters:
positionOffset - the position offset
Returns:
true, if is small
o setObjectForPosition o public void setObjectForPosition(java.lang.Object obj,
int position)
Sets the object for position.
Parameters:
obj - the obj
position - the position
o findViewFromObject
public android.view.View findViewFromObject(int position)
Find view from object.
Parameters:
position - the position
Returns:
the view
![Page 31: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/31.jpg)
com.imate.pager
Enum JazzyViewPager.State
Enclosing class:
JazzyViewPager
private static enum JazzyViewPager.State
extends java.lang.Enum<JazzyViewPager.State>
The Enum State.
Enum Constant Detail o IDLE
public static final JazzyViewPager.State IDLE
The idle.
o GOING_LEFT
public static final JazzyViewPager.State GOING_LEFT
The going left.
o GOING_RIGHT
public static final JazzyViewPager.State GOING_RIGHT
The going right.
Method Detail o values
public static JazzyViewPager.State[] values()
![Page 32: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/32.jpg)
Returns an array containing the constants of this enum type, in the
order they are declared. This method may be used to iterate over the
constants as follows:
for (JazzyViewPager.State c : JazzyViewPager.State.values())
System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are
declared
o valueOf
public static JazzyViewPager.State valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The
string must match exactly an identifier used to declare an enum
constant in this type. (Extraneous whitespace characters are not
permitted.)
Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with
the specified name
java.lang.NullPointerException - if the argument is null
![Page 33: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/33.jpg)
com.imate.pager
Enum JazzyViewPager.TransitionEffect
Enclosing class:
JazzyViewPager
public static enum JazzyViewPager.TransitionEffect
extends java.lang.Enum<JazzyViewPager.TransitionEffect>
The Enum TransitionEffect.
Enum Constant Detail o Standard
public static final JazzyViewPager.TransitionEffect Standard
The Standard.
o Tablet
public static final JazzyViewPager.TransitionEffect Tablet
The Tablet.
o CubeIn
public static final JazzyViewPager.TransitionEffect CubeIn
The Cube in.
o CubeOut
public static final JazzyViewPager.TransitionEffect CubeOut
The Cube out.
![Page 34: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/34.jpg)
o FlipVertical
public static final JazzyViewPager.TransitionEffect FlipVertical
The Flip vertical.
o FlipHorizontal
public static final JazzyViewPager.TransitionEffect
FlipHorizontal
The Flip horizontal.
o Stack
public static final JazzyViewPager.TransitionEffect Stack
The Stack.
o ZoomIn
public static final JazzyViewPager.TransitionEffect ZoomIn
The Zoom in.
o ZoomOut
public static final JazzyViewPager.TransitionEffect ZoomOut
The Zoom out.
o RotateUp
public static final JazzyViewPager.TransitionEffect RotateUp
The Rotate up.
o RotateDown
public static final JazzyViewPager.TransitionEffect RotateDown
The Rotate down.
o Accordion
public static final JazzyViewPager.TransitionEffect Accordion
![Page 35: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/35.jpg)
The Accordion.
Method Detail o values
public static JazzyViewPager.TransitionEffect[] values()
Returns an array containing the constants of this enum type, in the
order they are declared. This method may be used to iterate over the
constants as follows:
for (JazzyViewPager.TransitionEffect c :
JazzyViewPager.TransitionEffect.values())
System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are
declared
o valueOf
public
static JazzyViewPager.TransitionEffect valueOf(java.lang.String n
ame)
Returns the enum constant of this type with the specified name. The
string must match exactly an identifier used to declare an enum
constant in this type. (Extraneous whitespace characters are not
permitted.)
Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with
the specified name
![Page 36: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/36.jpg)
java.lang.NullPointerException - if the argument is null
com.imate.ui
Class LeftNavAdapter
public class LeftNavAdapter
extends android.widget.BaseAdapter
The Adapter class for the ListView displayed in the left navigation drawer.
Field Detail o items
private java.lang.String[] items
The items.
o context
private android.content.Context context
The context.
o selected
private int selected
The selected.
o icons
private int[] icons
![Page 37: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/37.jpg)
The icons.
Constructor Detail o LeftNavAdapter o public LeftNavAdapter(android.content.Context context,
java.lang.String[] items)
Instantiates a new left navigation adapter.
Parameters:
context - the context of activity
items - the array of items to be displayed on ListView
Method Detail o setSelection
public void setSelection(int position)
Setup the current selected position of adapter.
Parameters:
position - the new selection
o getCount
public int getCount()
o getItem
public java.lang.String getItem(int arg0)
o getItemId
public long getItemId(int position)
o getView o public android.view.View getView(int position,
o android.view.View convertView,
android.view.ViewGroup parent)
![Page 38: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/38.jpg)
com.imate
Class Login
public class Login
extends CustomActivity
The class Login is an Activity class that is launched after Splash screen at shows
the interface for Login to the app with the options for Login using Facebook
and Twitter and also includes the options for Register and recover password.
Constructor Detail o Login
public Login()
Method Detail o onCreate
protected void onCreate(android.os.Bundle savedInstanceState)
Overrides:
onCreate in class CustomActivity
o onClick
public void onClick(android.view.View v)
Specified by:
onClick in interface android.view.View.OnClickListener
Overrides:
onClick in class CustomActivity
![Page 39: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/39.jpg)
com.imate
Class MainActivity
public class MainActivity
extends CustomActivity
The Class MainActivity is the base activity class of the application. This activity
is launched after the Login and it holds all the Fragments used in the app. It
also creates the Navigation Drawers on left and right side.
Field Detail o drawerLayout
private android.support.v4.widget.DrawerLayout drawerLayout
The drawer layout.
o drawerLeft
private android.widget.ListView drawerLeft
ListView for left side drawer.
o drawerRight
private android.widget.ListView drawerRight
ListView for right side drawer.
o drawerToggle
private android.support.v4.app.ActionBarDrawerToggle drawerToggle
The drawer toggle.
![Page 40: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/40.jpg)
o adapter
private LeftNavAdapter adapter
The left navigation list adapter.
Constructor Detail o MainActivity
public MainActivity()
Method Detail o onCreate
protected void onCreate(android.os.Bundle savedInstanceState)
Overrides:
onCreate in class CustomActivity
o setupDrawer
private void setupDrawer()
Setup the drawer layout. This method also includes the method calls for
setting up the Left & Right side drawers.
o setupLeftNavDrawer
private void setupLeftNavDrawer()
Setup the left navigation drawer/slider. You can add your logic to load
the contents to be displayed on the left side drawer. It will also setup
the Header and Footer contents of left drawer. This method also apply
the Theme for components of Left drawer.
o setupRightNavDrawer
private void setupRightNavDrawer()
Setup the right navigation drawer/slider. You can add your logic to load
the contents to be displayed on the right side drawer. It will also setup
the Header contents of right drawer.
![Page 41: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/41.jpg)
o setupContainer
private void setupContainer()
Setup the container fragment for drawer layout. This method will setup
the grid view display of main contents. You can customize this method
as per your need to display specific content.
o launchFragment
public void launchFragment(int pos)
This method can be used to attach Fragment on activity view for a
particular tab position. You can customize this method as per your
need.
Parameters:
pos - the position of tab selected.
o setActionBarTitle
private void setActionBarTitle()
Set the action bar title text.
o onPostCreate
protected void onPostCreate(android.os.Bundle savedInstanceState)
Overrides:
onPostCreate in class android.app.Activity
o onConfigurationChanged
public void onConfigurationChanged(android.content.res.Configurat
ion newConfig)
Specified by:
onConfigurationChanged in interface android.content.ComponentCallbacks
Overrides:
onConfigurationChanged in class android.support.v4.app.FragmentActivity
![Page 42: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/42.jpg)
o onCreateOptionsMenu
public boolean onCreateOptionsMenu(android.view.Menu menu)
Overrides:
onCreateOptionsMenu in class CustomActivity
o onPrepareOptionsMenu
public boolean onPrepareOptionsMenu(android.view.Menu menu)
Overrides:
onPrepareOptionsMenu in class android.app.Activity
o onOptionsItemSelected
public boolean onOptionsItemSelected(android.view.MenuItem item)
Overrides:
onOptionsItemSelected in class CustomActivity
o onKeyDown o public boolean onKeyDown(int keyCode,
android.view.KeyEvent event)
Specified by:
onKeyDown in interface android.view.KeyEvent.Callback
Overrides:
onKeyDown in class android.support.v4.app.FragmentActivity
com.imate.ui
Class MainFragment
![Page 43: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/43.jpg)
public class MainFragment
extends CustomFragment
The Class MainFragment is the Fragment class which is the initial default
fragment for main activity screen. It shows a View pager that includes nice
Transition effects.
o Nested Class Summary
Nested Classes
Modifier and
Type Class and Description
private
class
MainFragment.MainAdapter
The Class MainAdapter is the adapter class for View Pager that show a
few dummy images.
Field Detail o mJazzy
private JazzyViewPager mJazzy
The jazzy view pager.
Constructor Detail o MainFragment
public MainFragment()
Method Detail o onCreateView o public android.view.View onCreateView(android.view.LayoutInflater
inflater,
o android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
Overrides:
onCreateView in class CustomFragment
![Page 44: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/44.jpg)
o onClick
public void onClick(android.view.View v)
Specified by:
onClick in interface android.view.View.OnClickListener
Overrides:
onClick in class CustomFragment
o setupPager o private void setupPager(android.view.View v,
JazzyViewPager.TransitionEffect effect)
Setup view pager.
Parameters:
v - the root view
effect - the Transition Effect
com.imate.ui
Class Match
public class Match
extends CustomFragment
The Class Match is the Fragment class that shows interface for a Match
between two users.
![Page 45: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/45.jpg)
Constructor Detail o Match
public Match()
Method Detail o onCreateView o public android.view.View onCreateView(android.view.LayoutInflater
inflater,
o android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
Overrides:
onCreateView in class CustomFragment
o onClick
public void onClick(android.view.View v)
Specified by:
onClick in interface android.view.View.OnClickListener
Overrides:
onClick in class CustomFragment
com.imate.pager
Class OutlineContainer
public class OutlineContainer
extends android.widget.FrameLayout
implements android.graphics.drawable.Animatable
![Page 46: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/46.jpg)
The Class OutlineContainer.
Field Detail o mOutlinePaint
private android.graphics.Paint mOutlinePaint
The m outline paint.
o mIsRunning
private boolean mIsRunning
The m is running.
o mStartTime
private long mStartTime
The m start time.
o mAlpha
private float mAlpha
The m alpha.
o ANIMATION_DURATION
private static final long ANIMATION_DURATION
The Constant ANIMATION_DURATION.
See Also:
Constant Field Values
o FRAME_DURATION
private static final long FRAME_DURATION
The Constant FRAME_DURATION.
See Also:
![Page 47: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/47.jpg)
Constant Field Values
o mInterpolator
private final android.view.animation.Interpolator mInterpolator
The m interpolator.
o mUpdater
private final java.lang.Runnable mUpdater
The m updater.
Constructor Detail o OutlineContainer
public OutlineContainer(android.content.Context context)
Instantiates a new outline container.
Parameters:
context - the context
o OutlineContainer o public OutlineContainer(android.content.Context context,
android.util.AttributeSet attrs)
Instantiates a new outline container.
Parameters:
context - the context
attrs - the attrs
o OutlineContainer o public OutlineContainer(android.content.Context context,
o android.util.AttributeSet attrs,
int defStyle)
Instantiates a new outline container.
![Page 48: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/48.jpg)
Parameters:
context - the context
attrs - the attrs
defStyle - the def style
Method Detail o init
private void init()
Inits the.
o dispatchDraw
protected void dispatchDraw(android.graphics.Canvas canvas)
Overrides:
dispatchDraw in class android.view.ViewGroup
o setOutlineAlpha
public void setOutlineAlpha(float alpha)
Sets the outline alpha.
Parameters:
alpha - the new outline alpha
o isRunning
public boolean isRunning()
Specified by:
isRunning in interface android.graphics.drawable.Animatable
o start
public void start()
Specified by:
![Page 49: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/49.jpg)
start in interface android.graphics.drawable.Animatable
o stop
public void stop()
Specified by:
stop in interface android.graphics.drawable.Animatable
com.imate.ui
Class Profile
public class Profile
extends CustomFragment
The Class Profile is the Fragment class that shows Profile of a user which
includes basic details of user and a few images of user. You need to write
actual code for loading and displaying the user details.
Constructor Detail o Profile
public Profile()
Method Detail o onCreateView o public android.view.View onCreateView(android.view.LayoutInflater
inflater,
o android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
Overrides:
![Page 50: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/50.jpg)
onCreateView in class CustomFragment
com.imate.ui
Class RightNavAdapter
public class RightNavAdapter
extends android.widget.BaseAdapter
The Adapter class for the ListView displayed in the right navigation drawer.
Field Detail o items
private java.util.ArrayList<Data> items
The items.
o context
private android.content.Context context
The context.
Constructor Detail o RightNavAdapter o public RightNavAdapter(android.content.Context context,
java.util.ArrayList<Data> items)
Instantiates a new left navigation adapter.
Parameters:
context - the context of activity
![Page 51: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/51.jpg)
items - the array of items to be displayed on ListView
Method Detail o getCount
public int getCount()
o getItem
public Data getItem(int arg0)
o getItemId
public long getItemId(int position)
o getView o public android.view.View getView(int position,
o android.view.View convertView,
android.view.ViewGroup parent)
com.imate.ui
Class Settings
public class Settings
extends CustomFragment
The Class Settings is the Fragment class that shows a few options related to
Settings and it's launched when user taps on Settings option in left navigation
panel.
Field Detail o current
private android.view.View current
![Page 52: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/52.jpg)
The current view for theme options.
Constructor Detail o Settings
public Settings()
Method Detail o onCreateView o public android.view.View onCreateView(android.view.LayoutInflater
inflater,
o android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
Overrides:
onCreateView in class CustomFragment
o onClick
public void onClick(android.view.View v)
Specified by:
onClick in interface android.view.View.OnClickListener
Overrides:
onClick in class CustomFragment
com.imate
Class SplashScreen
public class SplashScreen
extends android.app.Activity
![Page 53: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/53.jpg)
The Class SplashScreen will launched at the start of the application. It will be
displayed for 3 seconds and than finished automatically and it will also start the
next activity of app.
Field Detail o isRunning
private boolean isRunning
Check if the app is running.
Constructor Detail o SplashScreen
public SplashScreen()
Method Detail o onCreate
public void onCreate(android.os.Bundle savedInstanceState)
Overrides:
onCreate in class android.app.Activity
o startSplash
private void startSplash()
Starts the count down timer for 3-seconds. It simply sleeps the thread
for 3-seconds.
o doFinish
private void doFinish()
If the app is still running than this method will start the MainActivity
activity and finish the Splash.
o onKeyDown o public boolean onKeyDown(int keyCode,
android.view.KeyEvent event)
Specified by:
onKeyDown in interface android.view.KeyEvent.Callback
![Page 54: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/54.jpg)
Overrides:
onKeyDown in class android.app.Activity
com.imate.utils
Class TouchEffect
public class TouchEffect
extends java.lang.Object
implements android.view.View.OnTouchListener
The Class TouchEffect is the implementation of OnTouchListener interface.
You can apply this to views mostly Buttons to provide Touch effect and that
view must have a valid background. The current implementation simply set
Alpha value of View background.
Constructor Detail o TouchEffect
public TouchEffect()
Method Detail o onTouch o public boolean onTouch(android.view.View v,
android.view.MotionEvent event)
Specified by:
onTouch in interface android.view.View.OnTouchListener
![Page 55: Contentsmyappsdoc.myapptemplates.com.s3-us-west-2.amazonaws.com/iMa… · o public android.view.View onCreateView(android.view.LayoutInflater inflater, o android.view.ViewGroup container,](https://reader035.vdocuments.us/reader035/viewer/2022070721/5ee1537fad6a402d666c3fbd/html5/thumbnails/55.jpg)
com.imate.pager
Class Util
public class Util
extends java.lang.Object
The Class Util can be used to write Utility methods to be used in Jazzy view
pager.
Constructor Detail o Util
public Util()
Method Detail o dpToPx o public static int dpToPx(android.content.res.Resources res,
int dp)
Convert Dp to px.
Parameters:
res - the resources
dp - the dp
Returns:
the int