Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
SkinLibrary
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gaodapeng
SkinLibrary
Commits
3a1365cd
Commit
3a1365cd
authored
Nov 19, 2021
by
gaodapeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加了几个注释
parent
5cdd42ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
ActivityLifeCycleCallback.java
...ain/java/com/miya/skin_lib/ActivityLifeCycleCallback.java
+3
-0
SkinLayoutInflaterFactory.java
...ain/java/com/miya/skin_lib/SkinLayoutInflaterFactory.java
+3
-0
No files found.
skin-lib/src/main/java/com/miya/skin_lib/ActivityLifeCycleCallback.java
View file @
3a1365cd
...
@@ -22,6 +22,9 @@ public class ActivityLifeCycleCallback implements Application.ActivityLifecycleC
...
@@ -22,6 +22,9 @@ public class ActivityLifeCycleCallback implements Application.ActivityLifecycleC
inflaterFactory
=
new
HashMap
<>();
inflaterFactory
=
new
HashMap
<>();
}
}
/**
* 调用在oncreate开发者写的代码之前
*/
@Override
@Override
public
void
onActivityCreated
(
Activity
activity
,
Bundle
savedInstanceState
)
{
public
void
onActivityCreated
(
Activity
activity
,
Bundle
savedInstanceState
)
{
//先更改status bar
//先更改status bar
...
...
skin-lib/src/main/java/com/miya/skin_lib/SkinLayoutInflaterFactory.java
View file @
3a1365cd
...
@@ -45,6 +45,9 @@ public class SkinLayoutInflaterFactory implements LayoutInflater.Factory2, Obser
...
@@ -45,6 +45,9 @@ public class SkinLayoutInflaterFactory implements LayoutInflater.Factory2, Obser
skinAttribute
=
new
SkinAttribute
();
skinAttribute
=
new
SkinAttribute
();
}
}
/**
* 调用时机在setContentView时。
*/
@RequiresApi
(
api
=
Build
.
VERSION_CODES
.
KITKAT
)
@RequiresApi
(
api
=
Build
.
VERSION_CODES
.
KITKAT
)
@Nullable
@Nullable
@Override
@Override
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment