当前位置: 首页>>代码示例>>Java>>正文


Java SmoothProgressBar.setVisibility方法代码示例

本文整理汇总了Java中fr.castorflex.android.smoothprogressbar.SmoothProgressBar.setVisibility方法的典型用法代码示例。如果您正苦于以下问题:Java SmoothProgressBar.setVisibility方法的具体用法?Java SmoothProgressBar.setVisibility怎么用?Java SmoothProgressBar.setVisibility使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在fr.castorflex.android.smoothprogressbar.SmoothProgressBar的用法示例。


在下文中一共展示了SmoothProgressBar.setVisibility方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onCreateView

import fr.castorflex.android.smoothprogressbar.SmoothProgressBar; //导入方法依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    rootView = inflater.inflate(R.layout.choose_recipient, container, false);
    getActivity().setTitle(getString(R.string.choose_recipient_title));
    initCourseSpinner();
    initRecycleView();

    progressBar = (SmoothProgressBar) rootView.findViewById(R.id.progressbar);
    if (loaded) {
        progressBar.setVisibility(View.GONE);
    } else {
        progressBar.setVisibility(View.VISIBLE);
    }

    return rootView;
}
 
开发者ID:andrmos,项目名称:imber,代码行数:17,代码来源:ChooseRecipientFragment.java

示例2: onCreateView

import fr.castorflex.android.smoothprogressbar.SmoothProgressBar; //导入方法依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    // Inflate the layout for this fragment
    View rootView = inflater.inflate(R.layout.fragment_file_browser, container, false);
    getActivity().setTitle(R.string.btn_file_browser);

    progressBar = (SmoothProgressBar) rootView.findViewById(R.id.progressbar);
    if (filesLoaded || foldersLoaded) {
        progressBar.setVisibility(View.GONE);
    } else {
        progressBar.setVisibility(View.VISIBLE);
    }

    initRecycleView(rootView);
    mainList.setVisibility(View.VISIBLE);
    noContentTextView = (TextView) rootView.findViewById(R.id.noContentTextview);

    return rootView;
}
 
开发者ID:andrmos,项目名称:imber,代码行数:20,代码来源:FileBrowserFragment.java

示例3: onCreateView

import fr.castorflex.android.smoothprogressbar.SmoothProgressBar; //导入方法依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View rootView = inflater.inflate(R.layout.fragment_course, container, false);
    // Set toolbar title to course name
    getActivity().setTitle(course.getTrimmedName());

    progressbar = (SmoothProgressBar) rootView.findViewById(R.id.progressbar);
    initRecycleView(rootView);

    // Hide progress bar if data is already loaded
    if (isLoaded()) {
        progressbar.setVisibility(View.GONE);
        mainList.setVisibility(View.VISIBLE);
    } else {
        progressbar.setVisibility(View.VISIBLE);
    }

    return rootView;
}
 
开发者ID:andrmos,项目名称:imber,代码行数:20,代码来源:CourseFragment.java

示例4: onCreateView

import fr.castorflex.android.smoothprogressbar.SmoothProgressBar; //导入方法依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View rootView = inflater.inflate(R.layout.fragment_recycler_view, container, false);
    getActivity().setTitle(R.string.course_title);

    smoothProgressBar = (SmoothProgressBar) rootView.findViewById(R.id.progressbar);
    initRecycleView(rootView);

    // Hide progress bar if data is already loaded
    if (loaded) {
        smoothProgressBar.setVisibility(View.GONE);
    } else {
        smoothProgressBar.setVisibility(View.VISIBLE);
    }

    return rootView;
}
 
开发者ID:andrmos,项目名称:imber,代码行数:18,代码来源:CourseListFragment.java

示例5: onCreateView

import fr.castorflex.android.smoothprogressbar.SmoothProgressBar; //导入方法依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View rootView = inflater.inflate(R.layout.fragment_recycler_view, container, false);

    progressBar = (SmoothProgressBar) rootView.findViewById(R.id.progressbar);
    // Hide progress bar if data is already loaded
    if (loaded) {
        progressBar.setVisibility(View.GONE);
    } else {
        progressBar.setVisibility(View.VISIBLE);
    }

    // Set label for toolbar
    getActivity().setTitle(getString(R.string.announcements_title));

    initRecycleView(rootView);

    initOnClickListener();

    return rootView;

}
 
开发者ID:andrmos,项目名称:imber,代码行数:23,代码来源:AnnouncementFragment.java

示例6: onCreateView

import fr.castorflex.android.smoothprogressbar.SmoothProgressBar; //导入方法依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    rootView = inflater.inflate(R.layout.fragment_conversation, container, false);

    progressbar = (SmoothProgressBar) rootView.findViewById(R.id.progressbar);
    initRecycleView();
    initFabButton();

    if (loaded) {
        fab.setEnabled(true);
        progressbar.setVisibility(View.GONE);
    } else {
        fab.setEnabled(false);
        progressbar.setVisibility(View.VISIBLE);
    }

    return rootView;
}
 
开发者ID:andrmos,项目名称:imber,代码行数:19,代码来源:SingleConversationFragment.java

示例7: onCreateView

