forked from thealeksandr/PFLockScreen-Android
-
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.
- Loading branch information
Showing
9 changed files
with
65 additions
and
51 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
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
Binary file not shown.
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
15 changes: 15 additions & 0 deletions
15
app/src/main/java/com/beautycoder/applicationlockscreenexample/MyActivity.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,15 @@ | ||
package com.beautycoder.applicationlockscreenexample; | ||
|
||
import android.content.Context; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
import io.github.inflationx.viewpump.ViewPumpContextWrapper; | ||
|
||
|
||
public class MyActivity extends AppCompatActivity { | ||
@Override | ||
protected void attachBaseContext(Context newBase) { | ||
super.attachBaseContext(ViewPumpContextWrapper.wrap(newBase)); | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
app/src/main/java/com/beautycoder/applicationlockscreenexample/MyApp.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,29 @@ | ||
package com.beautycoder.applicationlockscreenexample; | ||
|
||
import android.app.Application; | ||
|
||
import io.github.inflationx.calligraphy3.CalligraphyConfig; | ||
import io.github.inflationx.calligraphy3.CalligraphyInterceptor; | ||
import io.github.inflationx.viewpump.ViewPump; | ||
|
||
|
||
public class MyApp extends Application { | ||
|
||
@Override | ||
public void onCreate() { | ||
super.onCreate(); | ||
|
||
|
||
ViewPump.init(ViewPump.builder() | ||
.addInterceptor(new CalligraphyInterceptor( | ||
new CalligraphyConfig.Builder() | ||
.setDefaultFontPath("fonts/iran_yekan_regular.ttf") | ||
.setFontAttrId(R.attr.fontPath) | ||
.build())) | ||
.build()); | ||
|
||
|
||
} | ||
|
||
|
||
} |
39 changes: 0 additions & 39 deletions
39
pflockscreen/src/main/java/com/beautycoder/pflockscreen/MyTextView.java
This file was deleted.
Oops, something went wrong.
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