• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java CircularImageView类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.pkmmte.view.CircularImageView的典型用法代码示例。如果您正苦于以下问题:Java CircularImageView类的具体用法?Java CircularImageView怎么用?Java CircularImageView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



CircularImageView类属于com.pkmmte.view包,在下文中一共展示了CircularImageView类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: addResponse

import com.pkmmte.view.CircularImageView; //导入依赖的package包/类
private void addResponse(int layoutId, String username, String userId, String message) {
    LayoutInflater inflater = LayoutInflater.from(this);
    View layout = inflater.inflate(layoutId, null);

    CircularImageView imageView = (CircularImageView) layout.findViewById(R.id.chat_user_img);
    FacebookManager.fillWithUserPic(userId, imageView, getApplicationContext());

    TextView nameTextView = (TextView) layout.findViewById(R.id.chat_user_name);
    nameTextView.setText(username + ":");

    TextView msgTextView = (TextView) layout.findViewById(R.id.chat_user_msg);
    msgTextView.setText(message);

    runOnUiThread(() -> mMessagesLayout.addView(layout));
    runOnUiThread(this::scrollToLast);
}
 
开发者ID:Xero-Hige,项目名称:SplitApp,代码行数:17,代码来源:ChatSessionActivity.java


示例2: addResponse

import com.pkmmte.view.CircularImageView; //导入依赖的package包/类
private void addResponse(int layoutId, String username, String userId, String message) {
    LayoutInflater inflater = LayoutInflater.from(this);
    View layout = inflater.inflate(layoutId, null);

    CircularImageView imageView = (CircularImageView) layout.findViewById(R.id.chat_user_img);
    FacebookManager.fillWithUserPic(userId, imageView, getApplicationContext());

    TextView nameTextView = (TextView) layout.findViewById(R.id.chat_user_name);
    nameTextView.setText(username + "");

    TextView msgTextView = (TextView) layout.findViewById(R.id.chat_user_msg);
    msgTextView.setText(message);

    runOnUiThread(() -> mMessagesLayout.addView(layout));
    runOnUiThread(this::scrollToLast);
}
 
开发者ID:Xero-Hige,项目名称:SplitApp,代码行数:17,代码来源:ChatRoomActivity.java


示例3: getView

import com.pkmmte.view.CircularImageView; //导入依赖的package包/类
@Override
public View getView(int position, View convertView, ViewGroup parent) {
    ViewHolder holder;

    if (convertView == null) {
        // brand new
        convertView = LayoutInflater.from(mContext).inflate(R.layout.user_list_template, null);
        holder = new ViewHolder();

        holder.userName = (TextView) convertView.findViewById(R.id.user_name);
        holder.userAvatar = (CircularImageView) convertView.findViewById(R.id.user_avatar);


        convertView.setTag(holder);
    }
    else {
        holder = (ViewHolder) convertView.getTag();
    }

    holder.userAvatar.setMaxWidth(100);
    holder.userAvatar.setMaxHeight(100);

    //holder.userAvatar.setImageResource(R.drawable.image_missing);
    imageLoader.displayImage(mUserAvatar.get(position), holder.userAvatar, options);
    holder.userName.setText(mUserNames.get(position));

    return convertView;
}
 
开发者ID:JamesJose7,项目名称:GithubProject,代码行数:29,代码来源:UserListAdapter.java


示例4: addNavHeader

import com.pkmmte.view.CircularImageView; //导入依赖的package包/类
private void addNavHeader(NavigationView navigationView) {
    View header = navigationView.getHeaderView(0);
    CircularImageView userPic = (CircularImageView) header.findViewById(R.id.user_pic);
    Profile profile = Profile.getCurrentProfile();

    FacebookManager.fillWithUserPic(profile.getId(), userPic, getApplicationContext());
    TextView username = (TextView) header.findViewById(R.id.user_id);

    username.setText(profile.getName());

    ImageView background = (ImageView) header.findViewById(R.id.nav_background);
    FacebookManager.fillWithUserCover(profile.getId(), background, getApplicationContext());
}
 
