本文整理汇总了Java中com.github.rahatarmanahmed.cpv.CircularProgressView类的典型用法代码示例。如果您正苦于以下问题:Java CircularProgressView类的具体用法?Java CircularProgressView怎么用?Java CircularProgressView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CircularProgressView类属于com.github.rahatarmanahmed.cpv包,在下文中一共展示了CircularProgressView类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onCreateView
import com.github.rahatarmanahmed.cpv.CircularProgressView; //导入依赖的package包/类
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
super.onCreateView(inflater, container, savedInstanceState);
baseInflateFragment(inflater, R.layout.fragment_profile);
ViewStub viewStub = (ViewStub) findViewById(R.id.toolbar_content);
viewStub.setLayoutResource(R.layout.toolbar_profile);
viewStub.inflate();
nick = (TextView) findViewById(R.id.profile_nick);
group = (TextView) findViewById(R.id.profile_group);
sign = (TextView) findViewById(R.id.profile_sign);
avatar = (ImageView) findViewById(R.id.profile_avatar);
recyclerView = (RecyclerView) findViewById(R.id.profile_list);
progressView = (CircularProgressView) findViewById(R.id.profile_progress);
AppBarLayout.LayoutParams params = (AppBarLayout.LayoutParams) toolbarLayout.getLayoutParams();
params.setScrollFlags(AppBarLayout.LayoutParams.SCROLL_FLAG_SCROLL | AppBarLayout.LayoutParams.SCROLL_FLAG_ENTER_ALWAYS_COLLAPSED);
toolbarLayout.setLayoutParams(params);
return view;
}
开发者ID:RadiationX,项目名称:ForPDA,代码行数:21,代码来源:ProfileFragment.java
示例2: onCreateView
import com.github.rahatarmanahmed.cpv.CircularProgressView; //导入依赖的package包/类
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
super.onCreateView(inflater, container, savedInstanceState);
baseInflateFragment(inflater, R.layout.fragment_auth);
nick = (EditText) findViewById(R.id.auth_login);
password = (EditText) findViewById(R.id.auth_password);
captcha = (EditText) findViewById(R.id.auth_captcha);
captchaImage = (ImageView) findViewById(R.id.captchaImage);
captchaProgress = (ProgressBar) findViewById(R.id.captcha_progress);
avatar = (ImageView) findViewById(R.id.auth_avatar);
mainForm = (LinearLayout) findViewById(R.id.auth_main_form);
complete = (RelativeLayout) findViewById(R.id.auth_complete);
completeText = (TextView) findViewById(R.id.auth_complete_text);
progressView = (CircularProgressView) findViewById(R.id.auth_progress);
loginProgress = (ProgressBar) findViewById(R.id.login_progress);
hiddenAuth = (CheckBox) findViewById(R.id.auth_hidden);
sendButton = (Button) findViewById(R.id.auth_send);
skipButton = (Button) findViewById(R.id.auth_skip);
return view;
}
开发者ID:RadiationX,项目名称:ForPDA,代码行数:22,代码来源:AuthFragment.java
示例3: ViewHolder
import com.github.rahatarmanahmed.cpv.CircularProgressView; //导入依赖的package包/类
public ViewHolder(View view) {
super(view);
view.setOnClickListener(this);
imageView = (ImageView) view.findViewById(R.id.drawer_item_icon);
radioButton = (RadioButton) view.findViewById(R.id.radio_button);
overlay = view.findViewById(R.id.overlay_and_text);
progressBar = (CircularProgressView) view.findViewById(R.id.progress_bar);
reload = (ImageButton) view.findViewById(R.id.reload);
name = (TextView) view.findViewById(R.id.file_name);
attributes = (TextView) view.findViewById(R.id.file_attributes);
description = (LinearLayout) view.findViewById(R.id.file_description);
reload.setOnClickListener(v -> {
if (reloadOnClickListener != null) {
reloadOnClickListener.onReloadClick(items.get(getLayoutPosition()));
}
});
}
开发者ID:RadiationX,项目名称:ForPDA,代码行数:19,代码来源:AttachmentAdapter.java
示例4: onCreateView
import com.github.rahatarmanahmed.cpv.CircularProgressView; //导入依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
isBound = false;
RadioActivity.log("RadioFragment.onCreateView");
View view = inflater.inflate(R.layout.fragment_radio, container, false);
mainRadioLayout = (RelativeLayout) view.findViewById(R.id.main_radio_layout);
disconnectedLayout = (RelativeLayout) view.findViewById(R.id.disconnected_layout);
songTextView = (TextView) view.findViewById(R.id.player_song);
artistTextView = (TextView) view.findViewById(R.id.player_artist);
showNameTextView = (TextView) view.findViewById(R.id.show_name);
showDJTextView = (TextView) view.findViewById(R.id.show_dj);
loadingAnim = (CircularProgressView) view.findViewById(R.id.loading_anim);
albumArtImageView = (ImageView) view.findViewById(R.id.largeAlbumArt);
playPauseButton = ((ImageButton)view.findViewById(R.id.playPauseButton));
playPauseButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
RadioActivity.log("RadioFragment.playPauseButton.onClick");
if(isBound)
{
if(radioService.isPlaying())
{
radioService.pause();
playPauseButton.setImageDrawable(getResources().getDrawable(R.drawable.ic_play_arrow_light));
}
else
{
radioService.play();
playPauseButton.setImageDrawable(getResources().getDrawable(R.drawable.ic_pause_light));
}
}
}
});
return view;
}
开发者ID:Radio-UTD,项目名称:Radio-UTD,代码行数:42,代码来源:RadioFragment.java
注:本文中的com.github.rahatarmanahmed.cpv.CircularProgressView类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论