public class MatchPictograms
extends androidx.appcompat.app.AppCompatActivity
implements android.view.View.OnClickListener, android.view.MenuItem.OnMenuItemClickListener
Modifier and Type | Field and Description |
---|---|
private AnalyticsFirebase |
analyticsFirebase |
private java.lang.Runnable |
animarHablar |
private Custom_Picto |
animarPicto |
private AnimGameScore |
animGameScore |
private CustomToast |
dialogo |
private Juego |
game |
private Custom_Picto |
guess1 |
private Custom_Picto |
guess2 |
private Custom_Picto |
guess3 |
private Custom_Picto |
guess4 |
private android.os.Handler |
handlerHablar |
private org.json.JSONArray |
hijos |
private boolean |
isChecked |
private boolean |
isRepeatlection |
private Json |
json |
private Custom_Picto |
lastButton |
private Custom_Picto |
lastPictogram |
private int |
lastPosicion |
private android.widget.ImageView |
mAnimationWin |
private org.json.JSONArray |
mjJsonArrayTodosLosGrupos |
private android.view.Menu |
mMenu |
private int |
mPositionPadre |
private android.speech.tts.TextToSpeech |
mTTS |
private MediaPlayerAudio |
music |
private boolean |
mute |
private UtilsTTS |
mUtilsTTS |
private java.lang.String |
name |
private java.util.ArrayList<java.lang.Integer> |
numeros |
private Custom_Picto |
opcion1 |
private Custom_Picto |
opcion2 |
private Custom_Picto |
opcion3 |
private Custom_Picto |
opcion4 |
private org.json.JSONObject[] |
pictogramas |
private int |
PictoID |
private MediaPlayerAudio |
player |
private boolean |
repetirLeccion |
private android.content.SharedPreferences |
sharedPrefsDefault |
private androidx.appcompat.widget.Toolbar |
toolbar |
private boolean |
useHappySound |
private int[] |
valoresCorrectos |
DEFAULT_KEYS_DIALER, DEFAULT_KEYS_DISABLE, DEFAULT_KEYS_SEARCH_GLOBAL, DEFAULT_KEYS_SEARCH_LOCAL, DEFAULT_KEYS_SHORTCUT, FOCUSED_STATE_SET, RESULT_CANCELED, RESULT_FIRST_USER, RESULT_OK
ACCESSIBILITY_SERVICE, ACCOUNT_SERVICE, ACTIVITY_SERVICE, ALARM_SERVICE, APP_OPS_SERVICE, APPWIDGET_SERVICE, AUDIO_SERVICE, BATTERY_SERVICE, BIND_ABOVE_CLIENT, BIND_ADJUST_WITH_ACTIVITY, BIND_ALLOW_OOM_MANAGEMENT, BIND_AUTO_CREATE, BIND_DEBUG_UNBIND, BIND_EXTERNAL_SERVICE, BIND_IMPORTANT, BIND_INCLUDE_CAPABILITIES, BIND_NOT_FOREGROUND, BIND_NOT_PERCEPTIBLE, BIND_WAIVE_PRIORITY, BIOMETRIC_SERVICE, BLUETOOTH_SERVICE, CAMERA_SERVICE, CAPTIONING_SERVICE, CARRIER_CONFIG_SERVICE, CLIPBOARD_SERVICE, COMPANION_DEVICE_SERVICE, CONNECTIVITY_SERVICE, CONSUMER_IR_SERVICE, CONTEXT_IGNORE_SECURITY, CONTEXT_INCLUDE_CODE, CONTEXT_RESTRICTED, CROSS_PROFILE_APPS_SERVICE, DEVICE_POLICY_SERVICE, DISPLAY_SERVICE, DOWNLOAD_SERVICE, DROPBOX_SERVICE, EUICC_SERVICE, FINGERPRINT_SERVICE, HARDWARE_PROPERTIES_SERVICE, INPUT_METHOD_SERVICE, INPUT_SERVICE, IPSEC_SERVICE, JOB_SCHEDULER_SERVICE, KEYGUARD_SERVICE, LAUNCHER_APPS_SERVICE, LAYOUT_INFLATER_SERVICE, LOCATION_SERVICE, MEDIA_PROJECTION_SERVICE, MEDIA_ROUTER_SERVICE, MEDIA_SESSION_SERVICE, MIDI_SERVICE, MODE_APPEND, MODE_ENABLE_WRITE_AHEAD_LOGGING, MODE_MULTI_PROCESS, MODE_NO_LOCALIZED_COLLATORS, MODE_PRIVATE, MODE_WORLD_READABLE, MODE_WORLD_WRITEABLE, NETWORK_STATS_SERVICE, NFC_SERVICE, NOTIFICATION_SERVICE, NSD_SERVICE, POWER_SERVICE, PRINT_SERVICE, RECEIVER_VISIBLE_TO_INSTANT_APPS, RESTRICTIONS_SERVICE, ROLE_SERVICE, SEARCH_SERVICE, SENSOR_SERVICE, SHORTCUT_SERVICE, STORAGE_SERVICE, STORAGE_STATS_SERVICE, SYSTEM_HEALTH_SERVICE, TELECOM_SERVICE, TELEPHONY_SERVICE, TELEPHONY_SUBSCRIPTION_SERVICE, TEXT_CLASSIFICATION_SERVICE, TEXT_SERVICES_MANAGER_SERVICE, TV_INPUT_SERVICE, UI_MODE_SERVICE, USAGE_STATS_SERVICE, USB_SERVICE, USER_SERVICE, VIBRATOR_SERVICE, WALLPAPER_SERVICE, WIFI_AWARE_SERVICE, WIFI_P2P_SERVICE, WIFI_RTT_RANGING_SERVICE, WIFI_SERVICE, WINDOW_SERVICE
Constructor and Description |
---|
MatchPictograms() |
Modifier and Type | Method and Description |
---|---|
private void |
animarPictoGanador(Custom_Picto from,
Custom_Picto to) |
private void |
animarPictoReset(Custom_Picto picto) |
private void |
animateGanador(Custom_Picto picto_ganador,
int tipo) |
private void |
bloquearOpcionPictograma(int opc,
Custom_Picto btn) |
private void |
cargarOpcion(int pos) |
private void |
cargarPictogramas() |
private void |
cargarPuntos() |
private void |
cargarTextoBoton(double valor,
int pos) |
private void |
cargarValores(int pos) |
private void |
decirPictoAleatorio() |
private void |
drawImageAtPosition() |
private void |
esCorrecto(boolean esPicto) |
private int |
GetPosicionLastButton() |
void |
habilitarDesHabilitarBotones(android.widget.Button button) |
private void |
habilitarPictoGrama(Custom_Picto picto,
boolean esBoton) |
private void |
hacerClickOpcion(boolean esPicto) |
private void |
iniciarComponentes() |
void |
onBackPressed() |
void |
onClick(android.view.View view) |
protected void |
onCreate(android.os.Bundle savedInstanceState) |
boolean |
onCreateOptionsMenu(android.view.Menu menu) |
boolean |
onMenuItemClick(android.view.MenuItem item) |
protected void |
onResume() |
void |
reiniciar() |
private void |
reiniciarLeccion() |
private void |
seleccionarPictogramas(int pos) |
private Custom_Picto |
selectButtonGanador(java.lang.String text) |
private Custom_Picto |
selectImagenGanadora(java.lang.String text) |
private void |
selectRandomSoundWin() |
private void |
setIcon(android.view.MenuItem item,
boolean status,
int dEnabled,
int dDisabled) |
private void |
speakOption(Custom_Picto option) |
private boolean |
verificarSiHayQueHacerReinicio() |
addContentView, attachBaseContext, closeOptionsMenu, dispatchKeyEvent, findViewById, getDelegate, getDrawerToggleDelegate, getMenuInflater, getResources, getSupportActionBar, getSupportParentActivityIntent, invalidateOptionsMenu, onConfigurationChanged, onContentChanged, onCreateSupportNavigateUpTaskStack, onDestroy, onKeyDown, onMenuItemSelected, onMenuOpened, onNightModeChanged, onPanelClosed, onPostCreate, onPostResume, onPrepareSupportNavigateUpTaskStack, onSaveInstanceState, onStart, onStop, onSupportActionModeFinished, onSupportActionModeStarted, onSupportContentChanged, onSupportNavigateUp, onTitleChanged, onWindowStartingSupportActionMode, openOptionsMenu, setContentView, setContentView, setContentView, setSupportActionBar, setSupportProgress, setSupportProgressBarIndeterminate, setSupportProgressBarIndeterminateVisibility, setSupportProgressBarVisibility, setTheme, startSupportActionMode, supportInvalidateOptionsMenu, supportNavigateUpTo, supportRequestWindowFeature, supportShouldUpRecreateTask
dump, getSupportFragmentManager, getSupportLoaderManager, onActivityResult, onAttachFragment, onCreatePanelMenu, onCreateView, onCreateView, onLowMemory, onMultiWindowModeChanged, onNewIntent, onPause, onPictureInPictureModeChanged, onPrepareOptionsPanel, onPreparePanel, onRequestPermissionsResult, onResumeFragments, onStateNotSaved, setEnterSharedElementCallback, setExitSharedElementCallback, startActivityForResult, startActivityForResult, startActivityFromFragment, startActivityFromFragment, startIntentSenderForResult, startIntentSenderForResult, startIntentSenderFromFragment, supportFinishAfterTransition, supportPostponeEnterTransition, supportStartPostponedEnterTransition, validateRequestPermissionsRequestCode
getLastCustomNonConfigurationInstance, getLifecycle, getOnBackPressedDispatcher, getSavedStateRegistry, getViewModelStore, onRetainCustomNonConfigurationInstance, onRetainNonConfigurationInstance
dispatchKeyShortcutEvent, getExtraData, putExtraData, superDispatchKeyEvent
closeContextMenu, createPendingResult, dismissDialog, dismissKeyboardShortcutsHelper, dispatchGenericMotionEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, enterPictureInPictureMode, enterPictureInPictureMode, finish, finishActivity, finishActivityFromChild, finishAffinity, finishAfterTransition, finishAndRemoveTask, finishFromChild, getActionBar, getApplication, getCallingActivity, getCallingPackage, getChangingConfigurations, getComponentName, getContentScene, getContentTransitionManager, getCurrentFocus, getFragmentManager, getIntent, getLastNonConfigurationInstance, getLayoutInflater, getLoaderManager, getLocalClassName, getMaxNumPictureInPictureActions, getMediaController, getParent, getParentActivityIntent, getPreferences, getReferrer, getRequestedOrientation, getSearchEvent, getSystemService, getTaskId, getTitle, getTitleColor, getVoiceInteractor, getVolumeControlStream, getWindow, getWindowManager, hasWindowFocus, isActivityTransitionRunning, isChangingConfigurations, isChild, isDestroyed, isFinishing, isImmersive, isInMultiWindowMode, isInPictureInPictureMode, isLocalVoiceInteractionSupported, isTaskRoot, isVoiceInteraction, isVoiceInteractionRoot, managedQuery, moveTaskToBack, navigateUpTo, navigateUpToFromChild, onActionModeFinished, onActionModeStarted, onActivityReenter, onApplyThemeResource, onAttachedToWindow, onAttachFragment, onChildTitleChanged, onContextItemSelected, onContextMenuClosed, onCreate, onCreateContextMenu, onCreateDescription, onCreateDialog, onCreateDialog, onCreateNavigateUpTaskStack, onCreatePanelView, onCreateThumbnail, onDetachedFromWindow, onEnterAnimationComplete, onGenericMotionEvent, onGetDirectActions, onKeyLongPress, onKeyMultiple, onKeyShortcut, onKeyUp, onLocalVoiceInteractionStarted, onLocalVoiceInteractionStopped, onMultiWindowModeChanged, onNavigateUp, onNavigateUpFromChild, onOptionsItemSelected, onOptionsMenuClosed, onPerformDirectAction, onPictureInPictureModeChanged, onPostCreate, onPrepareDialog, onPrepareDialog, onPrepareNavigateUpTaskStack, onPrepareOptionsMenu, onProvideAssistContent, onProvideAssistData, onProvideKeyboardShortcuts, onProvideReferrer, onRestart, onRestoreInstanceState, onRestoreInstanceState, onSaveInstanceState, onSearchRequested, onSearchRequested, onTopResumedActivityChanged, onTouchEvent, onTrackballEvent, onTrimMemory, onUserInteraction, onUserLeaveHint, onVisibleBehindCanceled, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, onWindowStartingActionMode, openContextMenu, overridePendingTransition, postponeEnterTransition, recreate, registerActivityLifecycleCallbacks, registerForContextMenu, releaseInstance, removeDialog, reportFullyDrawn, requestDragAndDropPermissions, requestPermissions, requestShowKeyboardShortcuts, requestVisibleBehind, requestWindowFeature, requireViewById, runOnUiThread, setActionBar, setContentTransitionManager, setDefaultKeyMode, setEnterSharedElementCallback, setExitSharedElementCallback, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setFinishOnTouchOutside, setImmersive, setInheritShowWhenLocked, setIntent, setMediaController, setPictureInPictureParams, setProgress, setProgressBarIndeterminate, setProgressBarIndeterminateVisibility, setProgressBarVisibility, setRequestedOrientation, setResult, setResult, setSecondaryProgress, setShowWhenLocked, setTaskDescription, setTitle, setTitle, setTitleColor, setTurnScreenOn, setVisible, setVolumeControlStream, setVrModeEnabled, shouldShowRequestPermissionRationale, shouldUpRecreateTask, showAssist, showDialog, showDialog, showLockTaskEscapeMessage, startActionMode, startActionMode, startActivities, startActivities, startActivity, startActivity, startActivityFromChild, startActivityFromChild, startActivityFromFragment, startActivityFromFragment, startActivityIfNeeded, startActivityIfNeeded, startIntentSender, startIntentSender, startIntentSenderFromChild, startIntentSenderFromChild, startLocalVoiceInteraction, startLockTask, startManagingCursor, startNextMatchingActivity, startNextMatchingActivity, startPostponedEnterTransition, startSearch, stopLocalVoiceInteraction, stopLockTask, stopManagingCursor, takeKeyEvents, triggerSearch, unregisterActivityLifecycleCallbacks, unregisterForContextMenu
applyOverrideConfiguration, getAssets, getTheme, setTheme
bindIsolatedService, bindService, bindService, checkCallingOrSelfPermission, checkCallingOrSelfUriPermission, checkCallingPermission, checkCallingUriPermission, checkPermission, checkSelfPermission, checkUriPermission, checkUriPermission, clearWallpaper, createConfigurationContext, createContextForSplit, createDeviceProtectedStorageContext, createDisplayContext, createPackageContext, databaseList, deleteDatabase, deleteFile, deleteSharedPreferences, enforceCallingOrSelfPermission, enforceCallingOrSelfUriPermission, enforceCallingPermission, enforceCallingUriPermission, enforcePermission, enforceUriPermission, enforceUriPermission, fileList, getApplicationContext, getApplicationInfo, getBaseContext, getCacheDir, getClassLoader, getCodeCacheDir, getContentResolver, getDatabasePath, getDataDir, getDir, getExternalCacheDir, getExternalCacheDirs, getExternalFilesDir, getExternalFilesDirs, getExternalMediaDirs, getFilesDir, getFileStreamPath, getMainExecutor, getMainLooper, getNoBackupFilesDir, getObbDir, getObbDirs, getOpPackageName, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getSharedPreferences, getSystemServiceName, getWallpaper, getWallpaperDesiredMinimumHeight, getWallpaperDesiredMinimumWidth, grantUriPermission, isDeviceProtectedStorage, isRestricted, moveDatabaseFrom, moveSharedPreferencesFrom, openFileInput, openFileOutput, openOrCreateDatabase, openOrCreateDatabase, peekWallpaper, registerReceiver, registerReceiver, registerReceiver, registerReceiver, removeStickyBroadcast, removeStickyBroadcastAsUser, revokeUriPermission, revokeUriPermission, sendBroadcast, sendBroadcast, sendBroadcastAsUser, sendBroadcastAsUser, sendOrderedBroadcast, sendOrderedBroadcast, sendOrderedBroadcastAsUser, sendStickyBroadcast, sendStickyBroadcastAsUser, sendStickyOrderedBroadcast, sendStickyOrderedBroadcastAsUser, setWallpaper, setWallpaper, startForegroundService, startInstrumentation, startService, stopService, unbindService, unregisterReceiver, updateServiceGroup
getColor, getColorStateList, getDrawable, getString, getString, getSystemService, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, registerComponentCallbacks, unregisterComponentCallbacks
private Custom_Picto opcion1
private Custom_Picto opcion2
private Custom_Picto opcion3
private Custom_Picto opcion4
private Custom_Picto lastPictogram
private Custom_Picto guess1
private Custom_Picto guess2
private Custom_Picto guess3
private Custom_Picto guess4
private Custom_Picto lastButton
private Custom_Picto animarPicto
private android.content.SharedPreferences sharedPrefsDefault
private CustomToast dialogo
private android.speech.tts.TextToSpeech mTTS
private UtilsTTS mUtilsTTS
private int PictoID
private int mPositionPadre
private int[] valoresCorrectos
private Json json
private org.json.JSONArray hijos
private org.json.JSONObject[] pictogramas
private org.json.JSONArray mjJsonArrayTodosLosGrupos
private java.util.ArrayList<java.lang.Integer> numeros
private MediaPlayerAudio player
private MediaPlayerAudio music
private java.lang.String name
private boolean isRepeatlection
private boolean repetirLeccion
private boolean isChecked
private boolean useHappySound
private boolean mute
private int lastPosicion
private androidx.appcompat.widget.Toolbar toolbar
private android.view.Menu mMenu
private Juego game
private AnimGameScore animGameScore
private android.widget.ImageView mAnimationWin
private android.os.Handler handlerHablar
private AnalyticsFirebase analyticsFirebase
private final java.lang.Runnable animarHablar
protected void onCreate(@Nullable android.os.Bundle savedInstanceState)
onCreate
in class androidx.appcompat.app.AppCompatActivity
public void onClick(android.view.View view)
onClick
in interface android.view.View.OnClickListener
private void habilitarPictoGrama(Custom_Picto picto, boolean esBoton)
public void habilitarDesHabilitarBotones(android.widget.Button button)
private void cargarPictogramas()
private void iniciarComponentes()
private void seleccionarPictogramas(int pos)
private void cargarOpcion(int pos)
private void cargarValores(int pos)
private void decirPictoAleatorio()
private void cargarTextoBoton(double valor, int pos)
private void esCorrecto(boolean esPicto)
private boolean verificarSiHayQueHacerReinicio()
public void reiniciar()
private void bloquearOpcionPictograma(int opc, Custom_Picto btn)
private void hacerClickOpcion(boolean esPicto)
private void speakOption(Custom_Picto option)
private void reiniciarLeccion()
private void cargarPuntos()
private void animarPictoGanador(Custom_Picto from, Custom_Picto to)
private void animarPictoReset(Custom_Picto picto)
private void selectRandomSoundWin()
public void onBackPressed()
onBackPressed
in class androidx.activity.ComponentActivity
private int GetPosicionLastButton()
public boolean onCreateOptionsMenu(android.view.Menu menu)
onCreateOptionsMenu
in class android.app.Activity
public boolean onMenuItemClick(android.view.MenuItem item)
onMenuItemClick
in interface android.view.MenuItem.OnMenuItemClickListener
protected void onResume()
onResume
in class androidx.fragment.app.FragmentActivity
private void drawImageAtPosition()
private void animateGanador(Custom_Picto picto_ganador, int tipo)
private Custom_Picto selectButtonGanador(java.lang.String text)
private Custom_Picto selectImagenGanadora(java.lang.String text)
private void setIcon(android.view.MenuItem item, boolean status, int dEnabled, int dDisabled)