开发者ID:Xero-Hige,项目名称:SplitApp,代码行数:14,代码来源:MainActivity.java


示例5: getView

import com.pkmmte.view.CircularImageView; //导入依赖的package包/类
@Override
public View getView(final int position, final View convertView, final ViewGroup parent) {
    View view = convertView;
    if (view == null) {
        view = LayoutInflater.from(getContext()).inflate(R.layout.list_item, null);
    }
    final CircularImageView itemRound = (CircularImageView) view.findViewById(R.id.item_round);
    FileManagerImageLoader.getInstance().addTask(getItem(position), itemRound, null, 48, 48, false);
    return view;
}
 
开发者ID:dodola,项目名称:BubbleCloudView,代码行数:11,代码来源:TestActivity.java


示例6: setFirstLineTextLayout

import com.pkmmte.view.CircularImageView; //导入依赖的package包/类
private void setFirstLineTextLayout (ContactsViewHolder vh) {
    vh.firstLetter.setText("Set up my profile");
    vh.firstLetter.setTextColor(Color.parseColor("#000000"));
    vh.firstLetter.setTextSize(18);
    vh.contactName.setText("");
    vh.thumbnail.setVisibility(CircularImageView.INVISIBLE);
}
 
开发者ID:edsilfer,项目名称:sticky-index,代码行数:8,代码来源:RecyclerViewAdapter.java


示例7: getView

import com.pkmmte.view.CircularImageView; //导入依赖的package包/类
@Override
public View getView(int position, View convertView, ViewGroup parent)
{
	final Author mAuthor = authorList.get(position);
	ViewHolder holder;

	if (convertView == null) {
		LayoutInflater mInflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		convertView = mInflater.inflate(R.layout.fragment_about_author, parent, false);

		holder = new ViewHolder();
		holder.imgAvatar = (CircularImageView) convertView.findViewById(R.id.imgAvatar);
		holder.txtName = (TextView) convertView.findViewById(R.id.txtName);
		holder.txtDescription = (TextView) convertView.findViewById(R.id.txtDescription);

		convertView.setTag(holder);
	}
	else {
		holder = (ViewHolder) convertView.getTag();
	}

	Picasso.with(mContext).load(mAuthor.getAvatar()).placeholder(R.drawable.dev_avatar).error(R.drawable.dev_avatar).into(holder.imgAvatar);
	holder.txtName.setText(mAuthor.getName());
	holder.txtDescription.setText(mAuthor.getDescription());

	return convertView;
}
 
开发者ID:Pkmmte,项目名称:TechDissected,代码行数:28,代码来源:AuthorAdapter.java


示例8: updateDisplay

import com.pkmmte.view.CircularImageView; //导入依赖的package包/类
private void updateDisplay() {
    //User data views
    TextView name = (TextView) findViewById(R.id.selected_user_real_name);
    TextView userName = (TextView) findViewById(R.id.selected_user_name);
    TextView creationDate = (TextView) findViewById(R.id.selected_user_creation_date);
    CircularImageView userAvatar = (CircularImageView) findViewById(R.id.selected_user_avatar);

    if (!mGitHubUser.getName().equals("null"))
        name.setText(mGitHubUser.getName());
    else
        name.setVisibility(View.GONE);

    userName.setText(mGitHubUser.getUserName());

    String dateText = "Joined on " + formatDate(mGitHubUser.getCreationDate());
    creationDate.setText(dateText);

    imageLoader.displayImage(mGitHubUser.getAvatarUrl(), userAvatar, options);

    //Repositories data
    Repository[] repos = new Repository[mUserRepos.getRepositories().size()];
    repos = mUserRepos.getRepositories().toArray(repos);
    RepositoriesAdapter adapter = new RepositoriesAdapter(repos);

    //RepositoriesAdapter repositoriesAdapter = new RepositoriesAdapter(this, mUserRepos.getRepositories());
    mReposListView.setAdapter(adapter);

    RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(this);
    mReposListView.setLayoutManager(layoutManager);

    /*mReposListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
        @Override
        public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
            Repository selectedRepo = mUserRepos.getRepositories().get(position);
            Intent intent = new Intent(MainActivity.this, RepoActivity.class);
            intent.putExtra(SELECTED_REPO, selectedRepo.getRepoUrl());
            startActivity(intent);
        }
    });*/

    //let the user know when a user has no repositories
    if (mUserRepos.getRepositories().size() == 0) {
        mNoReposFound.setVisibility(View.VISIBLE);
    } else {
        mNoReposFound.setVisibility(View.INVISIBLE);
    }
}
 
