Wednesday, July 25, 2018

How to copy Xcode from one Mac to another Mac

Move Xcode from one Mac to another Mac 

Steps 

1- Copy Xcode.app file and paste to new mac's `Application` folder
2- Copy `~/Library/Developer/` to new mac's location ~/Library/Developer/ folder
3-

Issue -
Xcode won't start, stuck on 'Verifying “Xcode”…'

Solution 
xattr -d com.apple.quarantine '/Applications/Xcode.app'

By running above command , you are giving persission to Xcode ti install it without verifying it. 

 4- open Xcode in Application directory. 

Cheers !!!!

Android Architecture Component ROOM

Why ROOM Library ?

In android app, We convert raw data into structural data . we use SQLite core library to achieve it .

 It handles CRUD (Create, Read, Update and Delete) operations required for a database. Java classes and interfaces for SQLite are provided by the android.database. SQLite maintains an effective database management system. But this conventional method has its own disadvantages.


  • You have to write long repetitive code, which will be time-consuming as well as prone to mistakes.
  • Syntax errors in queries
  • No compile time error detection (Time consuming)
  • Parsing is required to convert data to Plain Old Java Objects (POJO) objects
  • It is very difficult to manage SQL queries for a complex relational database.
To overcome this, Google has introduced Room Persistence Library.


What is ROOM? 

Room provides the abstraction layer over the SQLite DB. ROOM is not a database
It has extended features and ease of use over android SQLite library .

Componentes

There are three main components of Room-
  • Database: Contains the database holder and serves as the main access point for the underlying connection to your app's persisted, relational data.
    The class that's annotated with @Database should satisfy the following conditions:
    • Be an abstract class that extends RoomDatabase.
    • Include the list of entities associated with the database within the annotation.
    • Contain an abstract method that has 0 arguments and returns the class that is annotated with @Dao.
    At runtime, you can acquire an instance of Database by calling Room.databaseBuilder() orRoom.inMemoryDatabaseBuilder().
  • Entity: Represents a table within the database.   
  1. tableName attribute is used to define the name of the table
  2. Every entity class must have at-least one Primary Key field, annotated with @PrimaryKey
  3. Fields in entity class can be annotated with @ColumnInfo(name = “name_of_column”) annotation to give specific column names
         
  • DAO: Contains the methods used for accessing the database.

  1. Data Access Object is either be an interface or an abstract class annotated with @Doa annotation, containing all the methods to define the operations to be performed on data. The methods can be annotated with
    • @Query to retrieve data from database
    • @Insert to insert data into database
    • @Delete to delete data from database
    • @Update to update data in database



                                 The app uses the Room database to get the data access
  objects, or DAOs, associated with that database. The app then uses each DAO to
  get entities from the database and save any changes to those entities back to
  the database. Finally, the app uses an entity to get and set values that
  correspond to table columns within the database.




How to Implement?

Before jump into details, Room uses annotations heavily to decrease the boilerplate code.






Why and What is ViewModel : Android Architecture Component

Why We need model ?


A ViewModel holds your app's UI data in a lifecycle-conscious way that survives configuration changes. Separating your app's UI data from your Activity and Fragment classes lets you better follow the single responsibility principle: Your activities and fragments are responsible for drawing data to the screen, while your ViewModel can take care of holding and processing all the data needed for the UI.

In the ViewModel, use LiveData for changeable data that the UI will use or display. Using LiveData has several benefits:

You can put an observer on the data (instead of polling for changes) and only update the
the UI when the data actually changes.

The Repository and the UI are completely separated by the ViewModel. There are no database calls from the ViewModel, making the code more testable.


What is ViewModel ?

The ViewModel's role is to provide data to the UI and survive configuration changes. A ViewModel acts as a communication center between the Repository and the UI. You can also use a ViewModel to share data between fragments. The ViewModel is part of the lifecycle library.






Warning: Never pass context into ViewModel instances. Do not store Activity, Fragment, or View instances or their Context in the ViewModel.


For example, an Activity can be destroyed and created many times during the lifecycle of a ViewModel as the device is rotated. If you store a reference to the Activity in the ViewModel, you end up with references that point to the destroyed Activity. This is a memory leak.


If you need the application context, use AndroidViewModel


Important: ViewModel is not a replacement for the onSaveInstanceState() method, because the ViewModel does not survive a process shutdown. 


