-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix IntentParam bug & add Fragement Param init method && add Navigation
- Loading branch information
foolishchow
committed
Apr 23, 2021
1 parent
543ae79
commit f2016a5
Showing
14 changed files
with
239 additions
and
18 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
17 changes: 17 additions & 0 deletions
17
annotation/src/main/java/me/foolishchow/android/annotation/Navigation.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,17 @@ | ||
package me.foolishchow.android.annotation; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
/** | ||
* Description: | ||
* Author: foolishchow | ||
* Date: 23/4/2021 9:50 PM | ||
*/ | ||
@Retention(RetentionPolicy.SOURCE) | ||
@Target(ElementType.TYPE) | ||
public @interface Navigation { | ||
NavigationAction[] actions(); | ||
} |
19 changes: 19 additions & 0 deletions
19
annotation/src/main/java/me/foolishchow/android/annotation/NavigationAction.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,19 @@ | ||
package me.foolishchow.android.annotation; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
/** | ||
* Description: | ||
* Author: foolishchow | ||
* Date: 23/4/2021 9:50 PM | ||
*/ | ||
@Retention(RetentionPolicy.SOURCE) | ||
@Target(ElementType.TYPE) | ||
public @interface NavigationAction { | ||
String name(); | ||
String description() default ""; | ||
int actionId() default -1; | ||
} |
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
12 changes: 12 additions & 0 deletions
12
app/src/main/java/me/foolishchow/androidplugins/fragment/BaseDialogFragment.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,12 @@ | ||
package me.foolishchow.androidplugins.fragment; | ||
|
||
import androidx.fragment.app.DialogFragment; | ||
import androidx.fragment.app.Fragment; | ||
|
||
/** | ||
* Description: | ||
* Author: foolishchow | ||
* Date: 23/4/2021 8:22 PM | ||
*/ | ||
public class BaseDialogFragment extends DialogFragment { | ||
} |
11 changes: 11 additions & 0 deletions
11
app/src/main/java/me/foolishchow/androidplugins/fragment/BaseFragment.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,11 @@ | ||
package me.foolishchow.androidplugins.fragment; | ||
|
||
import androidx.fragment.app.Fragment; | ||
|
||
/** | ||
* Description: | ||
* Author: foolishchow | ||
* Date: 23/4/2021 8:22 PM | ||
*/ | ||
public class BaseFragment extends Fragment { | ||
} |
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
17 changes: 17 additions & 0 deletions
17
app/src/main/java/me/foolishchow/androidplugins/fragment/SecondBaseDialogFragment.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,17 @@ | ||
package me.foolishchow.androidplugins.fragment; | ||
|
||
import androidx.fragment.app.DialogFragment; | ||
import androidx.fragment.app.FragmentManager; | ||
|
||
/** | ||
* Description: | ||
* Author: foolishchow | ||
* Date: 23/4/2021 8:22 PM | ||
*/ | ||
public class SecondBaseDialogFragment extends BaseDialogFragment { | ||
|
||
@Override | ||
public int getTheme() { | ||
return super.getTheme(); | ||
} | ||
} |
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
Oops, something went wrong.