开发者ID:JamesJose7,项目名称:GithubProject,代码行数:48,代码来源:MainActivity.java


示例9: addFriendLayout

import com.pkmmte.view.CircularImageView; //导入依赖的package包/类
private void addFriendLayout(LinearLayout friends, LayoutInflater inflater, String text, String userId) {

        View friendLayout = inflater.inflate(R.layout.friend_see_layout, null);

        TextView name = (TextView) friendLayout.findViewById(R.id.friend_name);

        name.setText(text);


        CircularImageView image = (CircularImageView) friendLayout.findViewById(R.id.friend_chooser_pic);
        FacebookManager.fillWithUserPic(userId, image, getApplicationContext());

        ImageView background = (ImageView) friendLayout.findViewById(R.id.friend_background);
        FacebookManager.fillWithUserCover(userId, background, getApplicationContext());

        friendLayout.setOnClickListener(v -> {
            if (coming_from_task) {

                Intent resultIntent = new Intent();
                resultIntent.putExtra(NewTaskDialogFragment.FACEBOOK_ID, userId);
                resultIntent.putExtra(NewTaskDialogFragment.NAME_FRIEND , text);
                setResult(Activity.RESULT_OK, resultIntent);
                NewTaskDialogFragment.facebook_id = userId;
                NewTaskDialogFragment.name_friend = text;;
                setResult(Activity.RESULT_OK, resultIntent);
                finish();

            } else {
                Utility.showMessage(text, Utility.getViewgroup(this));
                Intent chat = new Intent(this, ChatSessionActivity.class);
                chat.putExtra(ChatSessionActivity.EXTRA_FRIEND_ID, userId);
                chat.putExtra(ChatSessionActivity.EXTRA_FRIEND_NAME, text);
                startActivity(chat);
            }
            //finish();
        });

        SplitAppLogger.writeLog(1, "En la lista hay " + lista.size());
        if (lista.contains(userId)) {
            friends.addView(friendLayout);
            SplitAppLogger.writeLog(1, "Contengo pero no agregue");
        }
    }
 
开发者ID:Xero-Hige,项目名称:SplitApp,代码行数:44,代码来源:AttendesActivity.java


示例10: addTaskStatus

import com.pkmmte.view.CircularImageView; //导入依赖的package包/类
private void addTaskStatus() {

        LinearLayout templates = (LinearLayout) findViewById(R.id.all_tasks_list);
        LayoutInflater inflater = getLayoutInflater();

        ServerHandler.executeGet(id_event, ServerHandler.EVENT_DETAIL, Profile.getCurrentProfile().getId(), "", result -> {
            //onSucces.execute(result);
            if (result == null) {
                //onError.execute(null);
            } else try {
                JSONObject eventJson = result.getJSONObject("data");

                JSONArray tasks = eventJson.getJSONArray("tasks");

                SplitAppLogger.writeLog(1, tasks.toString());

                SplitAppLogger.writeLog(1, "Cant de elementos: " + tasks.length());
                for (int i = 0; i < tasks.length(); i++) {
                    View templateItem = inflater.inflate(R.layout.task_status_layout, null);

                    JSONObject task = tasks.getJSONObject(i);
                    String name, fb_id;
                    boolean done_bool;
                    Double cost;

                    name = task.getString("name");
                    fb_id = task.getString("assignee");
                    done_bool = task.getBoolean("done");
                    cost = task.getDouble("cost");

                    SplitAppLogger.writeLog(SplitAppLogger.DEBG, "Nombre: " + name);
                    TextView text = (TextView) templateItem.findViewById(R.id.task_name);
                    text.setText(name);

                    TextView date = (TextView) templateItem.findViewById(R.id.task_status);
                    if (done_bool) {
                        date.setText("Hecho");
                    } else {
                        date.setText("Pendiente");
                    }

                    CircularImageView profile = (CircularImageView) templateItem.findViewById(R.id.task_profile_pic);
                    if (fb_id != null) {
                        FacebookManager.fillWithUserPic(fb_id, profile, getApplicationContext());
                    }
                    templates.addView(templateItem);

                }


            } catch (JSONException e) {
                e.printStackTrace();
                SplitAppLogger.writeLog(1, "Agarre excepcion aca");
            }
        });
    }
 
