本文整理汇总了Java中it.gmariotti.changelibs.library.view.ChangeLogRecyclerView类的典型用法代码示例。如果您正苦于以下问题:Java ChangeLogRecyclerView类的具体用法?Java ChangeLogRecyclerView怎么用?Java ChangeLogRecyclerView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ChangeLogRecyclerView类属于it.gmariotti.changelibs.library.view包,在下文中一共展示了ChangeLogRecyclerView类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onCreateDialog
import it.gmariotti.changelibs.library.view.ChangeLogRecyclerView; //导入依赖的package包/类
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
ChangeLogRecyclerView chgList = (ChangeLogRecyclerView) View.inflate(getActivity(), R.layout.fragment_dialog_changelog, null);
return new AlertDialog.Builder(getActivity())
.setTitle(R.string.changelog)
.setView(chgList)
.setPositiveButton(R.string.ok,
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton) {
dialog.dismiss();
}
}
)
.create();
}
开发者ID:PTCE,项目名称:popcorn-android,代码行数:18,代码来源:ChangeLogDialogFragment.java
示例2: onCreateDialog
import it.gmariotti.changelibs.library.view.ChangeLogRecyclerView; //导入依赖的package包/类
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
LayoutInflater layoutInflater = getActivity().getLayoutInflater();
ChangeLogRecyclerView chgList = (ChangeLogRecyclerView) layoutInflater.inflate(R.layout.demo_changelog_fragment_dialogmaterial, null);
return new AlertDialog.Builder(getActivity(), R.style.AppCompatAlertDialogStyle)
.setTitle("Changelog")
.setView(chgList)
.setPositiveButton(android.R.string.ok,
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton) {
dialog.dismiss();
}
}
)
.create();
}
开发者ID:mxiao6,项目名称:Tower-develop,代码行数:19,代码来源:DialogMaterialFragment.java
示例3: onCreateDialog
import it.gmariotti.changelibs.library.view.ChangeLogRecyclerView; //导入依赖的package包/类
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
LayoutInflater layoutInflater = (LayoutInflater) getActivity().getSystemService(
Context.LAYOUT_INFLATER_SERVICE);
ChangeLogRecyclerView chgList= (ChangeLogRecyclerView) layoutInflater.inflate(R.layout.dialog_changelog, null);
setRetainInstance(false);
return new AlertDialog.Builder(getActivity(),R.style.AppCompatAlertDialogStyle)
.setTitle(R.string.title_changelog_dialog)
.setView(chgList)
.setPositiveButton(android.R.string.ok,
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton) {
dialog.dismiss();
}
}
)
.create();
}
开发者ID:mustafa01ali,项目名称:SensorsSandbox,代码行数:21,代码来源:ChangeLogDialogFragment.java
示例4: createChangeLog
import it.gmariotti.changelibs.library.view.ChangeLogRecyclerView; //导入依赖的package包/类
public void createChangeLog() {
LayoutInflater layoutInflater = (LayoutInflater) mContext.getSystemService(
Context.LAYOUT_INFLATER_SERVICE);
ChangeLogRecyclerView chgList = (ChangeLogRecyclerView) layoutInflater.inflate(R.layout.fragment_changelog, null);
if(!app_prefs.isLightTheme())
chgList.setBackgroundResource(R.color.cardview_dark_background);
new MaterialDialog.Builder(mContext)
.title(R.string.text_what_is_new)
.autoDismiss(true)
.typeface(Typeface.SANS_SERIF,Typeface.SANS_SERIF)
.iconRes(app_prefs.isLightTheme()?R.drawable.ic_new_releases_black_24dp:R.drawable.ic_new_releases_white_24dp)
.customView(chgList ,true)
.buttonRippleColorRes(R.color.colorAccent)
.positiveColorRes(R.color.colorStateBlue)
.negativeColorRes(R.color.colorStateOrange)
.theme(app_prefs.isLightTheme()?Theme.LIGHT:Theme.DARK)
.positiveText(R.string.Close)
.onPositive(new MaterialDialog.SingleButtonCallback() {
@Override
public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) {
dialog.dismiss();
}
})
.show();
}
开发者ID:wax911,项目名称:anitrend-app,代码行数:28,代码来源:DialogManager.java
示例5: onCreateDialog
import it.gmariotti.changelibs.library.view.ChangeLogRecyclerView; //导入依赖的package包/类
@NonNull
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
ChangeLogRecyclerView chgList = (ChangeLogRecyclerView) LayoutInflater
.from(getContext()).inflate(R.layout.changelog_fragment_dialog, null);
return new AlertDialog.Builder(getActivity(), R.style.AppCompatAlertDialogStyle)
.setTitle(R.string.changelog_title)
.setView(chgList)
.setPositiveButton(R.string.button_close, (dialog, which) -> dialog.dismiss())
.create();
}
开发者ID:openwebnet,项目名称:openwebnet-android,代码行数:14,代码来源:ChangeLogDialogFragment.java
注:本文中的it.gmariotti.changelibs.library.view.ChangeLogRecyclerView类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论