Friday, June 29, 2018

Why and What is DiffUtil in android

Why DiffUtil / Problem with notifyDatasetChanged ?

When we use notifyDataSetChanged() method it updates all the view (all visible view on screen and few buffer view above and below the screen). It’s inappropriate way of updating list if just a few rows have changed. For example, your friend changes the status on WhatsApp then only that row should be updated instead of all the rows.


What is DiffUtil 

Android has provided a class called DiffUtil under version 7 support utils. As per android documentation, the definition of DiffUtil is as follow

DiffUtil is a utility class that can calculate the difference between two lists and output a list of update operations that converts the first list into the second one.


Performance 


The algorithm is optimized for space. It requires O(N) space to find out the number of operations for transforming the old list into the new one. It’s expected performance is O(N + D²). N is the sum of the lengths of the two lists and D is the length of the edit script. The edit script is the smallest set of deletions and insertions to transform the first list into the second.  


How to use?


DiffUtil.Callback is an abstract class and used as callback class by DiffUtil while calculating the difference between two lists. It has four abstract methods and one non-abstract method. You have to extend it and override all its methods-

Callback is an abstract class and needs to override methods about the sizes of the two lists and the comparison for items at particular index. I’m not familiar with the internal implementation, I had to add null checks (and left out some) just for sure. Of course, lists can be of any type, generifying the Callback will only deepens the comparisons of the items.

You may notice the getChangePayload() method, which is not abstract. This method is called when the areItemsTheSame() returns true, but areContentsTheSame() returns false, which means that we are talking about the same item but the fields data might have changed. Basically, this method returns the reason(s) why there is a difference in the lists.

In this, I used a Bundle to return more than one reason about the changes which make the compared items content not the same.

Once we have the callback, it is pretty easy.
@ Override
public void onNewProducts(List<Product> newProducts) {
    DiffUtil.DiffResult diffResult = DiffUtil.calculateDiff(new ProductListDiffCallback(mProducts, newProducts));
    diffResult.dispatchUpdatesTo(mProductAdapter);

}

getOldListSize()– Return the size of the old list.

getNewListSize()– Return the size of the new list.

areItemsTheSame(int oldItemPosition, int newItemPosition)– It decides whether two objects are representing same items or not.

areContentsTheSame(int oldItemPosition, int newItemPosition)– It decides whether two items have same data or not. This method is called by DiffUtil only if areItemsTheSame() returns true.

getChangePayload(int oldItemPosition, int newItemPosition)– If areItemTheSame() returns true and areContentsTheSame() returns false than DiffUtil utility calls this method to get a payload about the change.

DiffUtil also uses methods of RecyclerView.Adapter to notify the Adapter to update the data set:

notifyItemMoved()
notifyItemRangeChanged()
notifyItemRangeInserted()
notifyItemRangeRemoved()

You can read more details on RecyclerView.Adapter and its method here.



Important:


If the lists are large, this operation may take significant time so you are advised to run this on a background thread, get the DiffUtil#DiffResult then apply it on the RecyclerView on the main thread. Also max size of the list can be 2²⁶ due to implementation constraints.


Github Sample -> https://github.com/manishpathak99/DiffUtil-sample




Wednesday, April 25, 2018

How to get Bundle Identifier of an iOS App from Apple AppStore/ IPA file

Find the Bundle Identifier of An iOS Application (App Bundle ID OR Bundle ID)


If your app is in the App Store.

1- Find the app online (Google for the iTunes link). For this example we use Apple Pages: https://itunes.apple.com/app/pages/id361309726?mt=8.

2- Copy the number after the id in the URL. (Here: 361309726).

3- Open https://itunes.apple.com/lookup?id=361309726 where you replace the ID with the one you looked up.

4- Search the output for "bundleID". In this example it looks like this (next to a bunch of other data): "bundleId":"com.apple.Pages". So for Apple, the bundle ID is com.apple.Pages.

If you have the .ipa file directly

1- Copy the .ipa file and rename the extension to .zip. (So e.g. MyApp.ipa will become MyApp.zip)

2- Unzip the zip file. You will get a new folder named like the zip file.

3- Search for the file iTunesMetadata.plist in that new folder.

4- Open the file with a text editor and search for softwareVersionBundleId. For Pages app this looks like this and is com.apple.Pages:


Friday, January 19, 2018