开发者ID:Xero-Hige,项目名称:SplitApp,代码行数:57,代码来源:EventDescriptionActivity.java


示例11: onCreate

import com.pkmmte.view.CircularImageView; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    FacebookManager.checkInit(this);

    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_friend_chooser);

    LinearLayout friends = (LinearLayout) findViewById(R.id.friends_container);
    LayoutInflater inflater = getLayoutInflater();

    Intent intent = getIntent();
    from_current_event = intent.getBooleanExtra(FROM_CURRENT_EVENT,false);

    if (from_current_event) {
        attendeesID = intent.getStringArrayListExtra(ALREADY_INVITED);
    }

    FacebookManager.executeWithFriendlist(Profile.getCurrentProfile().getId(), (names, ids) ->
        {
            for (int i = 0; i < names.size(); i++) {
                View friendLayout = inflater.inflate(R.layout.friend_choose_layout, null);
                idView.put(ids.get(i), friendLayout);
                if (from_current_event) {
                    if (attendeesID.contains(ids.get(i))) {
                        friendLayout.setAlpha(0.5f);
                    }
                }

                TextView name = (TextView) friendLayout.findViewById(R.id.friend_name);
                name.setText(names.get(i));

                CircularImageView image = (CircularImageView) friendLayout.findViewById(R.id.friend_chooser_pic);
                FacebookManager.fillWithUserPic(ids.get(i), image, getApplicationContext());

                ImageView background = (ImageView) friendLayout.findViewById(R.id.friend_background);
                FacebookManager.fillWithUserCover(ids.get(i), background, getApplicationContext());

                final int finalI = i;
                friendLayout.setOnClickListener(v -> {
                    if (attendeesID.contains(ids.get(finalI)) || inviteesID.contains(ids.get(finalI))) // No puedo seleccionar dos veces al mismo
                        return;
                    DialogFragment newFragment = new SendInviteConfirmationFragment();
                    Bundle args = new Bundle();
                    args.putString("name", names.get(finalI));
                    args.putString("facebookId", ids.get(finalI));
                    newFragment.setArguments(args);
                    newFragment.show(getSupportFragmentManager(), "sarasa");
                    //finish();
                });

                friends.addView(friendLayout);
            }
        }
    );
}
 
开发者ID:Xero-Hige,项目名称:SplitApp,代码行数:56,代码来源:FriendChooserActivity.java


示例12: onCreate

import com.pkmmte.view.CircularImageView; //导入依赖的package包/类
@Override
    protected void onCreate(Bundle savedInstanceState) {

        FacebookManager.checkInit(this);

        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_event_invitation_list);

        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);

