當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。