Why Machine Learning , what is Machine Learning and how Machine Learning works?

What is Machine Learning  ? 

Machine learning is a method of data analysis that automates analytical model building. It is a branch of artificial intelligence based on the idea that machines should be able to learn and adapt through experience. 

Think of machine learning like this. As a human, and as a user of technology, you complete certain tasks that require you to make a decision or classify something. For instance, when you read your inbox in the morning, you decide to mark that ‘Win a Free Cruise if You Click Here’ email as spam. How would a computer know to do the same thing?

Machine learning is comprised of algorithms that teach computers to perform tasks that human beings do naturally on a daily basis.

Machine learning algorithms teach computers to recognize features of an object.

For example, a computer is shown an apple and told that it is an apple. The computer then uses that information to classify the various characteristics of an apple, building upon new information each time. At first, a computer might classify an apple as round, and build a model that states that if something is round, it’s an apple. Then later, when an orange is introduced, the computer learns that if something is round AND red, it’s an apple. Then a tomato is introduced, and so on and so forth. The computer must continually modify its model based on new information and assign a predictive value to each model, indicating the degree of confidence that an object is one thing over another. For example, yellow is a more predictive value for a banana than red is for an apple.


1- Self-driving Google car
2- Online recommendation offers such as those from Amazon and Netflix
3- Fraud detection
4- IVR customer care 


WHY Machine Learning?

Machine learning today is not like machine learning of the past. It was born from pattern recognition and the theory that computers can learn without being programmed to perform specific tasks; researchers interested in artificial intelligence wanted to see if computers could learn from data. The iterative aspect of machine learning is important because as models are exposed to new data, they are able to independently adapt. They learn from previous computations to produce reliable, repeatable decisions and results.


How It Works?






Popular machine learning methods?

wo popular methods of machine learning are supervised learning and unsupervised learning. It is estimated that about 70 percent of machine learning is supervised learning, while unsupervised learning ranges from 10 – 20 percent. 

Supervised Learning

This kind of learning is possible when inputs and the outputs are clearly identified, and algorithms are trained using labeled examples. To understand this better, let’s consider the following example: an equipment could have data points labeled F (failed) or R (runs).
This kind of learning is possible when inputs and the outputs are clearly identified, and algorithms are trained using labeled examples.




The learning algorithm using supervised learning would receive a set of inputs along with the corresponding correct output to find errors. Based on these inputs, it would further modify the model accordingly. This is a form of pattern recognition, as supervised learning happens through methods like classification, regression, prediction, and gradient boosting. Supervised learning uses patterns to predict the values of the label on additional unlabeled data.

for example such as fraudulent credit card transactions.


Unsupervised Learning

Unsupervised learning is used with data sets without historical data. An unsupervised learning algorithm explores surpassed data to find the structure. This kind of learning works best for transactional data;



Popular techniques where unsupervised learning is used also include self-organizing maps, nearest neighbor mappig, singular value decomposition, and k-means clustering. Basically, online recommendations, identification of data outliers, and segment text topics are all examples of unsupervised learning.



Semi-Supervised Learning


Semi-supervised learning is a bit of both supervised and unsupervised learning and uses both labeled and unlabeled data for training. 



This type of learning can again be used with methods such as classification, regression, and prediction. Examples of semi-supervised learning would be face and voice recognition techniques.


Reinforcement Learning

This is a bit similar to the traditional type of data analysis; the algorithm discovers through trial and error and decides which action results in greater rewards. Three major components can be identified in reinforcement learning functionality: the agent, the environment, and the actions. The agent is the learner or decision-maker, the environment includes everything that the agent interacts with, and the actions are what the agent can do.






Machine Learning Algorithms And Processes


you should familiarize yourself with these common machine learning algorithms and processes: neural networks, decision trees, random forests, associations and sequence discovery, gradient boosting and bagging, support vector machines, self-organizing maps, k-means clustering, Bayesian networks, Gaussian mixture models, and more.
Other tools and processes that pair up with the best algorithms to aid in deriving the most value from big data include:

  • Comprehensive data quality and management
  • GUIs for building models and process flows
  • Interactive data exploration and visualization of model results
  • Comparisons of different machine learning models to quickly identify the best one
  • Automated ensemble model evaluation to identify the best performers
  • Easy model deployment so you can get repeatable, reliable results quickly

