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


Java ProgressWheel類代碼示例

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


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

示例1: DocumentView

import com.pnikosis.materialishprogress.ProgressWheel; //導入依賴的package包/類
public DocumentView(@NonNull Context context, @Nullable AttributeSet attrs, @AttrRes int defStyleAttr) {
  super(context, attrs, defStyleAttr);
  inflate(context, R.layout.document_view, this);

  this.container          =                   findViewById(R.id.document_container);
  this.controlToggle      = (AnimatingToggle) findViewById(R.id.control_toggle);
  this.downloadButton     = (ImageView)       findViewById(R.id.download);
  this.downloadProgress   = (ProgressWheel)   findViewById(R.id.download_progress);
  this.fileName           = (TextView)        findViewById(R.id.file_name);
  this.fileSize           = (TextView)        findViewById(R.id.file_size);
  this.documentBackground =                   findViewById(R.id.document_background);
  this.document           = (TextView)        findViewById(R.id.document);

  this.document.getBackground().mutate();
  this.documentBackground.getBackground().mutate();

  if (attrs != null) {
    TypedArray typedArray = context.getTheme().obtainStyledAttributes(attrs, R.styleable.DocumentView, 0, 0);
    setTint(typedArray.getColor(R.styleable.DocumentView_documentForegroundTintColor, Color.WHITE),
            typedArray.getColor(R.styleable.DocumentView_documentBackgroundTintColor, Color.WHITE));
    container.setBackgroundColor(typedArray.getColor(R.styleable.DocumentView_documentWidgetBackground, Color.TRANSPARENT));
    typedArray.recycle();
  }
}
 
開發者ID:CableIM,項目名稱:Cable-Android,代碼行數:25,代碼來源:DocumentView.java

示例2: assignViews

import com.pnikosis.materialishprogress.ProgressWheel; //導入依賴的package包/類
@Override
protected void assignViews() {
    super.assignViews();
    mListView = (ListView) findViewById(R.id.list);

    mReminders = new ArrayList<>();
    mAdapter = new RemindersAdapter(this, mReminders);
    mListView.setAdapter(mAdapter);

    mListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
        @Override
        public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
            ReminderDialog mDialog = new ReminderDialog();
            mDialog.setReminder(mReminders.get(position));
            mDialog.setDeleteListener(RemindersActivity.this);
            mDialog.setSaveListener(RemindersActivity.this);
            mDialog.show(getSupportFragmentManager(), "ReminderDialog");
        }
    });

    mLoadingIndicator = (ProgressWheel) findViewById(R.id.loading_indicator);
    mNoRemindersText = (TextView) findViewById(android.R.id.text1);
}
 
開發者ID:timothymiko,項目名稱:narrate-android,代碼行數:24,代碼來源:RemindersActivity.java

示例3: onCreate

import com.pnikosis.materialishprogress.ProgressWheel; //導入依賴的package包/類
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_user_search);

    getUserList();

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

    applicationContext = this.getApplicationContext();

    searchEt = (AutoCompleteTextView) findViewById(R.id.usersearchtext);
    mRecyclerView = (RecyclerView) findViewById(R.id.usersearchrecyclerview);
    mRecyclerView.setVisibility(View.GONE);

    progressWheel = (ProgressWheel) findViewById(R.id.usersearchprogresswheel);
    progressWheel.setVisibility(View.GONE);

    mRecyclerView.setHasFixedSize(true);
    mAdapter = new FollowAdapter(results, applicationContext);;
    mRecyclerView.setAdapter(mAdapter);
    mLayoutManager = new LinearLayoutManager(this);
    mRecyclerView.setLayoutManager(mLayoutManager);
}
 
開發者ID:mstfnacar,項目名稱:foodfeed,代碼行數:26,代碼來源:UserSearchActivity.java

示例4: onCreate

import com.pnikosis.materialishprogress.ProgressWheel; //導入依賴的package包/類
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_search);

    getFoodList();

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

    applicationContext = this.getApplicationContext();

    searchEt = (AutoCompleteTextView) findViewById(R.id.searchtext);
    mRecyclerView = (RecyclerView) findViewById(R.id.searchrecyclerview);
    mRecyclerView.setVisibility(View.GONE);

    progressWheel = (ProgressWheel) findViewById(R.id.searchprogresswheel);
    progressWheel.setVisibility(View.GONE);

    mRecyclerView.setHasFixedSize(true);
    mAdapter = new MainFeedAdapter(results, applicationContext);;
    mRecyclerView.setAdapter(mAdapter);
    mLayoutManager = new LinearLayoutManager(this);
    mRecyclerView.setLayoutManager(mLayoutManager);
}
 
