本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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;
}
示例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();
}
示例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();
}
}
示例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();
}
示例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();
}
}
示例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);
}
示例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());
}
示例11: showDefaultTitle
import com.github.pedrovgs.effectiveandroidui.R; //导入依赖的package包/类
@Override public void showDefaultTitle() {
getActivity().setTitle(R.string.app_name);
}
示例12: getFragmentLayout
import com.github.pedrovgs.effectiveandroidui.R; //导入依赖的package包/类
@Override protected int getFragmentLayout() {
return R.layout.fragment_tv_shows;
}
示例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);
}
示例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());
}
示例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());
}