You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
この方法は別にダイアログ(Dialog)でなくても、どこでも使えます。 showSoftInput メソッドを使います。 getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE); を使う方法は gabu さんのブログ EditTextを持つダイアログ(AlertDialog)が表示された時に自動的にソフトキーボードを表示する。 - gabuchanの日記 - にのっています。 以前のエントリでボタンを押したときにソフトキーボードを表示する方法を紹介しました。 Y.A.M の 雑記帳: Android ボタンを押したときにソフトキーボードを消す このときと同様に InputMethodManager を使います。 showSoftInput メソッドの第1引数で指定する
Behind The Code As one of the UK's intelligence and security agencies, GCHQ works to protect national security interests. Our experts use their skills and ingenuity to combat cyber crime and terrorism, while helping to reduce harm to the UK from attacks in cyberspace. As threats to information and computer technology continue to evolve, we're recruiting more people who can think both like a hacker
概要 android.app パッケージ - AlertDialog クラスを使用します。 ソースコード package com.adakoda.android.alertdialogsample; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.os.Bundle; public class AlertDialogSampleActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.la
設定画面の作り方(PreferenceActivity)久々にコードのお話を。 アプリによくある設定画面を作成する際に使用する「PreferenceActivity」についてです。 参考:http://developer.android.com/intl/ja/reference/android/preference/PreferenceActivity.html 上の写真は簡単なサンプルアプリを起動した画面です。 まず、プロジェクトを作成し、新規に「res/xml/pref.xml」、「res/values/arrays.xml」を作成します。 pref.xmlは設定画面の画面用、arrays.xmlは設定画面のリスト要素の値を定義しています。 res/xml/pref.xml <?xml version="1.0" encoding="utf-8"?> <PreferenceSc
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く