Monday, October 24, 2016

Android Code Review Checklist

Basic Code Review Checklist

Let’s discuss about the basic code review checklist, which can be very handy if you are a beginner in code reviews and/or during initial code reviews.
While reviewing the code, ask yourself the following basic questions:
  1. Am I able to understand the code easily?
  2. Is the code written following the coding standards/guidelines?
  3. Is the same code duplicated more than twice?
  4. Can I unit test / debug the code easily to find the root cause?
  5. Is this function or class too big? If yes, is the function or class having too many responsibilities?





If you feel that the answer is not satisfactory to any of the above questions, then you can suggest/recommend code changes.

Detailed Code Review Checklist

The following code review checklist gives an idea about the various aspects you need to consider while reviewing the code:



1. Code formatting

While going through the code, check the code formatting to improve readability and ensure that there are no blockers:
a) Use alignments (left margin), proper white space. Also ensure that code block starting point and ending point are easily identifiable.
b) Ensure that proper naming conventions (Pascal, CamelCase etc.) have been followed. 
c) Code should fit in the standard 14 inch laptop screen.  There shouldn’t be a need to scroll horizontally to view the code. In a 21 inch monitor, other windows (toolbox, properties etc.) can be opened while modifying code, so always write code keeping in view a 14 inch monitor.
d) Remove the commented code as this is always a blocker, while going through the code. Commented code can be obtained from Source Control (like SVN), if required.

2. Architecture

a) The code should follow the defined architecture.
  1. Separation of Concerns followed
    • Split into multiple layers and tiers as per requirements (Presentation, Business and Data layers).
    • Split into respective files (HTML, JavaScript and CSS).
  1. Code is in sync with existing code patterns/technologies.
  2. Design patterns: Use appropriate design pattern (if it helps), after completely understanding the problem and context.

3. Coding best practices

  1. No hard coding, use constants/configuration values.
  2. Group similar values under an enumeration (enum).
  3. Comments – Do not write comments for what you are doing, instead write comments on why you are doing. Specify about any hacks, workaround and temporary fixes. Additionally, mention pending tasks in your to-do comments, which can be tracked easily.
  4. Avoid multiple if/else blocks.
  5. Use framework features, wherever possible instead of writing custom code.

4. Non Functional requirements

a) Maintainability (Supportability) – The application should require the least amount of effort to support in near future. It should be easy to identify and fix a defect.
  1. Readability: Code should be self-explanatory. Get a feel of story reading, while going through the code. Use appropriate name for variables, functions and classes. If you are taking more time to understand the code, then either code needs refactoring or at least comments have to be written to make it clear.
  2. Testability: The code should be easy to test. Refactor into a separate function (if required). Use interfaces while talking to other layers, as interfaces can be mocked easily. Try to avoid static functions, singleton classes as these are not easily testable by mocks.
  3. Debuggability: Provide support to log the flow of control, parameter data and exception details to find the root cause easily. If you are using Log4Net like component then add support for database logging also, as querying the log table is easy.
  4. Configurability: Keep the configurable values in place (XML file, database table) so that no code changes are required, if the data is changed frequently.
b) Reusability
  1. DRY (Do not Repeat Yourself) principle: The same code should not be repeated more than twice.
  2. Consider reusable services, functions and components.
  3. Consider generic functions and classes.
c) Reliability – Exception handling and cleanup (dispose) resources.
d) Extensibility – Easy to add enhancements with minimal changes to the existing code. One component should be easily replaceable by a better component.
e) Security – Authentication, authorization, input data validation against security threats such as SQL injections and Cross Site Scripting (XSS), encrypting the sensitive data (passwords, credit card information etc.)
f) Performance
  1. Use a data type that best suits the needs such as StringBuilder, generic collection classes.
  2. Lazy loading, asynchronous and parallel processing.
  3. Caching and session/application data.
g) Scalability – Consider if it supports a large user base/data? Can this be deployed into web farms?
h) Usability – Put yourself in the shoes of a end-user and ascertain, if the user interface/API is easy to understand and use. If you are not convinced with the user interface design, then start discussing your ideas with the business analyst.

