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
public class Utility { | |
public static void addShowMoreDots(String targetString, TextView tvStringHolder, int charactersLimit, @Nullable final View.OnClickListener onDotsClickListener) { | |
if (targetString.length() > charactersLimit) { | |
String dotsString = " [ ... ]"; | |
targetString = targetString.substring(0, charactersLimit).concat(dotsString); | |
SpannableString spannableDots = new SpannableString(targetString); | |
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
# add a Profile in the root folder of your project where manage.py exists and add the line below to your Procfile and replace | |
# project_name with your Project name | |
web: gunicorn project_name.wsgi |
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
private static final int NOTIFICATION_ID = 1; | |
private static final String NOTIFICATION_CHANNEL_ID = "joblogic_notification_channel"; | |
... | |
public void showNotification( String contentTitle, String contentText ) { | |
int icon = R.drawable.icon; | |
long when = System.currentTimeMillis(); | |
Intent notificationIntent = new Intent(this,LocalNotificationActivity.class); |
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
import android.content.Context; | |
import android.graphics.Typeface; | |
import android.util.AttributeSet; | |
import android.widget.TextView; | |
public class CustomFontTextView extends TextView { | |
public static Typeface FONT_NAME; | |