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
//In my case I first resize the image to a max width of 300dp as I'm displaying in a list and want them to look uniform | |
//Then for the margin and raidus measurements, I convert from dp to px, so that it appears the same on different screens. | |
Picasso.with(mContext) | |
.load(imageUrl) | |
.resize((int)UiUtils.dpToPx(mContext, 300), 0) | |
.transform(new SpeechBubbleTransform((int)UiUtils.dpToPx(mContext, 8), (int)UiUtils.dpToPx(mContext,12), SpeechBubbleTransform.Corner.BOTTOM_LEFT)) | |
.into(holder.mIvPhotoMessage); |
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 ClickToSelectEditText <T> extends AppCompatEditText { | |
CharSequence mHint; | |
OnItemSelectedListener<T> onItemSelectedListener; | |
ListAdapter mSpinnerAdapter; | |
public ClickToSelectEditText(Context context) { | |
super(context); | |