5. Object-Oriented Analysis and Design (OOAD) Principles

  1. Single Responsibility Principle (SRS): Do not place more than one responsibility into a single class or function, refactor into separate classes and functions.
  2. Open Closed Principle: While adding new functionality, existing code should not be modified. New functionality should be written in new classes and functions.
  3. Liskov substitutability principle: The child class should not change the behavior (meaning) of the parent class. The child class can be used as a substitute for a base class.
  4. Interface segregation: Do not create lengthy interfaces, instead split them into smaller interfaces based on the functionality. The interface should not contain any dependencies (parameters), which are not required for the expected functionality.
  5. Dependency Injection: Do not hardcode the dependencies, instead inject them.
In most cases the principles are interrelated, following one principle automatically satisfies other principles. For e.g: if the ‘Single Responsibility Principle’ is followed, then Reusability and Testability will automatically increase.
In a few cases, one requirement may contradict with other requirement. So need to trade-off based on the importance of the weight-age, e.g. Performance vs Security. Too many checks and logging at multiple layers (UI, Middle tier, Database) would decrease the performance of an application. But few applications, especially relating to finance and banking require multiple checks, audit logging etc. So it is ok to compromise a little on performance to provide enhanced security.

Tools for Code Reviews

  1. The first step while assessing the code quality of the entire project is through a static code analysis tool. Use the tools (based on technology) such as SonarQube, NDepend, FxCop, TFS code analysis rules. There is a myth that static code analysis tools are only for managers.
  2. Use plug-ins such as Resharper, which suggests the best practices in Visual studio.
  3. To track the code review comments use the tools like Crucible, Bitbucket and TFS code review process.


Android Java Code Review Checklist
  1. Is the functionality correct?
  2. Are the classes named suitably?
  3. Are the functions named suitably?
  4. How's the datastructure being used? Is it the correct DS or it needs improvement?
  5. Can the classes be further borken into small classes?
  6. Do we need an interface?
  7. If it contain functions that can be reused later then are there Utils created for them?
  8. Can it use already available Util functions?
  9. Does the large set of input for a function deserve a new bean to be created?
  10. Can we decrease the coupling?
  11. Are all the input arguments being validated?
  12. How will the functionalities affect the performance of the app - time and memory?
  13. Is it absolutely necessary to run it on UI therad or would a background thread suffice?
  14. Are all the fail points handled?
  15. Does it degrade gracefully in case of unknown failures?
  16. Are the app-doing level standards being followed?
  17. Is the correct form of storage being used and is memory available for storage?
    • Shared Preference
    • DB
    • SD Card
    • Internal Storage
  18. Are the operations thread safe?
  19. What pieces of the component can be executed in parallel?
  20. Are the layouts suitable for all the screen dimensions?
  21. What classes would become obsolete after this implementation?

Wednesday, October 7, 2015

Plant UML setup in Android Studio (Mac Maverics )

Steps: 1- Install Graphviz.dmg.
2- Add android studio plugin PlantUML
       Preference - > plugins -> Plant UML
3- Setup environment variable (By Running below Command) -

launchctl setenv GRAPHVIZ_DOT /usr/local/bin/dot export GRAPHVIZ_DOT

4- In android studio - Click on View-> Plant Uml.
5- Click New-> Salt Wireframe -> paste the below lines in it (after erase all line )

@startuml
testDot
@enduml

6- Set the path of Graphviz app in Android studio settings.
click Preference-> Other settings-> Plant UML -> Graph Viz Executable Path

/usr/local/bin/dot

7- you will find the below image in PlantUML window.



Tuesday, July 28, 2015

Android Activity Transition API

There are two type of Activity Transitions-
1- Content Transition
2- Shared element transition

1- Content Transition : A content transition determines how an activity's non-shared views—called transitioning views—enter or exit the activity scene.
2- Shared element transition: A shared element transition determines how an activity's shared elements (also called hero views) are animated between two activities.

