Android漂亮的Help提示框

示图

 

 

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>
		\n
		It 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>
		\n
		1) Switch and Stop Tasks/Processes/Apps/Services
		\n
		2) Shows Memory Info and Apps Info
		\n
		3) Uninstall Apps
	</string>

 

显示

 

new HelpDialog(this).show(); 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值