當前位置: 首頁>>代碼示例>>Java>>正文


Java ContentLoadingProgressBar類代碼示例

本文整理匯總了Java中android.support.v4.widget.ContentLoadingProgressBar的典型用法代碼示例。如果您正苦於以下問題:Java ContentLoadingProgressBar類的具體用法?Java ContentLoadingProgressBar怎麽用?Java ContentLoadingProgressBar使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ContentLoadingProgressBar類屬於android.support.v4.widget包,在下文中一共展示了ContentLoadingProgressBar類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: onCreate

import android.support.v4.widget.ContentLoadingProgressBar; //導入依賴的package包/類
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_ascii_art);
    setSupportActionBar((Toolbar) findViewById(R.id.toolbar));
    setTitle(R.string.ascii_art);
    getSupportActionBar().setDisplayHomeAsUpEnabled(true);

    mRecyclerView = (RecyclerView) findViewById(R.id.recycle_view);
    mRecyclerView.setHasFixedSize(true);
    mRecyclerView.setLayoutManager(new LinearLayoutManager(this));
    mAdapter = new ImageAsciiAdapter(this);
    mRecyclerView.setAdapter(mAdapter);


    mProgressBar = (ContentLoadingProgressBar) findViewById(R.id.progress_bar);
    mPresenter = new EmoticonPresenter(this, this);

    loadAdViewIfNeed();
}
 
開發者ID:tranleduy2000,項目名稱:ascii_generate,代碼行數:21,代碼來源:ImageAsciiActivity.java

示例2: initView

import android.support.v4.widget.ContentLoadingProgressBar; //導入依賴的package包/類
private void initView() {
    mSelectedApplicationInfos = new HashSet<>();
    mLoadingProgressBar = (ContentLoadingProgressBar) findViewById(R.id.loading);

    mAppListView = (RecyclerView) findViewById(R.id.app_list);

    mLoadingProgressBar.show();
    final Handler handler = new Handler();
    new Thread(new Runnable() {
        @Override
        public void run() {
            queryFilterAppInfo();
            querySelectedApp();
            handler.post(new Runnable() {
                @Override
                public void run() {
                    mLoadingProgressBar.hide();
                    initAppList();
                    mAppListView.setVisibility(View.VISIBLE);
                }
            });
        }
    }).start();
}
 
開發者ID:l465659833,項目名稱:Bigbang,代碼行數:25,代碼來源:FloatViewWhiteListActivity.java

示例3: onCreate

import android.support.v4.widget.ContentLoadingProgressBar; //導入依賴的package包/類
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    //WikiEntry feature component scope start here
    ((CleanArchApp)getApplication()).buildWikiEntryComponent();

    setContentView(R.layout.activity_main);

    title = (EditText) findViewById(R.id.entryTitle);
    TextView extract = (TextView) findViewById(R.id.entryDetails);
    Button submitButton = (Button) findViewById(R.id.submitButton);
    submitButton.setOnClickListener(submitButtonOnClickListener);

    progressBar = (ContentLoadingProgressBar) findViewById(R.id.progressBar);

    wikiEntryViewModel = ViewModelProviders.of(this).get(WikiEntryViewModel.class);
    wikiEntryViewModel.getWikiEntry().observe(this, wikiEntry -> {

        Log.d(TAG, "received update for wikiEntry");
        extract.setText(wikiEntry.getExtract());
        progressBar.hide();
    });
}
 
開發者ID:nareshidiga,項目名稱:Android-CleanArchitecture-Java,代碼行數:25,代碼來源:WikiEntryActivity.java

示例4: assignViews

