Android教程網
  1. 首頁
  2. Android 技術
  3. Android 手機
  4. Android 系統教程
  5. Android 游戲
 Android教程網 >> Android技術 >> Android開發實例 >> Android 安卓開發Help提示框實例

Android 安卓開發Help提示框實例

編輯:Android開發實例

  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);

  }

  }

  \\

  <string name="help_dialog_text">

  <i>Author: fonter.yang</i>

  n

  <i>

  <a href="http://www.android.tgbus.com">Android教程 </a>

  </i>

  n

  n

  <i>AndTask - Android Task Manager</i>

  n

  This's 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>

  \\\

  <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"

  android:layout_height="wrap_content"

  android:layout_width="fill_parent"

  >

  <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"

  android:layout_height="fill_parent"

  android:layout_width="fill_parent"

  >

  <TextView

  android:layout_height="fill_parent"

  android:layout_width="fill_parent"

  android:padding="6dip"

  android:text="@string/help_dialog_text"

  />

  </ScrollView>

  </FrameLayout>

  1. 上一頁:
  2. 下一頁:
熱門文章
閱讀排行版
Copyright © Android教程網 All Rights Reserved