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
package com.asdevel.chatlib.utils; | |
import android.content.Context; | |
import android.net.Uri; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; | |
import com.asdevel.chatlib.BuildConfig; | |
import com.asdevel.chatlib.Constants; | |
import com.jakewharton.disklrucache.DiskLruCache; |
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
class RightAlignLastLetterSpan extends ReplacementSpan { | |
@SuppressWarnings("FieldCanBeLocal") private static boolean DEBUG = false; | |
private float textWidth = -1; | |
@Nullable private TextAppearanceSpan spanStyle; | |
@Nullable private String text; | |
@NonNull private TextView tv; | |
protected RightAlignLastLetterSpan(@NonNull TextView tv) {this.tv = tv;} |