import android.support.v4.widget.ContentLoadingProgressBar; //導入依賴的package包/類
@Override protected void assignViews(View itemView) {
  emptyReviewsLayout = itemView.findViewById(R.id.empty_reviews_layout);
  ratingLayout = itemView.findViewById(R.id.rating_layout);
  commentsLayout = itemView.findViewById(R.id.comments_layout);

  usersVotedTextView = (TextView) itemView.findViewById(R.id.users_voted);
  emptyReviewTextView = (TextView) itemView.findViewById(R.id.empty_review_text);
  ratingValue = (TextView) itemView.findViewById(R.id.rating_value);
  ratingBar = (RatingBar) itemView.findViewById(R.id.rating_bar);
  rateThisButton = (Button) itemView.findViewById(R.id.rate_this_button);
  rateThisButtonLarge = (Button) itemView.findViewById(R.id.rate_this_button2);
  readAllButton = (Button) itemView.findViewById(R.id.read_all_button);

  topReviewsList = (RecyclerView) itemView.findViewById(R.id.top_comments_list);
  topReviewsProgress =
      (ContentLoadingProgressBar) itemView.findViewById(R.id.top_comments_progress);
}
 
開發者ID:Aptoide,項目名稱:aptoide-client-v8,代碼行數:18,代碼來源:AppViewRateAndReviewsWidget.java

示例5: onFinishInflate

import android.support.v4.widget.ContentLoadingProgressBar; //導入依賴的package包/類
protected final void onFinishInflate()
{
  super.onFinishInflate();
  this.a = ((Switch)findViewById(ehr.R));
  this.c = findViewById(ehr.S);
  this.b = ((Switch)findViewById(ehr.T));
  this.d = ((TextView)findViewById(ehr.U));
  this.e = ((ContentLoadingProgressBar)findViewById(ehr.M));
  String str1 = efj.a(getContext(), "plus_profile_tab", "https://support.google.com/plus/?hl=%locale%").toString();
  String str2 = getContext().getString(aw.A, new Object[] { str1 });
  if (efj.aaz == null) {
    efj.aaz = new lwi();
  }
  SpannableStringBuilder localSpannableStringBuilder = new SpannableStringBuilder(Html.fromHtml(str2, null, efj.aaz));
  lxw.a(localSpannableStringBuilder, null, false);
  this.d.setText(localSpannableStringBuilder);
  this.d.setMovementMethod(lxy.a());
  this.f = findViewById(ehr.Q);
  this.a.setOnClickListener(new gxn(this));
  this.b.setOnClickListener(new gxn(this));
  this.g = ((dij)mbb.a(getContext(), dij.class));
}
 
開發者ID:ChiangC,項目名稱:FMTech,代碼行數:23,代碼來源:ProfileEditorFlairsView.java

示例6: onCreate

import android.support.v4.widget.ContentLoadingProgressBar; //導入依賴的package包/類
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.content_loading_progressbar);

    mBar = (ContentLoadingProgressBar)findViewById(R.id.progressbar);
    mShowButton = (Button)findViewById(R.id.show);
    mShowButton.setOnClickListener(this);
    mHideButton = (Button)findViewById(R.id.hide);
    mHideButton.setOnClickListener(this);

    mShowText = (TextView)findViewById(R.id.show_text);
    mShowTextDone = (TextView)findViewById(R.id.show_text_done);
    mHideText = (TextView)findViewById(R.id.hide_text);
    mHideTextDone = (TextView)findViewById(R.id.hide_text_done);

    mLastVisibility = mBar.getVisibility();

    mBar.getViewTreeObserver().addOnGlobalLayoutListener(this);
}
 
開發者ID:benhysell,項目名稱:V.FlyoutTest,代碼行數:21,代碼來源:ContentLoadingProgressBarActivity.java

示例7: onCreate