import fr.castorflex.android.smoothprogressbar.SmoothProgressBar; //导入方法依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    rootView = inflater.inflate(R.layout.fragment_conversation, container, false);
    getActivity().setTitle(R.string.inbox_title);

    progressbar =  (SmoothProgressBar) rootView.findViewById(R.id.progressbar);
    initRecyclerView(rootView);
    if (loaded) {
        progressbar.setVisibility(View.GONE);
    } else {
        progressbar.setVisibility(View.VISIBLE);
    }

    return rootView;
}
 
开发者ID:andrmos,项目名称:imber,代码行数:16,代码来源:ConversationFragment.java

示例8: initProgressBar

import fr.castorflex.android.smoothprogressbar.SmoothProgressBar; //导入方法依赖的package包/类
private void initProgressBar()
{
    mScanProgressBar = (SmoothProgressBar) findViewById(id.update_button);
    mScanProgressBar.setVisibility(View.VISIBLE);
}
 
开发者ID:blevinson19,项目名称:SmartCap_v32,代码行数:6,代码来源:MainActivity.java

示例9: initProgressBar

import fr.castorflex.android.smoothprogressbar.SmoothProgressBar; //导入方法依赖的package包/类
private void initProgressBar()
{
    mScanProgressBar = (SmoothProgressBar) findViewById(R.id.progressBar);
    mScanProgressBar.setVisibility(View.VISIBLE);
}
 
开发者ID:zentri,项目名称:ble_command_android_demo,代码行数:6,代码来源:MainActivity.java

示例10: onCreate

import fr.castorflex.android.smoothprogressbar.SmoothProgressBar; //导入方法依赖的package包/类
@SuppressLint("DefaultLocale")
	@SuppressWarnings("unchecked")
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_read_feed);
		mToolbarTitle = (TextView) findViewById(R.id.read_feed_toolbar_title);
		mToolbarBackButton = (ImageButton) findViewById(R.id.read_feed_toolbar_back_btn);
		mContentImage = (ImageView) findViewById(R.id.read_feed_content_image);
		mGifImageView = (GifWebView) findViewById(R.id.read_feed_content_gif);
		mContentSourceIcon = (ImageView) findViewById(R.id.read_feed_content_source_icon);
		mContentSourceName = (TextView) findViewById(R.id.read_feed_content_source_name);
		mContentSourceDate = (TextView) findViewById(R.id.read_feed_content_source_date);
		mContentText = (TextView) findViewById(R.id.read_feed_content_text);
		mFollowLinkBtn = (FloatingActionButton) findViewById(R.id.read_feed_content_follow_link);
		mImageViewPager = (ExtendedViewPager) findViewById(R.id.read_feed_image_pager);
		mOverlayImageView = (RelativeLayout) findViewById(R.id.read_feed_overlay_image_view);
		mLoadingBar = (SmoothProgressBar) findViewById(R.id.read_feed_content_loading_progressbar);
		mLoadingBar.setVisibility(View.INVISIBLE);
		mOverlayImageView.setVisibility(View.INVISIBLE);
		mOverlayImageView.setOnClickListener(new OnOverlayImageClick());
		mContentImage.setVisibility(View.INVISIBLE);
		mGifImageView.setVisibility(View.INVISIBLE);
		Bundle b = getIntent().getExtras();
		HashMap<String, String> item = (HashMap<String, String>) b.getSerializable("home_news_item");
		String title = item.get("title");
		String parentTitle = item.get("parentTitle");
		String parentLink = item.get("parentLink");
		String description = item.get("description");
		String pubDate = item.get("pubDate");
		String link = item.get("link");
		Document doc = Jsoup.parse(description);
		Elements imgs = doc.getElementsByTag("img");
		String firstImgUrl = null;
		for (Element el : imgs) {
			String src = el.absUrl("src");
			int height = getElementIntegerValue(el, "height");
			int width = getElementIntegerValue(el, "width");
//			if(height <= ConfigurationUtil.IMAGE_MIN_HEIGHT || width <= ConfigurationUtil.IMAGE_MIN_WIDTH)
//				continue;
			if(StringUtil.isNullEmptyString(firstImgUrl))
				firstImgUrl = src;
			imageSrcUrlList.add(src);
		}
		if(!StringUtil.isNullEmptyString(parentLink))
			new FetchFaviconAsync(mContentSourceIcon).execute(parentLink);
		if(firstImgUrl != null)
			new FetchImageAsync(this, true).execute(firstImgUrl);
		else {
			mContentImage.setImageResource(R.drawable.placeholder);
			mContentImage.setVisibility(View.VISIBLE);
		}
		String displayContent = Html.fromHtml(description.replaceAll("<img.+?>", "")).toString();
		if(imageSrcUrlList != null && imageSrcUrlList.size() > 0) {
			mPagerAdapter = new ImageSlidePagerAdapter(getSupportFragmentManager(), imageSrcUrlList);
			mImageViewPager.setAdapter(mPagerAdapter);
		}
		mContentSourceDate.setText(pubDate);
		mContentSourceName.setText(parentTitle);
		mContentText.setText(displayContent);
		mToolbarTitle.setText(Html.fromHtml(title));
		mToolbarBackButton.setOnClickListener(new OnToolbarBackClickListener());
		mFollowLinkBtn.setOnClickListener(new OnFollowLinkClickListiner(link));
	}
 
开发者ID:petalyaa,项目名称:Launchpet2,代码行数:65,代码来源:ReadFeedActivity.java


注:本文中的fr.castorflex.android.smoothprogressbar.SmoothProgressBar.setVisibility方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。