<commit_before># Fragment navigator

Fragment navigator is a simple way to navigate between fragments.

#### Features
- The transaction logic is in one place.
- Handles the transaction exception, when the application is in the background.
- Easy to use and to pass a custom object to the Fragment(See: FragmentC and FragmentD).
- The BaseFragmentActivity handles the onBackPressed event. When you want to handle the onBackPressed event inside your Fragment, your Fragment just need to override the OnBackPressed method and write there your navigation code. Note that it have to return true.
- If you have a navigation drawer in your Activity, after the navigation, the drawer will close automatically if you implement the OnCloseDrawer interface in your Activity. In the *onCloseDrawer()* method is coming your drawer`s close implementation.
- If you does not like the navigation implementation(StandardFragmentNavigationStrategy), you can write your own FragmentNavigation behavior.

#### Implementation steps
1. Extend your Activity the BaseFragmentActivity class.
2. Override the getFragmentContainerID method and make it to return your fragment container layout id, which is placed in your activity`s xml.
3. Extend your Fragments the BaseFragment class.

Now you can navigate with the *getNavigationFacade().navigateTo()* method. This method is accessible from your Activity and Fragments as well.
You can pass to the *getNavigationFacade().navigateTo()* method  your fragment instance or class(new Fragment1(), Fragment1.class), bundle and animations.

#### Notes
The BaseFragmentActivity is extended from Activity. If you want to use AppCompactActivity or any other custom class as base class, you have to modify the BaseActivity class so.
<commit_msg>readme update.<commit_after># Fragment navigator

Fragment navigator is a simple way to navigate between fragments.

#### Features
- The transaction logic is in one place.
- Handles the transaction exception, when the application is in the background.
- Easy to use and to pass a custom object to the Fragment(See: FragmentC and FragmentD).
- The BaseFragmentActivity handles the onBackPressed event. When you want to handle the onBackPressed event inside your Fragment, your Fragment just need to override the OnBackPressed method and write there your navigation code. Note that it has to return true.
- If you have a navigation drawer in your Activity, after the navigation, the drawer will close automatically if you implement the OnCloseDrawer interface in your Activity. In the *onCloseDrawer()* method is coming your drawer`s close implementation.
- If you do not like the navigation implementation(StandardFragmentNavigationStrategy), you can write your own FragmentNavigation behavior.

#### Implementation steps
1. Extend your Activity the BaseFragmentActivity class.
2. Override the getFragmentContainerID method and make it to return your fragment container layout id, which is placed in your activity`s xml.
3. Extend your Fragments the BaseFragment class.

Now you can navigate with the *getNavigationFacade().navigateTo()* method. This method is accessible from your Activity and Fragments as well.
You can pass to the *getNavigationFacade().navigateTo()* method  your fragment instance or class(new Fragment1(), Fragment1.class), bundle and animations.

#### Notes
The BaseFragmentActivity is extended from Activity. If you want to use AppCompactActivity or any other custom class as base class, you have to modify the BaseActivity class.

{'fraction_non_alphanumeric': 0.04696840307429547, 'fraction_numerical': 0.002846569883290635, 'mean_word_length': 5.143356643356643, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3446582', 'n_tokens_mistral': 810, 'n_tokens_neox': 787, 'n_words': 480}