import android.support.v4.widget.ContentLoadingProgressBar; //導入依賴的package包/類
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_emoticons);
    setSupportActionBar((Toolbar) findViewById(R.id.toolbar));
    setTitle(R.string.emoticons);
    getSupportActionBar().setDisplayHomeAsUpEnabled(true);

    mHeader = (RecyclerView) findViewById(R.id.recycle_view_header);
    mHeader.setHasFixedSize(true);
    mHeader.setLayoutManager(new LinearLayoutManager(this));
    mAdapter = new HeaderAdapter(this);
    mHeader.setAdapter(mAdapter);
    mHeader.addItemDecoration(new DividerItemDecoration(this, DividerItemDecoration.VERTICAL));
    mAdapter.setListener(this);

    mProgressBar = (ContentLoadingProgressBar) findViewById(R.id.progress_bar);
    mProgressBar.hide();

    mContent = (RecyclerView) findViewById(R.id.recycle_view_content);
    mContent.setHasFixedSize(true);
    mContent.setLayoutManager(new GridLayoutManager(this, 1));
    mContentAdapter = new EmoticonsAdapter(this);
    mContent.setAdapter(mContentAdapter);
    loadAdViewIfNeed();

    SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(this);
    String lastPath = pref.getString("last_path", "");
    if (!lastPath.isEmpty()) {
        onHeaderClick(lastPath);
    }
}
 
開發者ID:tranleduy2000,項目名稱:ascii_generate,代碼行數:33,代碼來源:EmoticonsActivity.java

示例8: bindViews

import android.support.v4.widget.ContentLoadingProgressBar; //導入依賴的package包/類
@Override public void bindViews(View view) {
  btn_status = (Button) view.findViewById(R.id.btn_status);
  tv_key = (TextView) view.findViewById(R.id.tv_key);
  progress = (ContentLoadingProgressBar) view.findViewById(R.id.progress);
  checkBox = (AppCompatCheckBox) view.findViewById(R.id.checkbox);
  rootView = view;
}
 
開發者ID:MaYunFei,項目名稱:RxJavaDownLoadMultipleFile,代碼行數:8,代碼來源:DownLoadItem.java

示例9: StandViewHolder

import android.support.v4.widget.ContentLoadingProgressBar; //導入依賴的package包/類
public StandViewHolder(View itemView) {
    super(itemView);
    progressBar = (ContentLoadingProgressBar) itemView.findViewById(R.id.progress_bar);
    container = itemView.findViewById(R.id.ll_container);
    header = (ImageView) itemView.findViewById(R.id.iv_header);
    logo = (ImageView) itemView.findViewById(R.id.iv_logo);
    title = (TextView) itemView.findViewById(R.id.tv_title);
}
 
開發者ID:bvblogic,項目名稱:Mediator_Android,代碼行數:9,代碼來源:PlanStandsListAdapter.java

示例10: onViewCreated

import android.support.v4.widget.ContentLoadingProgressBar; //導入依賴的package包/類
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
    // Toolbar
    Toolbar toolbar = (Toolbar) view.findViewById(R.id.toolbar);
    AppCompatActivity activity = (AppCompatActivity) getActivity();
    activity.setSupportActionBar(toolbar);
    if (activity.getSupportActionBar() != null) {
        activity.getSupportActionBar().setDisplayHomeAsUpEnabled(true);
        activity.getSupportActionBar().setTitle(R.string.results_view_toolbar_title);
        activity.getSupportActionBar().setSubtitle(searchQuery);
    }
    setHasOptionsMenu(true);

    // Progressbar
    progressBar = (ContentLoadingProgressBar) view.findViewById(R.id.search_progress_bar);

    // Recycler view
    recyclerView = (RecyclerView) view.findViewById(R.id.search_recycler_view);
    LinearLayoutManager layoutManager = new LinearLayoutManager(getContext());
    recyclerView.setLayoutManager(layoutManager);
    DividerItemDecoration dividerItemDecoration = new DividerItemDecoration(recyclerView.getContext(),
            layoutManager.getOrientation());
    recyclerView.addItemDecoration(dividerItemDecoration);
    recyclerView.setAdapter(adapter);

    // We need to run the AsyncTask here instead of onCreate so we know that ProgressBar has been
    // instantiated. If we run it on onCreate the AsyncTask will try to show a ProgressBar on a
    // possible non-existing ProgressBar and crash.
    task = new SearchDatabaseTask(listener, helper, searchQuery, searchType).execute();
}
 
