-
-
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
1 parent
80a789a
commit 7c621be
Showing
8 changed files
with
101 additions
and
3 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
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
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
33 changes: 33 additions & 0 deletions
33
masterpacklib/src/main/java/bd/com/bangal/masterpacklib/textview/TextViewRobotoBold.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,33 @@ | ||
package bd.com.bangal.masterpacklib.textview; | ||
|
||
|
||
import android.content.Context; | ||
import android.graphics.Typeface; | ||
import android.util.AttributeSet; | ||
|
||
import androidx.appcompat.widget.AppCompatTextView; | ||
|
||
public class TextViewRobotoBold extends AppCompatTextView { | ||
|
||
public TextViewRobotoBold(Context context, AttributeSet attrs, int defStyle) { | ||
super(context, attrs, defStyle); | ||
init(); | ||
} | ||
|
||
public TextViewRobotoBold(Context context, AttributeSet attrs) { | ||
super(context, attrs); | ||
init(); | ||
} | ||
|
||
public TextViewRobotoBold(Context context) { | ||
super(context); | ||
init(); | ||
} | ||
|
||
private void init() { | ||
if (!isInEditMode()) { | ||
Typeface tf = Typeface.createFromAsset(getContext().getAssets(), "fonts/Roboto-Bold.ttf"); | ||
setTypeface(tf); | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
masterpacklib/src/main/java/bd/com/bangal/masterpacklib/textview/TextViewRobotoMedium.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,34 @@ | ||
package bd.com.bangal.masterpacklib.textview; | ||
|
||
|
||
import android.content.Context; | ||
import android.graphics.Typeface; | ||
import android.util.AttributeSet; | ||
|
||
import androidx.appcompat.widget.AppCompatTextView; | ||
|
||
public class TextViewRobotoMedium extends AppCompatTextView { | ||
|
||
public TextViewRobotoMedium(Context context, AttributeSet attrs, int defStyle) { | ||
super(context, attrs, defStyle); | ||
init(); | ||
} | ||
|
||
public TextViewRobotoMedium(Context context, AttributeSet attrs) { | ||
super(context, attrs); | ||
init(); | ||
} | ||
|
||
public TextViewRobotoMedium(Context context) { | ||
super(context); | ||
init(); | ||
} | ||
|
||
private void init() { | ||
if (!isInEditMode()) { | ||
Typeface tf = Typeface.createFromAsset(getContext().getAssets(), "fonts/Roboto-Medium.ttf"); | ||
setTypeface(tf); | ||
} | ||
} | ||
|
||
} |
33 changes: 33 additions & 0 deletions
33
masterpacklib/src/main/java/bd/com/bangal/masterpacklib/textview/TextViewRobotoRegular.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,33 @@ | ||
package bd.com.bangal.masterpacklib.textview; | ||
|
||
import android.content.Context; | ||
import android.graphics.Typeface; | ||
import android.util.AttributeSet; | ||
|
||
import androidx.appcompat.widget.AppCompatTextView; | ||
|
||
public class TextViewRobotoRegular extends AppCompatTextView { | ||
public TextViewRobotoRegular(Context context, AttributeSet attrs, int defStyle) { | ||
super(context, attrs, defStyle); | ||
init(); | ||
} | ||
|
||
public TextViewRobotoRegular(Context context, AttributeSet attrs) { | ||
super(context, attrs); | ||
init(); | ||
} | ||
|
||
public TextViewRobotoRegular(Context context) { | ||
super(context); | ||
init(); | ||
} | ||
|
||
private void init() { | ||
if (!isInEditMode()) { | ||
Typeface tf = Typeface.createFromAsset(getContext().getAssets(), "fonts/Roboto-Regular.ttf"); | ||
setTypeface(tf); | ||
} | ||
} | ||
|
||
|
||
} |