開發者ID:mstfnacar,項目名稱:foodfeed,代碼行數:26,代碼來源:SearchActivity.java

示例5: onCreate

import com.pnikosis.materialishprogress.ProgressWheel; //導入依賴的package包/類
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.restaurant_list);
    toolbar = (Toolbar) findViewById(R.id.toolbar);
    sumnail_tv = (TextView) findViewById(R.id.sumnail_tv);
    nodata_tv = (TextView) findViewById(R.id.no_data);
    imageView = (ImageView) findViewById(R.id.imagesumnail);
    collapsingToolbarLayout = (CollapsingToolbarLayout) findViewById(R.id.collapsing_toolbar);
    mRecyclerView = (RecyclerView) findViewById(R.id.card_list);
    sumnail_tv.setText(getString(R.string.recommend_ment));
    collapsingToolbarLayout.setExpandedTitleColor(ContextCompat.getColor(getApplicationContext(), android.R.color.transparent));
    progressWheel = (ProgressWheel)findViewById(R.id.progress_wheel);
    setSupportActionBar(toolbar);
    location = getIntent().getParcelableExtra("location");
    int rows = 1;
    GridLayoutManager layoutManager = new GridLayoutManager(this, rows, GridLayoutManager.VERTICAL, false);
    mRecyclerView.setLayoutManager(layoutManager);

    new TodayWeatherInfoAsyncTask(this).execute(location.getLatitude(),location.getLongitude());
}
 
開發者ID:mojosoeun,項目名稱:Runch,代碼行數:22,代碼來源:RestaurantInfoActivity.java

示例6: onViewCreated

import com.pnikosis.materialishprogress.ProgressWheel; //導入依賴的package包/類
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);
    setSubtitle(R.string.rooms);
    RecyclerView list = (RecyclerView) getRootView().findViewById(R.id.list);
    refreshLayout = (SwipeRefreshLayout) getRootView().findViewById(R.id.refresh_layout);
    refreshLayout.setColorSchemeColors(getResources().getColor(R.color.primary), getResources().getColor(R.color.accent));
    refreshLayout.setOnRefreshListener(this);
    progress = (ProgressWheel) getRootView().findViewById(R.id.progress);
    adapter = new RoomsAdapter(getActivity());
    adapter.setOnClickListener(this);
    adapter.setOnLongClickListener(this);

    GridLayoutManager manager = new GridLayoutManager(getActivity(), 1);
    list.addItemDecoration(new SpacesItemDecoration(getResources().getDimensionPixelSize(R.dimen.row_space)));
    list.setLayoutManager(manager);
    list.setAdapter(adapter);

    HttpRequestClient.with(getActivity()).getGitterRooms(this);
}
 
開發者ID:rebus007,項目名稱:Git-Chat,代碼行數:21,代碼來源:RoomsFragment.java

示例7: onViewCreated

import com.pnikosis.materialishprogress.ProgressWheel; //導入依賴的package包/類
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);
    setSubtitle(R.string.suggested_rooms);
    RecyclerView list = (RecyclerView) getRootView().findViewById(R.id.list);
    refreshLayout = (SwipeRefreshLayout) getRootView().findViewById(R.id.refresh_layout);
    refreshLayout.setColorSchemeColors(getResources().getColor(R.color.primary), getResources().getColor(R.color.accent));
    refreshLayout.setOnRefreshListener(this);
    progress = (ProgressWheel) getRootView().findViewById(R.id.progress);
    adapter = new SuggestedRoomsAdapter(getActivity());
    adapter.setOnClickListener(this);
    adapter.setOnLongClickListener(this);
    GridLayoutManager manager = new GridLayoutManager(getActivity(), 1);
    list.addItemDecoration(new SpacesItemDecoration(getResources().getDimensionPixelSize(R.dimen.row_space)));
    list.setLayoutManager(manager);
    list.setAdapter(adapter);

    HttpRequestClient.with(getActivity()).getGitterSuggestedRooms(this);
}
 
開發者ID:rebus007,項目名稱:Git-Chat,代碼行數:20,代碼來源:SuggestedRoomsFragment.java

示例8: onCreate

