カテゴリー別アーカイブ: Android アプリ 関連 情報

LinearLayout をスクロールさせる方法

LinearLayout って コンポーネントが増えたら自動でスクロールバーがつくのかと思ってたら そんなことはないんですね(汗) 下の方がしっかりはみ出て、見えなくなっちゃいました。 android:scrollbars みたいな属性もあるので試してみたけれど上手くいかない・・・。 そしたら「ScrollView」というのがあって 「これ使ったら上手くいくじゃん!」 と思ってやってみたらエラー・・・。 どうやら ScrollView は 子コンポーネントを1つしか持てないみたいです。 で、けっきょくどうしたらいいかと言うと こうやったら解決しました。 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"> <ScrollView android:layout_width="fill_parent" android:layout_height="wrap_content" > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center" >   ここにコンポーネントを記述。 TextViewやらImageViewやらButtonやら。   </LinearLayout> … 続きを読む

カテゴリー: Android アプリ 関連 情報 | 2,979件のコメント

How to scroll LinearLayout

I LinearLayout What I thought more people automatically get a scroll bar component I’m not such a thing (sweat) Firmly protruding lower, I felt invisible. android: scrollbars I tried but not successful because some attributes like that. Then “ScrollView” that … 続きを読む

カテゴリー: Android アプリ 関連 情報 | 4件のコメント

CheckBox だけを右寄せにする方法

ListView でも LinearLayout でもいいんですが、 一行のアイテムの中で 左側に TextView、右側に CheckBox を表示したいときとか、 どうやってCheckBoxを右寄せにしたらいいかわかりませんでした。 文章だけだと何言ってるかわかんないかもしれませんが 同じようにハマっている方ならわかってもらえると思います(笑) ↑こうやりたい android:layout_widthを調整したり android:gravityをいじってみたりしたんですが、 CheckBoxが消えて見えなくなっちゃったり、 両方左に寄っちゃったりして どうも上手くいかない。 カギは android:layout_weight にありました。 以下のようにすると上手く表示されます。 <LinearLayout android:orientation="horizontal" android:gravity="center_vertical" android:layout_height="wrap_content" android:layout_width="fill_parent"> <TextView android:id="@+id/TextView01" android:textAppearance="?android:attr/textAppearanceLarge" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="TEXT"> </TextView> <CheckBox android:id="@+id/CheckBox02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="right"> … 続きを読む

カテゴリー: Android アプリ 関連 情報 | 5件のコメント

CheckBox only way to right-justify

But I hope LinearLayout ListView, but Line item in Left TextView, if you want to display to the right or CheckBox, CheckBox did not know how do I align the. I do not know what you might say it is … 続きを読む

カテゴリー: Android アプリ 関連 情報 | 9件のコメント

finish() でActivity が終了しない

よくAndroid関連の書籍やサイトなどで 『 finish() で Activity を終了させる』 と書いてあるんですが、 ちょっと微妙な思い違いをしていたようで めちゃめちゃハマってしまいました(=_=;) finish() は、 『Activity を即時終了させる』 と思っていたんですが、 どうやらそうでないようです。 とあるアプリを開発していて ある条件下で Activity を終了させたくて finish() を使っていたんです。 こんな感じ↓ — 前処理; if (式) finish(); 後処理; — そしたら、どうも finish() が効いていないようで 後処理の部分でエラーで落ちてしまう・・・。 試しに、 — Log.d(“CHECK”, “before finish()”); finish(); Log.d(“CHECK”, … 続きを読む

カテゴリー: Android アプリ 関連 情報 | 4件のコメント

finish () does not terminate in Activity

Well sites, and books relating to the Android [Finish () to terminate in the Activity] But I have written, The misunderstanding seems to have been a little sensitive I hooked (=_=;) wreck finish () is Immediately terminate] [Activity But I … 続きを読む

カテゴリー: Android アプリ 関連 情報 | 13件のコメント

App Inventorがバージョンアップ

プログラミング不要でAndroidアプリが作れる App Inventorがバージョンアップされました。 自分の使っているApp Inventorが最新のものになっているかは ブラウザの右下にあるバージョンを確認して “Build: Tue Sep 14 18:05:48 2010 (1284512748) — 17278198″ になっていれば、最新の状態になってます。 もし最新になっていなければ、 ブラウザをリロードして最新バージョンにアップデートしてください。 今回のバージョンアップで解消されたバグ・新機能は以下のとおり。 – Add a new ‘Scrollable’ property to Screens to control whether it is scrollable. – Improve the buggy behavior of Fill … 続きを読む

カテゴリー: Android アプリ 関連 情報 | 15件のコメント

App Inventor is upgraded.

The application can be made without programming Android App Inventor has been updated. Do you use your App Inventor has become the latest thing Check the bottom right of the browser version “Build: Tue Sep 14 18:05:48 2010 (1284512748) – … 続きを読む

カテゴリー: Android アプリ 関連 情報 | 2件のコメント

Android ドキュメントが 日本語 で読めるサイト

Androidのドキュメントは基本的に英語なので 英語が読めない人にはアプリ開発はちょっとハードルが高いようです。 以下のサイトは、一部ですが日本語に翻訳されたものが掲載されています。 ソフトウェア技術ドキュメントを勝手に翻訳-Android 開発ガイド http://www.techdoctranslator.com/android それと、現在日本でも Androidドキュメント翻訳プロジェクトが正式に発足しているようです。 Androidドキュメント日本語翻訳プロジェクト(android-docs-jp) http://groups.google.co.jp/group/android-docs-jp?hl=ja (有用なものがそろうのは、少し先になりそうですが・・・) この翻訳プロジェクト、 翻訳者はたくさんいるんですがレビューする人が少なくて、 頓挫してしまいそうなんだそうです・・・。 翻訳は英語力が求められますが、 レビューアーはそこまで求められません。 我こそはという方、 勉強がてらぜひ参加してみてください。

カテゴリー: Android アプリ 関連 情報 | 29件のコメント

Read site in Japanese documents Android

Android documentation in English, so basically Application developers who can not read English is a little like a high hurdle. The following sites are listed that have been translated into Japanese is a part. Freely translated technical documentation software-Android Developer’s … 続きを読む

カテゴリー: Android アプリ 関連 情報 | 41件のコメント