開發者ID:luke-c,項目名稱:Ikue,代碼行數:31,代碼來源:SearchResultFragment.java

示例11: onCreateView

import android.support.v4.widget.ContentLoadingProgressBar; //導入依賴的package包/類
@Override
public View onCreateView(final LayoutInflater inflater,
                         final ViewGroup container,
                         final Bundle savedInstanceState) {
  initDagger();
  View rootView = inflater.inflate(R.layout.fragment_list, container, false);
  rv = (RecyclerView) rootView.findViewById(R.id.recycler_view);
  pb = (ContentLoadingProgressBar) rootView.findViewById(R.id.content_loading_progress_bar);

  gotHouseListPresenter.setView(this);
  gotHouseListPresenter.init();
  return rootView;
}
 
開發者ID:tonilopezmr,項目名稱:Game-of-Thrones,代碼行數:14,代碼來源:HousesListFragment.java

示例12: onCreateView

import android.support.v4.widget.ContentLoadingProgressBar; //導入依賴的package包/類
@Override
public View onCreateView(final LayoutInflater inflater,
                         final ViewGroup container,
                         final Bundle savedInstanceState) {
  initDagger();

  View rootView = inflater.inflate(R.layout.fragment_list, container, false);
  rv = (RecyclerView) rootView.findViewById(R.id.recycler_view);
  pb = (ContentLoadingProgressBar) rootView.findViewById(R.id.content_loading_progress_bar);

  characterListByHousePresenter.setView(this);
  characterListByHousePresenter.init(house);
  return rootView;
}
 
開發者ID:tonilopezmr,項目名稱:Game-of-Thrones,代碼行數:15,代碼來源:CharacterListByHouseFragment.java

示例13: onCreateView

import android.support.v4.widget.ContentLoadingProgressBar; //導入依賴的package包/類
@Override
public View onCreateView(final LayoutInflater inflater,
                         final ViewGroup container,
                         final Bundle savedInstanceState) {
  initDagger();

  View rootView = inflater.inflate(R.layout.fragment_list, container, false);
  recyclerView = (RecyclerView) rootView.findViewById(R.id.recycler_view);
  progressBar = (ContentLoadingProgressBar) rootView.findViewById(R.id.content_loading_progress_bar);

  gotCharacterListPresenter.setView(this);
  gotCharacterListPresenter.init();
  return rootView;
}
 
開發者ID:tonilopezmr,項目名稱:Game-of-Thrones,代碼行數:15,代碼來源:CharacterListFragment.java

示例14: onCreateView

import android.support.v4.widget.ContentLoadingProgressBar; //導入依賴的package包/類
@Nullable
@Override
public View onCreateView(LayoutInflater inflater,
                         @Nullable ViewGroup container,
                         @Nullable Bundle savedInstanceState) {
  View rootView = inflater.inflate(R.layout.fragment_list, container, false);

  recyclerView = (RecyclerView) rootView.findViewById(R.id.recycler_view);
  progressBar = (ContentLoadingProgressBar) rootView.findViewById(R.id.content_loading_progress_bar);

  initUi();
  return rootView;
}
 
開發者ID:tonilopezmr,項目名稱:Game-of-Thrones,代碼行數:14,代碼來源:UserListFragment.java

示例15: setProgressValue

import android.support.v4.widget.ContentLoadingProgressBar; //導入依賴的package包/類
@BindingAdapter("progressValue")
public static void setProgressValue(ContentLoadingProgressBar progressBar, int progressValue) {
    ObjectAnimator objectAnimator = ObjectAnimator.ofInt(progressBar, "progress", 0, progressValue);
    objectAnimator.setDuration(350);
    objectAnimator.setStartDelay(250);
    objectAnimator.start();
}
 
開發者ID:MLSDev,項目名稱:RecipeFinderJavaVersion,代碼行數:8,代碼來源:DataBinder.java


注:本文中的android.support.v4.widget.ContentLoadingProgressBar類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。