import com.pnikosis.materialishprogress.ProgressWheel; //導入依賴的package包/類
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    this.context = this;
    this.appPreferences = MoticonsApplication.getAppPreferences();

    initUI();
    isFirstRun();

    recyclerView = (RecyclerView) findViewById(R.id.moticonList);
    fastScroller = (VerticalRecyclerViewFastScroller) findViewById(R.id.fast_scroller);
    progressWheel = (ProgressWheel) findViewById(R.id.progress);
    noResults = (LinearLayout) findViewById(R.id.noResults);

    recyclerView.setHasFixedSize(true);
    LinearLayoutManager linearLayoutManager = new LinearLayoutManager(context);
    linearLayoutManager.setOrientation(LinearLayoutManager.VERTICAL);
    recyclerView.setLayoutManager(linearLayoutManager);

    fastScroller.setRecyclerView(recyclerView);
    recyclerView.setOnScrollListener(fastScroller.getOnScrollListener());
    progressWheel.setVisibility(View.VISIBLE);

    new getMoticons().execute();
}
 
開發者ID:javiersantos,項目名稱:Moticons,代碼行數:27,代碼來源:MainActivity.java

示例9: onCreateView

import com.pnikosis.materialishprogress.ProgressWheel; //導入依賴的package包/類
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.fragment_releases, container, false);

    mReleasesList = (RecyclerView) view.findViewById(R.id.releasesList);
    mProgressBar = (ProgressWheel) view.findViewById(R.id.progressBar);

    LinearLayoutManager layoutManager = new LinearLayoutManager(getActivity());
    layoutManager.setOrientation(LinearLayoutManager.VERTICAL);
    mReleasesList.setLayoutManager(layoutManager);
    mReleasesList.setHasFixedSize(true);

    mReleaseAdapter = new ReleaseAdapter(getActivity(), mReleases);
    mReleasesList.setAdapter(mReleaseAdapter);

    return view;
}
 
開發者ID:Redmart,項目名稱:os-mobilizer-android,代碼行數:18,代碼來源:ReleasesFragment.java

示例10: onCreate

import com.pnikosis.materialishprogress.ProgressWheel; //導入依賴的package包/類
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_signin);

    mGoogleApiClient = new GoogleApiClient.Builder(this)
        .addConnectionCallbacks(this)
        .addOnConnectionFailedListener(this)
        .addApi(Plus.API)
        .addScope(Plus.SCOPE_PLUS_LOGIN)
        .build();

    mSignInLayout = (LinearLayout) findViewById(R.id.signInLayout);
    mProgressBar = (ProgressWheel) findViewById(R.id.progressBar);
    mSignInBtn = (SignInButton) findViewById(R.id.signInBtn);

    mSignInBtn.setOnClickListener(this);
}
 
開發者ID:Redmart,項目名稱:os-mobilizer-android,代碼行數:19,代碼來源:AuthActivity.java

示例11: onFinishInflate

import com.pnikosis.materialishprogress.ProgressWheel; //導入依賴的package包/類
@Override
protected void onFinishInflate() {
    super.onFinishInflate();

    stepsTV = (TextView)this.findViewById(R.id.stepsTV);
    detailsTV = (TextView)this.findViewById(R.id.detailsTV);
    batteryTV = (TextView)this.findViewById(R.id.batteryTV);
    spinny = (ProgressWheel)this.findViewById(R.id.stepsProgress);


    IntentFilter intentFilter = new IntentFilter();
    intentFilter.addAction(StringConstants.RESPONSE_STEP_COUNT);
    intentFilter.addAction(StringConstants.RESPONSE_BATTERY_INFO);

    LocalBroadcastManager localBroadcastManager = LocalBroadcastManager.getInstance(this.getContext());
    localBroadcastManager.registerReceiver(valuesBR, intentFilter);

    updateValues();

}
 
開發者ID:indrora,項目名稱:jour-et-nuit,代碼行數:21,代碼來源:StepsView.java

示例12: onCreate

import com.pnikosis.materialishprogress.ProgressWheel; //導入依賴的package包/類
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.loading_dialog);
    DisplayMetrics metrics = getResources().getDisplayMetrics();
    int screenWidth = (int) (metrics.widthPixels * 0.80);
    getWindow().setLayout(screenWidth, ViewGroup.LayoutParams.WRAP_CONTENT);

    Bundle bundle = getIntent().getExtras();

    ProgressWheel ProgressWheel = (ProgressWheel) findViewById(R.id.progress_wheel);
    ProgressWheel.setBarWidth(6);
    ProgressWheel.setMaterial(true);
    ((TextView) findViewById(R.id.title)).setText(bundle.getString("Title"));

    activity = this;
}
 
開發者ID:hearsilent,項目名稱:KUAS-AP,代碼行數:18,代碼來源:LoadingDialog.java

示例13: onCreateView

