示图

import android.app.AlertDialog;import android.content.Context;import android.view.View;import com.iwidsets.task.manager.R;public class HelpDialog extends AlertDialog {public HelpDialog(Context context) {super(context);final View view = getLayoutInflater().inflate(R.layout.help_dialog,null);setButton(context.getText(R.string.close), (OnClickListener) null);setIcon(R.drawable.icon);setTitle("AndTask version:" + R.string.version);setView(view);}}

help_dialog.xml

<?xml version="1.0" encoding="utf-8"?><FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent" android:layout_height="wrap_content"><ScrollView xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent" android:layout_height="fill_parent"><TextView android:layout_height="fill_parent"android:layout_width="fill_parent" android:text="@string/help_dialog_text"android:padding="6dip" /></ScrollView></FrameLayout> 

help_dialog_text 文本

<string name="help_dialog_text"><i>Author: fonter.yang</i>\n<i><a href="http://www.iwidsets.com">http://www.iwidsets.com</a></i>\n\n<i>AndTask - Android Task Manager</i>\nIt is an easy-to use task management software,it allows you to switch on or off running programs/apps/services.\n\n<b>Feature</b>\n1) Switch and Stop Tasks/Processes/Apps/Services\n2) Shows Memory Info and Apps Info\n3) Uninstall Apps</string>

显示

new HelpDialog(this).show(); 

更多相关文章

  1. Android(安卓)ToastUtils,吐司工具类
  2. Android获取经纬度的值并且显示
  3. Android中倒计时代码
  4. Android之UI学习篇一:TextVeiw如何显示丰富的文本
  5. Android图形显示系统——下层显示4:图层合成上(合成原理与3D合成)
  6. Android(安卓)中如何将带有html格式的文章转换成能在Android中显
  7. android:layout_marginLeft指该控件距离边父控件的边距, android:
  8. android自定义带图片的title
  9. android中怎么获得所有应用程序的快捷方式

随机推荐

  1. PHP实现笛卡尔积算法
  2. PHP实现支付宝支付的方法
  3. 关于PHP中sqlite3的使用
  4. PHP 生成随机红包算法
  5. 使用phpqrcode生成二维码
  6. php调试利器:FirePHP的安装与使用
  7. PHP Redis相关操作大全
  8. 高级PHP工程师必备的编码技巧及思维
  9. PHP的isset()、is_null、empty()使用总结
  10. PHP上传图片到数据库并显示