The following sections will have a good introductions.
  • Enable the new transition APIs by requesting theWindow.FEATURE_ACTIVITY_TRANSITIONS window feature in your called and calling Activities, either programatically or in your theme's XML.3 Material-themed applications have this flag enabled by default.
  • Set exit and enter content transitions for your calling and called activities respectively. Material-themed applications have their exit and enter content transitions set to nulland Fade respectively by default. If the reenter or return transitions are not explicitly set, the activity's exit and enter content transitions respectively will be used in their place instead.
  • Set exit and enter shared element transitions for your calling and called activities respectively. Material-themed applications have their shared element exit and enter transitions set to @android:transition/move by default. If the reenter or returntransitions are not explicitly set, the activity's exit and enter shared element transitions respectively will be used in their place instead.
  • To start an Activity transition with content transitions and shared elements, call thestartActivity(Context, Bundle) method and pass the following Bundle as the second argument:
    ActivityOptions.makeSceneTransitionAnimation(activity, pairs).toBundle();
    
    where pairs is an array of Pair<View, String> objects listing the shared element views and names that you'd like to share between activities.4 Don't forget to give your shared elements unique transition names, either programatically or in XML. Otherwise, the transition will not work properly!
  • To programatically trigger a return transition, call finishAfterTransition() instead of finish().
  • By default, material-themed applications have their enter/return content transitions started a tiny bit before their exit/reenter content transitions complete, creating a small overlap that makes the overall effect more seamless and dramatic. If you wish to explicitly disable this behavior, you can do so by calling thesetWindowAllowEnterTransitionOverlap() andsetWindowAllowReturnTransitionOverlap() methods or by setting the corresponding attributes in your theme's XML.

Introducing the Fragment Transition API

If you are working with Fragment transitions, the API is similar with a few small differences:
  • Content exit, enter, reenter, and return transitions should be set by calling the corresponding methods in the Fragment class or as attributes in your Fragment's XML tag.
  • Shared element enter and return transitions should be set by calling the corresponding methods in the Fragment class or as attributes in your Fragment's XML.
  • Whereas Activity transitions are triggered by explicit calls to startActivity() andfinishAfterTransition(), Fragment transitions are triggered automatically when a fragment is added, removed, attached, detached, shown, or hidden by aFragmentTransaction.
  • Shared elements should be specified as part of the FragmentTransaction by calling the addSharedElement(View, String) method before the transaction is committed.

1 - Content Transition 

A content transition determines how the non-shared views—called transitioning views—enter or exit the scene during an Activity or Fragment transition. Motivated by Google's new Material Design language, content transitions allow us to coordinate the entrance and exit of each Activity/Fragment's views, making the act of switching between screens smooth and effortless. Beginning with Android Lollipop, content transitions can be set programatically by calling the following Window and Fragment methods:
  • setExitTransition() - A's exit transition animates transitioning views out of the scene when A starts B.
  • setEnterTransition() - B's enter transition animates transitioning views into the scene when A starts B.
  • setReturnTransition() - B's return transition animates transitioning views out of the scene when B returns to A.
  • setReenterTransition() - A's reenter transition animates transitioning views into the scene when B returns to A.

Content Transitions Under-The-Hood

when Activity A starts Activity Bthe following sequence of events occurs:1
  1. Activity A calls startActivity().
    1. The framework traverses A's view hierarchy and determines the set of transitioning views that will exit the scene when A's exit transition is run.
    2. A's exit transition captures the start state for the transitioning views in A.
    3. The framework sets all transitioning views in A to INVISIBLE.
    4. On the next display frame, A's exit transition captures the end state for the transitioning views in A.
    5. A's exit transition compares the start and end state of each transitioning view and creates an Animator based on the differences. The Animator is run and the transitioning views exit the scene.
  2. Activity B is started.
    1. The framework traverses B's view hierarchy and determines the set of transitioning views that will enter the scene when B's enter transition is run. The transitioning views are initially set to INVISIBLE.
    2. B's enter transition captures the start state for the transitioning views in B.
    3. The framework sets all transitioning views in B to VISIBLE.
    4. On the next display frame, B's enter transition captures the end state for the transitioning views in B.
    5. B's enter transition compares the start and end state of each transitioning view and creates an Animator based on the differences. The Animator is run and the transitioning views enter the scene.
By toggling each transitioning view's visibility between INVISIBLE and VISIBLE, the framework ensures that the content transition is given the state information it needs to create the desired animation. Clearly all content Transition objects then must at the very least be able to capture and record each transitioning view's visibility in both its start and end states. Fortunately, the abstract Visibility class already does this work for you: subclasses ofVisibility need only implement the onAppear() and onDisappear() factory methods, in which they must create and return an Animator that will either animate the views into or out of the scene. As of API 21, three concrete Visibility implementations exist—Fade, Slide, and Explode—all of which can be used to create Activity and Fragment content transitions. If necessary, custom Visibility classes may be implemented as well; doing so will be covered in a future blog post.