public class CreateSquareActivity
extends android.support.v7.app.AppCompatActivity
Modifier and Type | Class and Description |
---|---|
static class |
CreateSquareActivity.CreateSquarePagerAdapter
Manages the correct fragment to show while creating a square
|
Modifier and Type | Field and Description |
---|---|
(package private) SquareCreateFragment |
eventCreationFragment |
boolean |
isTypeChosen |
java.lang.String |
mapLatitude |
java.lang.String |
mapLongitude |
Button |
nextButton |
CreateSquareActivity.CreateSquarePagerAdapter |
pagerAdapter |
Button |
previousButton |
static java.lang.String |
RESULT_EXPIRE_TIME |
static java.lang.String |
RESULT_SQUARE_DESCRIPTION |
static java.lang.String |
RESULT_SQUARE_FACEBOOK_ID |
static java.lang.String |
RESULT_SQUARE_LATITUDE |
static java.lang.String |
RESULT_SQUARE_LONGITUDE |
static java.lang.String |
RESULT_SQUARE_NAME |
static java.lang.String |
RESULT_SQUARE_TYPE |
private java.lang.String |
resultDescription |
private java.lang.String |
resultExpireTime |
private java.lang.String |
resultFacebookId |
private java.lang.String |
resultLat |
private java.lang.String |
resultLon |
private java.lang.String |
resultName |
(package private) ReviewCreateFragment |
reviewFragment |
SquareType |
squareType |
private static java.lang.String |
TAG |
NoSwipesViewPager |
vpager |
Constructor and Description |
---|
CreateSquareActivity() |
Modifier and Type | Method and Description |
---|---|
void |
circularReveal(View v) |
void |
onBackPressed()
Manages the tap on the back button
|
protected void |
onCreate(Bundle savedInstanceState) |
void |
setupResults(java.lang.String name,
java.lang.String description,
java.lang.String lat,
java.lang.String lon,
java.lang.String id,
java.lang.String time)
Initializes all the variables for the creation of a square
|
void |
squareTypeSelected(SquareType placeType)
Shows the correct fragment, depends on the square type selected
|
addContentView, dispatchKeyEvent, findViewById, getDelegate, getDrawerToggleDelegate, getMenuInflater, getSupportActionBar, getSupportParentActivityIntent, invalidateOptionsMenu, onConfigurationChanged, onContentChanged, onCreateSupportNavigateUpTaskStack, onDestroy, onMenuItemSelected, onMenuOpened, onPanelClosed, onPostCreate, onPostResume, onPrepareSupportNavigateUpTaskStack, onSaveInstanceState, onStop, onSupportActionModeFinished, onSupportActionModeStarted, onSupportContentChanged, onSupportNavigateUp, onTitleChanged, onWindowStartingSupportActionMode, setContentView, setContentView, setContentView, setSupportActionBar, setSupportProgress, setSupportProgressBarIndeterminate, setSupportProgressBarIndeterminateVisibility, setSupportProgressBarVisibility, setTheme, startSupportActionMode, supportInvalidateOptionsMenu, supportNavigateUpTo, supportRequestWindowFeature, supportShouldUpRecreateTask
dump, getLastCustomNonConfigurationInstance, getSupportFragmentManager, getSupportLoaderManager, getSupportMediaController, onActivityResult, onAttachFragment, onCreatePanelMenu, onKeyDown, onLowMemory, onNewIntent, onPause, onPrepareOptionsPanel, onPreparePanel, onRequestPermissionsResult, onResume, onResumeFragments, onRetainCustomNonConfigurationInstance, onRetainNonConfigurationInstance, onStart, onStateNotSaved, setEnterSharedElementCallback, setExitSharedElementCallback, setSupportMediaController, startActivityForResult, startActivityFromFragment, startActivityFromFragment, supportFinishAfterTransition, supportPostponeEnterTransition, supportStartPostponedEnterTransition, validateRequestPermissionsRequestCode
public static final java.lang.String RESULT_SQUARE_NAME
public static final java.lang.String RESULT_SQUARE_DESCRIPTION
public static final java.lang.String RESULT_SQUARE_LATITUDE
public static final java.lang.String RESULT_SQUARE_LONGITUDE
public static final java.lang.String RESULT_SQUARE_TYPE
public static final java.lang.String RESULT_SQUARE_FACEBOOK_ID
public static final java.lang.String RESULT_EXPIRE_TIME
public CreateSquareActivity.CreateSquarePagerAdapter pagerAdapter
public NoSwipesViewPager vpager
public Button nextButton
public Button previousButton
public java.lang.String mapLongitude
public java.lang.String mapLatitude
SquareCreateFragment eventCreationFragment
ReviewCreateFragment reviewFragment
public boolean isTypeChosen
public SquareType squareType
private static final java.lang.String TAG
private java.lang.String resultName
private java.lang.String resultDescription
private java.lang.String resultLat
private java.lang.String resultLon
private java.lang.String resultFacebookId
private java.lang.String resultExpireTime
protected void onCreate(Bundle savedInstanceState)
onCreate
in class android.support.v7.app.AppCompatActivity
public void circularReveal(View v)
public void setupResults(java.lang.String name, java.lang.String description, java.lang.String lat, java.lang.String lon, java.lang.String id, java.lang.String time)
name
- the name of the squaredescription
- the description of the squarelat
- the latitude of the position of the squarelon
- the longitude of the position of the squareid
- Facebook's ID for the squaretime
- expiration time of the squarepublic void squareTypeSelected(SquareType placeType)
placeType
- the square type selectedpublic void onBackPressed()
onBackPressed
in class android.support.v4.app.FragmentActivity