Android アプリ の背景画像を中央寄せにする方法

Android端末よりも小さい画像を背景に設定しようとしたとき
レイアウトファイル(XMLファイル)で

android:gravity=”center”
android:background=”@drawable/bgfile”

としていたんですが、どうにも中央寄せされずに困っていました。

少し調べてみたら、
「android:layout_gravity」
という属性を発見。

android:layout_gravity=”center”
android:background=”@drawable/corkboard02″

としてみたら思い通に表示されました。

「android:gravity」
は、記述したビューの中身(子要素)に対して位置を指定し

「android:layout_gravity」
は、記述したビューの位置を親要素に教える

といった動きをするようです。

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

how to center a background image on Android app

Android when trying to set the background image is smaller than the terminal
Layout (XML file)

android: gravity = “center”
android: background = “@ drawable / bgfile”

But I was trying was not centered in any way troubled.

Do you know a little
“Android: layout_gravity”
Discover attribute.

android: layout_gravity = “center”
android: background = “@ drawable/corkboard02″

Why do I have been trying to see through.

“Android: gravity”
The view that describes the contents of the (child element) and specify a location for

“Android: layout_gravity”
Is to teach the parent element that describes the position of the view

I like to move.

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

スターウォーズ R2D2 のAndroid端末!?

Android搭載端末は世界中で続々と発売されています。

つい先日は、米Verizon Wireless社と米Motorola社から
『DROID 2』
という新しいAndroid端末が発表されました。

もちろん、最新の Android 2.2 Froyo 搭載モデルです。

しかも、スターウォーズに登場するロボット『R2D2』をイメージした特別バージョンが9月にオンラインストア限定で発売されるそうです。

wpid-145602335.jpg

こういう遊び心、いいですねニコニコ

R2D2バージョンの詳細はまだ不明だそうです。

乞うご期待!

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

Star Wars R2D2′s Android phone! ?

Android powered handsets are sold worldwide and More.

