- Androidアプリ開発メモ060:独自のAlertDialog
* ボタンを押すとダイアログのedittextに入力した値をactivityのtextviewにセットする
*/
public void showalertdialogmethod2(view v) {
//viewgroup dialogrootlayout = (viewgroup)findviewbyid(r.id.dlg2linearlayout1);
//viewgroup dialogrootlayout = (viewgroup)findviewbyid(r.id.dlg2layout2);
// inflate()の第2引数、nullでいいんだろうか?上の2つのようななにかビューを指定すべき?
view dialog2 = getlayoutinflater().inflate(r.layout.dialog2, null);
alertdialog.builder dialogbuilder = new alertdialog.builder(this);
dialogbuilder
.setview(dialog2)
.setcancelable(false);
final alertdialog myalertdialog = dialogbuilder.create();
- Android ダイアログ(2) リスト選択、ラジオボタン、チェックボックス
* @param items 項目のリスト
* @param choiced 選択配列
* @return 選択項目の文字列
*/
private string tochoiceditemsstring(string[] items, boolean[] choiced) {
list string> list = new arraylist string>();
for (int i = 0; i items.length; i++) {
if (choiced[i]) {
list.add(items[i]);
}
}
return list.tostring();
}
- メンテ
dc:identifier= />
</rdf:rdf>
-->
<div class=entryouterblock>
<table class=entrytabtop><tr>
<td class=entrytabtopdate>
<script type=text/javascript>createroundcorner(#da7, #fc9, 5, 0);</script>
<div class=entrytabtext><a href=/date/20100127/ class=faintlink>2010/01/27 (wed)</a></div>
</td>
<td style=width:10px;></td>
<td class=entrytabtopcategory>
<script type=text/javascript>createroundcorner(#ad7, #cf9, 5, 0);</script>
<div class=entrytabtext><a href=/category/3/ class=faintlink>information</a></div>
</td>
</tr></table>
<script type=text/javascript>createroundcorner(#000, #fff, 15, 0);</script>
<div class=entryinnerblock>
<div class=entrytitle>
<a href=/entry/73/><span class=entrytitlefont>メンテ</span></a>
</div>
<div class=entrytextbox>
<div class=entrytext>
■ 日時2010年1月27日(水) 02:00 ~ 03:00<br />
<br />
ネットワークの安定運用の為に、ネットワークメンテナンスが実施されます
|