android 关于页面,解析android中的帮助、about、关于作者、HELP等提示页面
在android中,经常要用到帮助、about、关于作者等的提示页面。
类似这样的页面:
这样的页面,我们可以通过AlertDialog对话框来设计。
设计一个AboutDialog类继承于AlertDialog
public class AboutDialog extends AlertDialog {
public AboutDialog(Context context) {
super(context);
final View view = getLayoutInflater().inflate(R.layout.about,
null);
setButton(context.getText(R.string.close), (OnClickListener) null);
setIcon(R.drawable.icon_about);
setTitle("超级笑话 v1.0.0" );
setView(view);
}
}
对应的XML文件
1、layout布局文件about.xml
android:layout_width="fill_parent" android:layout_height="wrap_content">
android:layout_width="fill_parent" android:layout_height="fill_parent">
android:layout_width="fill_parent" android:text="@string/help_dialog_text"
android:padding="6dip" android:textColor="#FFFFFF" />
2、strings.xml
作者: 脚本之家
\n
\n
联系:www.jb51.net
\n
\n
超级笑话---收集了2000多各种类型的笑料,让你全天笑不停!你还可以把笑话通过短信发给你的好友分享哦!
\n
\n
有任何建议或者反馈可以随时联系作者
然后在页面调用代码即可显示对话框
new AboutDialog(this).show();
android 关于页面,解析android中的帮助、about、关于作者、HELP等提示页面相关推荐
- android json格式解析,android之解析json数据格式详解
1.JSON解析 (1).解析Object之一: 解析方法: 1 JSONObject demoJson =newJSONObject(jsonString); 2 String url = demo ...
- android开源torrent解析,Android之Bt框架
源码 7.1 框架图 启动 1.系统服务 SystemService if (isEmulator) { Slog.i(TAG, "No Bluetooth Service (emulato ...
- Android Studio在xml文件中编写代码时,关键词没有代码提示补全
问题描述: Android Studio在xml文件中编写代码时,无法自动补全 例如在TextView中输入textSize,没有出现任何代码提示 解决方式: File->Project Str ...
- Carson带你学Android:全面解析Android消息推送解决方案
前言 鉴于现在运营需求的增强,消息推送在Android开发中应用的场景是十分常见 如电商的活动宣传.资讯类产品进行新闻推送等等 今天,我将全面介绍Android中实现消息推送的7种主流解决方案 Car ...
- Android makefile文件解析
Android makefile文件解析 Android编译过程详解 编译步骤 Android的编译步骤包括三步: 1.通过source build/envsetup.sh命令将sh文件中的命令加载到 ...
- android动画送礼物,Android仿直播类app赠送礼物功能
直播界面 实现的是播放本地的视频文件: /** * 直播界面,用于对接直播功能 */ public class LiveFrag extends Fragment { private ImageVie ...
- 网站正在建设中提示页面设计欣赏
当网站正在建设中的时候,一般会给出一个提示页面,这个提示页面的设计其实是很有讲究的,设计得好的话可以让访问者密切关注网站的上线时间进而在正式推出的时候获得很多的回访流量. ...
- JS设置请在微信客户端打开链接提示页面
判断JS: var ua = navigator.userAgent.toLowerCase(); var isWeixin = ua.indexOf('micromessenger') != -1; ...
- java filter 返回错误消息_利用java filter 实现业务异常拦截 跳转到错误信息提示页面...
1.缘由:我们在做项目中肯定都会遇到自定义业务异常 ,然后将业务异常信息跳转的统一的信息提示页面的情况,比如我们在struts的时候我们会用到struts的异常处理机制,我们在业务层会跑出我们遇到业务 ...
最新文章
- Windows实现appium+iOS自动化测试
- android上传项目到码云_上传代码到码云
- Android 对象在堆中吗,Android内存机制—堆和栈
- Arduino初初教程10——温湿度传感器
- 45岁的 SQL 语言要被淘汰了?
- Applet实现Menu
- Linux把文件移动到容器外,Docker容器与主机之间拷贝文件的方法
- content属性的4种用途
- Tricks(四十七)—— 布尔矩阵(0-1矩阵)取反
- 没有基础的人可以学python吗-没有任何基础的人,该如何学习Python?「附具体步骤」...
- 纯新手DSP编程--5.22-总结
- Hadoop 技术在电信运营商上网日志处理中的应用架构
- 【题解】Making The Grade(DP+结论)
- paip.java c++得到当前类,方法名称以及行号
- 【图像处理】基于matlab分形插值算法调换图片【含Matlab源码 197期】
- python连接informix数据库
- PMP考试答题技巧-模拟题库
- 【JS基础】JavaScript轮播图代码详解
- iphonex 序列号_iPhoneX序列号在哪 苹果X序列号怎么看?
- 网盘、云盘共享文件搜索引擎链接收藏目录
热门文章
- Java-反射简介及例子
- MVC--Rzaor--例子
- PyTorch模型量化工具学习
- library “libopencv_java4.so“ not found“
- you're probably running inside a thread without first calling pythoncom.CoInitialize
- torch 列最大值
- [WinError 17] 系统无法将文件移到不同的磁盘驱动器
- WinError 145] 目录不是空的
- pytorch cpu gpu性能对比
- You must define TF_LIB_GTL_ALIGNED_CHAR_ARRAY for your compiler