Recently, the U.S. company Verizon Wireless from Motorola Inc. and the U.S.
[DROID 2 』
Android was announced that the new terminal.

Of course, the latest model with Android 2.2 Froyo.

Moreover, the robot R2D2 [Star Wars appear to be available for a limited 』s online store in September, a special version of the image.

R2D2 Droid

Such a sense of fun, I hope

R2D2 version is likely more remains to be seen.

Stay tuned!

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

Android 2.2 Froyo 新機能まとめ

Android 2.2 Froyo (Frozen Yogurt) が発表されてしばらく経ちましたが
いまさらながら新機能をまとめてみました。

・Dalvik VM にJITコンパイラを搭載し、2〜5倍高速化
・JavaScriptがV8になり、2〜3倍高速化
・エンタープライズ関係の機能強化
・クラウドとデバイスの連携API
・テザリング対応
・傾き情報・方位磁石・カメラ入力・マイク入力が
ブラウザで受け取れるようになった
・ Adobe Flash対応
・インストール済アプリの自動更新
・クラッシュ時のバグレポートの送信
・パソコン上のコンテンツを端末へストリーミング
・Linuxカーネル 2.6.32

JITコンパイラとは、
Jet-in-Time コンパイラのことで
Javaコードが2~5倍高速化するそうです。

先日のABC(Android Bazaar and Conference)にてデモをみましたが
確かにずいぶんと早く感じました。

あと個人的に嬉しいのは
Flash対応とアプリ自動更新機能ですね。

私はアプリを大量にインストールしてるんですが
少しほうっておくとアップデート通知がたくさんたまってしまうんです(^_^;)

Androidマーケットにいって、
イチイチひとつずつアップデートするのはめんどくさい・・・

ってほうっておくと、さらにアップデート通知がたまるという悪循環(=_=;)

これが一括でアップデートできるようになるのは嬉しいですね。

しかし、Xperiaが2.2にバージョンアップされる日は来るのか・・・?

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

Android 2.2 Froyo New Features Summary

Android 2.2 Froyo (Frozen Yogurt) has been announced for a while passed
I once nearly impossible with the new features.

- Dalvik VM equipped with a JIT compiler, two to five times faster
The V8 · JavaScript, and the two to three times faster
- Enhanced Enterprise Relationship
- Cloud and device integration API
- Supports Tethering
- The camera microphone – input the inclination compass information
Browser now receive
- Adobe Flash support
- Automatic Updates installed apps
- Send bug report – Crash
- Streaming content on a PC terminal
- Linux kernel 2.6.32

And JIT compiler
By Jet-in-Time Compiler
Java 2 code five times faster through it.

The recent ABC (Android Bazaar and Conference) tried to demo
I felt pretty fast indeed.

I personally am of the rest
It is Flash-enabled applications auto-update feature.

Although I’m installing a large number of applications
I would notice a lot of build up and update a little bit left on (^_^;)

Went to Android Market
One by one to update the troublesome ichi ichi

And left on me, even vicious circle builds up (=_=;) Update Notification

The bulk will be able to update it’s great.

However, Xperia is the day on which version 2.2 has come?

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

Android 2.1 プログラミングバイブル

「ゲームアプリでも作りたいな~」
「なんかいい本ないかな~?」
と思っていたときに発見した書籍。

サンプルコードもダウンロード可能で
もぐらたたき、ロールプレイングゲーム、Twitterクライアントなどを
すぐに動かすことが可能です。

Android 2.1 にも対応していて
Bluetooth通信、ライブウォールペーパーの解説も入ってます。

「バイブル」と銘打ってあるだけあり、
いつも手元において重宝しています♪

Android2.1プログラミングバイブル

カテゴリー: Android 関連書籍 | 13件のコメント

Android 2.1 Programming Bible

“Even in a make-gaming.”
“Why not something like a good book?”
It was discovered when the book I thought.

You can also download the sample code
Mole, role playing, Twitter and other clients
You can move quickly.

Android 2.1 support they also
Bluetooth communication, Raibuuorupepa It contains a commentary.

“Bible” only has one, dubbed
♪ has always come in handy in the hand

Android 2.1 Programming Bible

カテゴリー: Android 関連書籍 | 5件のコメント

Android ドキュメント日本語翻訳プロジェクト

Android の開発者サイトのドキュメントって、当然ですが英語なんですよね。

この英語の壁が、日本人の Android アプリ 開発 のひとつの壁になっているのは否めないと思います。

私も
『リファレンスが日本語だったらいいのに!』
となんど思ったかわかりません

そんな Android の英語ドキュメントを 日本語 に翻訳しようというプロジェクトが発足したようです。

日本Androidの会が中心となって、プロジェクトを推進しています。

なんとも素晴らしい♪

プロジェクトでは、一緒に翻訳作業を進めてくれる方を募集しているそうです。

リファレンスの量も膨大ですからね。

日本の Android 普及に貢献するためにも
我こそはという方はぜひ参加してみてください。

プロジェクト詳細については、下記URLまでどーぞ。

(参考)
Androidドキュメント日本語翻訳プロジェクト(ML)
http://groups.google.co.jp/group/android-docs-jp?hl=ja

プロジェクトサイト
http://sourceforge.jp/projects/android-docs-ja/devel/

Wiki
http://sourceforge.jp/projects/android-docs-ja/wiki/FrontPage
翻訳プロジェクトに参加するために理解しておかなければならないルールや翻訳に必要なツールの導入方法、使い方など

翻訳成果公開Webサイト
http://android-docs-ja.sourceforge.jp/
(試験公開中)

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

Android Documentation Japanese translation project

What Android developer documentation site, I’m English I course.

English wall, the Japanese Android has become one of the walls of application development would not be denied.

I
I wish I could [Japanese reference! 』
I thought many times and I do not know

Android seems to have started such a project to translate English documents into Japanese.

Android is the center of Japan Association has been promoting the project.

An amazing ♪

The project is likely that the client is looking for translators working with us.

Because it is a large amount of reference.

Japan’s Android also contribute to the spread
Only that way we please join us.

For more information about the project the following URL to Dozo.

(Reference)
Japanese Document Translation Project Android (ML)
http://groups.google.co.jp/group/android-docs-jp?hl=ja

Project Site
http://sourceforge.jp/projects/android-docs-ja/devel/

Wiki
http://sourceforge.jp/projects/android-docs-ja/wiki/FrontPage
Incorporating the tools necessary to translate the rules and we must understand in order to participate in the translation project and how

Web Site Translation published results
http://android-docs-ja.sourceforge.jp/
(Published in the test)

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