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


Java R类代码示例

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


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

示例1: initializeListView

import com.github.pedrovgs.effectiveandroidui.R; //导入依赖的package包/类
private void initializeListView() {
  header_tv_show_chapters = (TextView) LayoutInflater.from(getActivity())
      .inflate(R.layout.header_tv_show_chapters, null);
  lv_chapters.addHeaderView(header_tv_show_chapters);
  adapter = (ChapterRendererAdapter) chapterRendererAdapterFactory.getChapterRendererAdapter(
      chapterAdapteeCollection);
  lv_chapters.setAdapter(adapter);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:9,代码来源:TvShowDraggableFragment.java

示例2: showFanArt

import com.github.pedrovgs.effectiveandroidui.R; //导入依赖的package包/类
@Override public void showFanArt(final String tvShowFanArtUrl) {
  iv_fan_art.setVisibility(View.VISIBLE);
  Picasso.with(getActivity())
      .load(tvShowFanArtUrl)
      .placeholder(R.color.main_color)
      .into(iv_fan_art);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:8,代码来源:TvShowDraggableFragment.java

示例3: initializeListView

import com.github.pedrovgs.effectiveandroidui.R; //导入依赖的package包/类
private void initializeListView() {
  header_tv_show_chapters = (TextView) LayoutInflater.from(getActivity())
      .inflate(R.layout.header_tv_show_chapters, null);
  lv_chapters.addHeaderView(header_tv_show_chapters);
  adapter =
      (ChapterViewModelRendererAdapter) chapterRendererAdapterFactory.getChapterRendererAdapter(
          chapterAdapteeCollection);
  lv_chapters.setAdapter(adapter);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:10,代码来源:TvShowFragment.java

示例4: canInteractWithFragments

import com.github.pedrovgs.effectiveandroidui.R; //导入依赖的package包/类
private boolean canInteractWithFragments() {
    tvShowFragment = (TvShowFragment) getFragmentManager().findFragmentById(R.id.f_tv_show);
    tvShowDraggableFragment =
            (TvShowDraggableFragment) getFragmentManager().findFragmentById(R.id.f_tv_show_draggable);

    return tvShowDraggableFragment != null || tvShowFragment != null;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:8,代码来源:Navigator.java

示例5: onCreate

import com.github.pedrovgs.effectiveandroidui.R; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    initializeTvShowFragment();
    initializeTvShowDraggableFragment();
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:8,代码来源:MainActivity.java

示例6: initializeTvShowDraggableFragment

import com.github.pedrovgs.effectiveandroidui.R; //导入依赖的package包/类
private void initializeTvShowDraggableFragment() {
    TvShowDraggableFragment tvShowDraggableFragment =
            (TvShowDraggableFragment) getSupportFragmentManager().findFragmentById(
                    R.id.f_tv_show_draggable);
/*
 * If both fragments are visible we have to disable saved instance state in draggable
 * fragment because there are different fragment configurations in activity_main.xml
 * when the device is in portrait or landscape. Review layout- directory to get more
 * information.
 */
    if (tvShowFragment != null && tvShowDraggableFragment != null) {
        tvShowDraggableFragment.disableSaveInstanceState();
    }
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:15,代码来源:MainActivity.java

示例7: onCreate

import com.github.pedrovgs.effectiveandroidui.R; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);
  initializeTvShowFragment();
  initializeTvShowDraggableFragment();
}
 
开发者ID:GaneshRepo,项目名称:EffectiveUI,代码行数:8,代码来源:MainActivity.java

示例8: initializeTvShowDraggableFragment

import com.github.pedrovgs.effectiveandroidui.R; //导入依赖的package包/类
private void initializeTvShowDraggableFragment() {
  tvShowDraggableFragment =
      (TvShowDraggableFragment) getSupportFragmentManager().findFragmentById(
          R.id.f_tv_show_draggable);
  /*
   * If both fragments are visible we have to disable saved instance state in draggable
   * fragment because there are different fragment configurations in activity_main.xml
   * when the device is in portrait or landscape. Review layout- directory to get more
   * information.
   */
  if (tvShowFragment != null && tvShowDraggableFragment != null) {
    tvShowDraggableFragment.disableSaveInstanceState();
  }
}
 
开发者ID:GaneshRepo,项目名称:EffectiveUI,代码行数:15,代码来源:MainActivity.java

示例9: updateTitleWithCountOfTvShows

import com.github.pedrovgs.effectiveandroidui.R; //导入依赖的package包/类
@Override public void updateTitleWithCountOfTvShows(final int counter) {
  String actionBarTitle = getString(R.string.app_name_with_chapter_counter, counter);
  getActivity().setTitle(actionBarTitle);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:5,代码来源:TvShowCatalogFragment.java

示例10: showConnectionErrorMessage

import com.github.pedrovgs.effectiveandroidui.R; //导入依赖的package包/类
@Override public void showConnectionErrorMessage() {
  String connectionError = getString(R.string.connection_error_message);
  ToastUtils.showShortMessage(connectionError, getActivity());
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:5,代码来源:TvShowCatalogFragment.java

示例11: showDefaultTitle

import com.github.pedrovgs.effectiveandroidui.R; //导入依赖的package包/类
@Override public void showDefaultTitle() {
  getActivity().setTitle(R.string.app_name);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:4,代码来源:TvShowCatalogFragment.java

示例12: getFragmentLayout

import com.github.pedrovgs.effectiveandroidui.R; //导入依赖的package包/类
@Override protected int getFragmentLayout() {
  return R.layout.fragment_tv_shows;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:4,代码来源:TvShowCatalogFragment.java

示例13: showTvShowTitle

import com.github.pedrovgs.effectiveandroidui.R; //导入依赖的package包/类
@Override public void showTvShowTitle(final String tvShowTitle) {
  String tvShowHeaderTitle = getString(R.string.tv_show_title, tvShowTitle);
  header_tv_show_chapters.setText(tvShowHeaderTitle);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:5,代码来源:TvShowDraggableFragment.java

示例14: showTvShowNotFoundMessage

import com.github.pedrovgs.effectiveandroidui.R; //导入依赖的package包/类
@Override public void showTvShowNotFoundMessage() {
  String tvShowNotFoundMessage = getString(R.string.tv_show_not_found);
  ToastUtils.showShortMessage(tvShowNotFoundMessage, getActivity());
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:5,代码来源:TvShowDraggableFragment.java

示例15: showConnectionErrorMessage

import com.github.pedrovgs.effectiveandroidui.R; //导入依赖的package包/类
@Override public void showConnectionErrorMessage() {
  String connectionErrorMessage = getString(R.string.connection_error_message);
  ToastUtils.showError(connectionErrorMessage, getActivity());
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:5,代码来源:TvShowDraggableFragment.java


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