本文整理匯總了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());
}