/*
        DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
        ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
                this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
        drawer.setDrawerListener(toggle);
        toggle.syncState();

        NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
        navigationView.setNavigationItemSelectedListener(this);
        addNavHeader(navigationView);
*/

        LinearLayout invites = (LinearLayout) findViewById(R.id.invitations_container);

        LayoutInflater inflater = LayoutInflater.from(this);

        for (int i = 0; i < 1; i++) {
            View inviteeLayout = inflater.inflate(R.layout.event_invite_layout, null);

            TextView hostName = (TextView) inviteeLayout.findViewById(R.id.invite_host_name);
            hostName.setText("Te invito: Gaston Martinez");

            TextView eventName = (TextView) inviteeLayout.findViewById(R.id.invite_event_name);
            eventName.setText("Asado fiubenese");

            CircularImageView image = (CircularImageView) inviteeLayout.findViewById(R.id.invite_host_pic);
            FacebookManager.fillWithUserPic(Profile.getCurrentProfile().getId(), image, getApplicationContext());
            Button accept = (Button) inviteeLayout.findViewById(R.id.invite_accept_button);
            final int finalI = i;
            accept.setOnClickListener(v -> {
                Utility.showMessage("Aceptaste unirte al evento: Asado fiubenese", Utility.getViewgroup(this));
                inviteeLayout.setVisibility(View.GONE);
            });

            Button decline = (Button) inviteeLayout.findViewById(R.id.invite_reject_button);
            decline.setOnClickListener(v -> {
                Utility.showMessage("Rechazaste unirte al evento: Asado fiubenese", Utility.getViewgroup(this));
                inviteeLayout.setVisibility(View.GONE);
            });

            invites.addView(inviteeLayout);
        }
    }
 
开发者ID:Xero-Hige,项目名称:SplitApp,代码行数:55,代码来源:EventInvitationList.java


示例13: ViewHolder

import com.pkmmte.view.CircularImageView; //导入依赖的package包/类
public ViewHolder(View v) {
    super(v);
    mTextView = (TextView) v.findViewById(R.id.nameText);
    userImage = (CircularImageView)v.findViewById(R.id.userImage);
    timeStamp = (RelativeTimeTextView)v.findViewById(R.id.timestamp);
    author = (TextView)v.findViewById(R.id.author);
     //Or just use Butterknife!
    quote = (TextView) v.findViewById(R.id.quoteText);
    convertView = v;



    Typeface typeLight = Typeface.createFromAsset(con.getAssets(),"Geomanist-Regular.otf");
    mTextView.setTypeface(typeLight);
    author.setTypeface(typeLight);
    author.setTypeface(typeLight);
    quote.setTypeface(typeLight);




}
 
开发者ID:CompetentGroove,项目名称:quoteit_android,代码行数:23,代码来源:MyAdapter.java


示例14: ContactsViewHolder

import com.pkmmte.view.CircularImageView; //导入依赖的package包/类
public ContactsViewHolder (View v) {
    super (v);
    firstLetter = (TextView) v.findViewById(R.id.contact_first_letter);
    contactName = (TextView) v.findViewById(R.id.contact_name);
    thumbnail = (CircularImageView) v.findViewById(R.id.contact_thumbnail);
}
 
开发者ID:edsilfer,项目名称:sticky-index,代码行数:7,代码来源:RecyclerViewAdapter.java


示例15: getView

import com.pkmmte.view.CircularImageView; //导入依赖的package包/类
@Override
public View getView(int position, View convertView, ViewGroup parent) {


    View view=null;

    if(convertView==null){


        LayoutInflater inflater= (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        view=inflater.inflate(R.layout.single_question_ui,parent,false);

    }else{

        view=convertView;

    }



    TextView tvQuestion = (TextView) view.findViewById(R.id.tv_question);
     tvQuestion.setText(setterGetterQuestionsList.get(position).getQuestion());





    user=(TextView) view.findViewById(R.id.display_user);
    time=(TextView)view.findViewById(R.id.display_time);
    count=(TextView)view.findViewById(R.id.display_count);
    image=(CircularImageView)view.findViewById(R.id.user_img);

    questionsUser= setterGetterQuestionsList.get(position).getUser();
    questionTime=setterGetterQuestionsList.get(position).getTime();
    questionCount=setterGetterQuestionsList.get(position).answerCount()+" Answer";
    questionUserImage=setterGetterQuestionsList.get(position).getImageUrl();

    user.setText(questionsUser);
    count.setText(questionCount);
    time.setText(questionTime);

    Picasso.with(context).load(questionUserImage).placeholder(R.drawable.user).error(R.drawable.user).into(image);


    return view;
}
 
开发者ID:salRoid,项目名称:Clasick,代码行数:47,代码来源:QuestionsListAdapter.java



注:本文中的com.pkmmte.view.CircularImageView类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ASTFactory类代码示例发布时间:2022-05-22
下一篇:
Java ClientCallback类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap