This repository has been archived by the owner on Mar 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
created new code architecture for navigation fragments
- Loading branch information
Showing
7 changed files
with
85 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...pp/src/main/java/com/thesis/smukov/anative/NavigationFragment/BaseNavigationFragment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.thesis.smukov.anative.NavigationFragment; | ||
|
||
import android.app.Fragment; | ||
import android.support.design.widget.FloatingActionButton; | ||
import android.view.View; | ||
|
||
|
||
public abstract class BaseNavigationFragment extends Fragment | ||
implements INavigationFragment{ | ||
|
||
protected View myView; | ||
protected FloatingActionButton fab; | ||
|
||
@Override | ||
public void setFloatingActionButton(FloatingActionButton fab) { | ||
this.fab = fab; | ||
} | ||
|
||
protected abstract void prepareFloatingActionButton(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...d/app/src/main/java/com/thesis/smukov/anative/NavigationFragment/INavigationFragment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.thesis.smukov.anative.NavigationFragment; | ||
|
||
import android.support.design.widget.FloatingActionButton; | ||
|
||
/** | ||
* Created by smuko on 18-Jun-16. | ||
*/ | ||
public interface INavigationFragment { | ||
void setFloatingActionButton(FloatingActionButton fab); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
Android/app/src/main/java/com/thesis/smukov/anative/interfaces/INavigationFragment.java
This file was deleted.
Oops, something went wrong.