本文整理汇总了Java中com.mikhaellopez.circularimageview.CircularImageView类的典型用法代码示例。如果您正苦于以下问题:Java CircularImageView类的具体用法?Java CircularImageView怎么用?Java CircularImageView使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CircularImageView类属于com.mikhaellopez.circularimageview包,在下文中一共展示了CircularImageView类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreateView
import com.mikhaellopez.circularimageview.CircularImageView; //导入依赖的package包/类
@Override
public void onCreateView(View view) {
super.onCreateView(view);
CircularImageView image = (CircularImageView) view.findViewById(R.id.image);
TextView name = (TextView) view.findViewById(R.id.name);
TextView contributions = (TextView) view.findViewById(R.id.contributions);
ViewUtils.loadImagefromUrl(mContributor.getAvatarUrl(), image, 200, 200);
name.setText(mContributor.getLogin());
contributions.setText(view.getResources().getString(R.string.commits, mContributor.getContributions()));
view.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Utils.launchUrl(mContributor.getHtmlUrl(), v.getContext());
}
});
}
示例2: onFinishInflate
import com.mikhaellopez.circularimageview.CircularImageView; //导入依赖的package包/类
@Override
protected void onFinishInflate() {
super.onFinishInflate();
View.inflate(getContext(), R.layout.merge_main_view, this);
toolbar = (Toolbar) findViewById(R.id.toolbar);
toolbar.setNavigationIcon(R.drawable.ic_menu_hamburger);
drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
navigationView = (NavigationView) findViewById(R.id.nav_view);
logoutView = (NavigationView) navigationView.findViewById(R.id.logout_view);
View headerLayout = navigationView.getHeaderView(0);
profileImageView = (CircularImageView) headerLayout.findViewById(R.id.profileImageView);
nameTextView = (TextView) headerLayout.findViewById(R.id.nameTextView);
emailTextView = (TextView) headerLayout.findViewById(R.id.emailTextView);
searchView = (MaterialSearchView) findViewById(R.id.search_view);
}
示例3: loadImageElseBlack
import com.mikhaellopez.circularimageview.CircularImageView; //导入依赖的package包/类
public static void loadImageElseBlack(String image, CircularImageView imageView, Context context) {
try {
if (image != null && image.length() > 0) {
StorageReference ref = Dependencies.INSTANCE.getStorageService().getProfileImageReference(image);
Glide.with(context)
.using(new FirebaseImageLoader())
.load(ref)
.into(imageView);
} else {
Glide.with(context)
.load("")
.placeholder(R.drawable.ic_account_circle_black)
.diskCacheStrategy(DiskCacheStrategy.SOURCE)
.into(imageView);
}
} catch (IllegalArgumentException e) {
}
}
示例4: loadImageElseWhite
import com.mikhaellopez.circularimageview.CircularImageView; //导入依赖的package包/类
public static void loadImageElseWhite(String image, CircularImageView imageView, Context context) {
try {
if (image != null && image.length() > 0) {
StorageReference ref = Dependencies.INSTANCE.getStorageService().getProfileImageReference(image);
Glide.with(context)
.using(new FirebaseImageLoader())
.load(ref)
.into(imageView);
} else {
Glide.with(context)
.load("")
.placeholder(R.drawable.ic_account_circle_white)
.diskCacheStrategy(DiskCacheStrategy.SOURCE)
.into(imageView);
}
} catch (IllegalArgumentException e) {
}
}
示例5: onBindViewHolder
import com.mikhaellopez.circularimageview.CircularImageView; //导入依赖的package包/类
@Override
public void onBindViewHolder(final MyViewHolder holder, int position) {
final Issue issue = mIssueList.get(position);
holder.getTitle().setText(issue.getTitle());
Date created = issue.getCreatedAt();
holder.getTime().setText(mPrettyTime.format(created));
String numConfirms = '+' + Integer.toString(issue.getConfirmVotes());
holder.getNumConfirms().setText(numConfirms);
Category issueCategory = issue.getCategory();
Drawable drawable = mContext.getResources().getDrawable(issueCategory.getCircleIcon());
CircularImageView categoryImage = holder.getCategory();
categoryImage.setImageDrawable(drawable);
holder.getDistance().setText(issue.getDistanceFromCurrentLocationAsString());
// loading album cover using Glide library
String imageUrl = issue.getPicture().getSmallUrl();
Glide.with(mContext)
.load(imageUrl)
.centerCrop()
.into(holder.getThumbnail());
OnClickListener showDetails = new OnClickListener() {
@Override
public void onClick(View view) {
issue.showIssueDetails();
}
};
holder.getThumbnail().setOnClickListener(showDetails);
holder.getView().setOnClickListener(showDetails);
}
示例6: MyViewHolder
import com.mikhaellopez.circularimageview.CircularImageView; //导入依赖的package包/类
public MyViewHolder(View view) {
super(view);
mView = view;
mTitle = (TextView) view.findViewById(R.id.title);
mTime = (TextView) view.findViewById(R.id.time);
mDistance = (TextView) view.findViewById(R.id.distance);
mThumbnail = (ImageView) view.findViewById(R.id.thumbnail);
mNumConfirms = (AppCompatButton) view.findViewById(R.id.num_confirms);
mCategory = (CircularImageView) view.findViewById(R.id.wall_category);
}
示例7: MyViewHolder
import com.mikhaellopez.circularimageview.CircularImageView; //导入依赖的package包/类
public MyViewHolder(View view) {
super(view);
artisteTextView = (TextView) view.findViewById(R.id.user_name);
imageView = (CircularImageView)view.findViewById(R.id.profile_photo);
// container = (CardView)view.findViewById(R.id.card_container);
}
示例8: DataObjectHolder
import com.mikhaellopez.circularimageview.CircularImageView; //导入依赖的package包/类
public DataObjectHolder(View itemView) {
super(itemView);
chefUsername = (TextView) itemView.findViewById(R.id.toptenchefusername);
chefRank = (TextView) itemView.findViewById(R.id.toptenchefsrank);
chefTitle = (TextView) itemView.findViewById(R.id.toptencheftitle);
chefProfileImage = (CircularImageView) itemView.findViewById(R.id.toptenchefprofileimage);
gourmetUsername = (TextView) itemView.findViewById(R.id.toptengourmetusername);
gourmetTitle = (TextView) itemView.findViewById(R.id.toptengourmettitle);
gourmetRank = (TextView) itemView.findViewById(R.id.toptengourmetrank);
gourmetProfileImage = (CircularImageView) itemView.findViewById(R.id.toptengourmetprofileimage);
itemView.setOnClickListener(this);
}
示例9: onFinishInflate
import com.mikhaellopez.circularimageview.CircularImageView; //导入依赖的package包/类
@Override
protected void onFinishInflate() {
super.onFinishInflate();
View.inflate(getContext(), R.layout.merge_conversation_view, this);
View rootView = this.getRootView();
popup = new EmojiconsPopup(rootView, getContext());
popup.setSizeForSoftKeyboard();
messageEditText = (EmojiconEditText) this.findViewById(R.id.messageEditText);
sendButton = (ImageButton) this.findViewById(R.id.sendButton);
emojiconButton = (ImageButton) this.findViewById(R.id.emoticonButton);
toolbar = (Toolbar) this.findViewById(R.id.toolbar);
profileImageView = (CircularImageView) toolbar.findViewById(R.id.profileImageView);
nameTextView = (TextView) toolbar.findViewById(R.id.nameTextView);
lastSeenTextView = (TextView) toolbar.findViewById(R.id.lastSeenTextView);
typingTextView = (TextView) this.findViewById(R.id.typingTextView);
toolbar.setNavigationIcon(R.drawable.ic_arrow_back);
messageRecyclerView = (RecyclerView) this.findViewById(R.id.messageRecyclerView);
LinearLayoutManager layoutManager = new LinearLayoutManager(getContext());
layoutManager.setStackFromEnd(true);
messageRecyclerView.setLayoutManager(layoutManager);
messageRecyclerView.setAdapter(conversationMessageAdapter);
}
示例10: onFinishInflate
import com.mikhaellopez.circularimageview.CircularImageView; //导入依赖的package包/类
@Override
protected void onFinishInflate() {
super.onFinishInflate();
View.inflate(getContext(), R.layout.merge_profile_view, this);
toolbar = (Toolbar) findViewById(R.id.toolbar);
toolbar.setNavigationIcon(R.drawable.ic_arrow_back);
emailTextView = (TextView) findViewById(R.id.emailTextView);
nameTextView = (TextView) findViewById(R.id.nameTextView);
profileImageView = (CircularImageView) findViewById(R.id.profileImageView);
passwordTextView = (TextView) findViewById(R.id.passwordTextView);
removeButton = (Button) findViewById(R.id.removeButton);
}
示例11: onFinishInflate
import com.mikhaellopez.circularimageview.CircularImageView; //导入依赖的package包/类
@Override
protected void onFinishInflate() {
super.onFinishInflate();
View.inflate(getContext(), layoutResId, this);
this.profileImageView = (CircularImageView) this.findViewById(R.id.profileImageView);
this.dateTextView = (TextView) this.findViewById(R.id.dateTextView);
this.messageTextView = (EmojiconTextView) this.findViewById(R.id.messageTextView);
this.messengerTextView = (TextView) this.findViewById(R.id.messengerTextView);
this.timestampTextView = (TextView) this.findViewById(R.id.timeTextView);
//this.timeLayout = (RelativeLayout) this.findViewById(R.id.timeLayout);
}
示例12: onFinishInflate
import com.mikhaellopez.circularimageview.CircularImageView; //导入依赖的package包/类
@Override
protected void onFinishInflate() {
super.onFinishInflate();
View.inflate(getContext(), layoutResId, this);
nameTextView = (TextView) this.findViewById(R.id.nameTextView);
profileImageView = (CircularImageView) this.findViewById(R.id.profileImageView);
}
示例13: onFinishInflate
import com.mikhaellopez.circularimageview.CircularImageView; //导入依赖的package包/类
@Override
protected void onFinishInflate() {
super.onFinishInflate();
View.inflate(getContext(), layoutResId, this);
nameTextView = (TextView) this.findViewById(R.id.nameTextView);
messageTextView = (TextView) this.findViewById(R.id.messageTextView);
timeTextView = (TextView) this.findViewById(R.id.timeTextView);
profileImageView = (CircularImageView) this.findViewById(R.id.profileImageView);
}
示例14: onCreate
import com.mikhaellopez.circularimageview.CircularImageView; //导入依赖的package包/类
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_firstlogin);
// TODO to implement
String image = getIntent().getStringExtra(Constants.FIREBASE_USERS_IMAGE);
toolbar = (Toolbar) findViewById(R.id.toolbar);
if (toolbar != null) {
setSupportActionBar(toolbar);
if (getSupportActionBar() != null)
getSupportActionBar().setTitle(R.string.firstlogin_title);
}
firebaseAuth = FirebaseAuth.getInstance();
firebaseUser = firebaseAuth.getCurrentUser();
firebaseStorage = FirebaseStorage.getInstance();
storageReference = firebaseStorage.getReference();
databaseReference = FirebaseDatabase.getInstance().getReference();
nameEditText = (EditText) findViewById(R.id.nameEditText);
if (firebaseUser.getDisplayName() != null && firebaseUser.getDisplayName().length() > 0)
nameEditText.setText(firebaseUser.getDisplayName());
profileImageView = (CircularImageView) findViewById(R.id.profileImageView);
startButton = (Button) findViewById(R.id.startButton);
profileImageView.setOnClickListener(this);
startButton.setOnClickListener(this);
}
示例15: setUpViews
import com.mikhaellopez.circularimageview.CircularImageView; //导入依赖的package包/类
private void setUpViews(){
ImageOminoAttivita = (ImageView) findViewById(R.id.omino_attivita);
TextKmAttivita = (TextView) findViewById(R.id.KmAttivita);
TextNomeFriend = (TextView) findViewById(R.id.nomeFriend);
TextScrittaPunti = (TextView) findViewById(R.id.scrittaPunti);
TextPunti = (TextView) findViewById(R.id.punti);
TextScrittaWinner = (TextView) findViewById(R.id.scrittaWinner);
TextWinner = (TextView) findViewById(R.id.winner);
TextScrittaLoser = (TextView) findViewById(R.id.scrittaLoser);
TextLoser = (TextView) findViewById(R.id.loser);
CircularImmagineFriend = (CircularImageView) findViewById(R.id.ImmagineFriend);
ok = (ImageButton)findViewById(R.id.m_letsgo);
}