import com.pnikosis.materialishprogress.ProgressWheel; //導入依賴的package包/類
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    super.onCreateView(inflater, container, savedInstanceState);
    View view = inflater.inflate(R.layout.result_fragment, container, false);
    swipeRefreshLayout = (SwipeRefreshLayout) view.findViewById(R.id.swipe_container);
    swipeRefreshLayout.setColorSchemeResources(R.color.colorPrimary);
    recycleView = (RecyclerView) view.findViewById(R.id.recycle_view);
    LinearLayoutManager mLayoutManager = new LinearLayoutManager(getActivity());
    recycleView.setLayoutManager(mLayoutManager);
    recycleView.setHasFixedSize(true);
    recycleView.setItemAnimator(new DefaultItemAnimator());
    swipeRefreshLayout.setRefreshing(true);
    progressWheel = (ProgressWheel) view.findViewById(R.id.progress_result);
    tvFromStation = (TextView) view.findViewById(R.id.result_from_textview);
    tvToStation = (TextView) view.findViewById(R.id.result_to_textview);
    tvDate = (TextView) view.findViewById(R.id.result_date_textview);
    tvFromStation.setText("Från: " + fromStation.toString());
    tvToStation.setText("Till: " + toStation.toString());
    tvDate.setText(new SimpleDateFormat("dd/MM yyyy").format(searchDate));


    return view;
}
 
開發者ID:jakkra,項目名稱:Transit,代碼行數:24,代碼來源:ResultFragment.java

示例14: onCreateView

import com.pnikosis.materialishprogress.ProgressWheel; //導入依賴的package包/類
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    super.onCreateView(inflater, container, savedInstanceState);
    View view = inflater.inflate(R.layout.main_fragment, container, false);
    toStation = (TextView) view.findViewById(R.id.text_view_to_station);
    relativeSwapStation = (RelativeLayout) view.findViewById(R.id.relative_swap);
    relativeSwapStation.setOnClickListener(this);
    fromStation = (TextView) view.findViewById(R.id.text_view_from_station);
    searchButton = (Button) view.findViewById(R.id.gcmButton);
    favButton = (Button) view.findViewById(R.id.favourite_button);
    setTimeButton = (ImageButton) view.findViewById(R.id.setTimeButton);
    setTimeButton.setOnClickListener(this);
    listView = (RecyclerView) view.findViewById(R.id.listView);
    progressBar = (ProgressWheel) view.findViewById(R.id.progressBar);
    progressBar.setVisibility(View.GONE);
    fillUIHelper = new FillUIHelper(view);
    favListAdapter = new FavouriteListAdapter(database.getFavouriteJourneys(NBR_OF_LIST_ITEM_TO_SHOW), database.getRecentJourneys(NBR_OF_LIST_ITEM_TO_SHOW), this, NBR_OF_LIST_ITEM_TO_SHOW);
    LinearLayoutManager mLayoutManager = new LinearLayoutManager(getActivity());
    listView.setLayoutManager(mLayoutManager);
    listView.setHasFixedSize(true);
    listView.setAdapter(favListAdapter);
    listView.setItemAnimator(new DefaultItemAnimator());
    return view;
}
 
開發者ID:jakkra,項目名稱:Transit,代碼行數:25,代碼來源:MainSearchFragment.java

示例15: onCreateView

import com.pnikosis.materialishprogress.ProgressWheel; //導入依賴的package包/類
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    if (rootView == null) {
        super.onCreateView(inflater, container, savedInstanceState);
        View view = inflater.inflate(R.layout.detailed_journey_fragment, container, false);
        swipeRefreshLayout = (SwipeRefreshLayout) view.findViewById(R.id.refresh_container);
        swipeRefreshLayout.setColorSchemeResources(R.color.colorDividerBackground);
        progressWheel = (ProgressWheel) view.findViewById(R.id.progress_detail);
        recycleView = (RecyclerView) view.findViewById(R.id.detailed_recycle_view);
        LinearLayoutManager mLayoutManager = new LinearLayoutManager(getActivity());
        recycleView.setLayoutManager(mLayoutManager);
        recycleView.setHasFixedSize(true);
        recycleView.setItemAnimator(new DefaultItemAnimator());
        swipeRefreshLayout.setRefreshing(true);
        swipeRefreshLayout.setOnRefreshListener(this);
        uiFiller = new FillDetailedHeaderHelper(view);
        mapButton = (FloatingActionButton) view.findViewById(R.id.map_button);
        rootView = view;
    } else {
        //((ViewGroup) rootView.getParent()).removeView(rootView);

    }
    return rootView;
}
 
開發者ID:jakkra,項目名稱:Transit,代碼行數:25,代碼來源:DetailedJourneyFragment.java


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