[Android] TextView の文字を中央寄せ(センタリング)する方法
- 2013 6/4
Android アプリ開発で TextView の文字を中央寄せ(センタリング)する方法をご紹介します。
Android アプリ開発で TextView の文字を中央寄せ(センタリング)する方法をご紹介します。
iPhone アプリを Xcode 経由で申請しようとしたら、エラーが発生しました。
The following issues were found during validation:
Your Info.plist contains the UINewsstandIcon sub-property under CFBundleIcons, which is intended for use with Newstand feature.
To include Newsstand features, the Info.plist must include the UINewstandApp=true Info.plist key.
ニューススタンド対応にしない場合は、Info.plist ファイルの Icon files (iOS5) の項目の Newsstand Icon の項目を削除すればOKです。
Android アプリ開発で、Toast 風な通知ビューをカンタンに表示するライブラリ「Crouton」が便利だったので、ご紹介します。
GitHub:
・keyboardsurfer/Crouton · GitHub
jar ファイルのダウンロードはこちらから:
・Maven Repository: de.keyboardsurfer.android.widget » crouton
ブログ記事:
・Useful Android Libraries: Crouton | Grokking Android
スライド資料:
・Crouton DevFest Berlin 2012 // Speaker Deck
他にも、Android-AppMsg というライブラリがありました。
・johnkil/Android-AppMsg · GitHub
・The Making of Prixing #4: In-layout Notifications – Cyril Mottier
Java で ArrayList#toArray を String[] にキャストする方法をご紹介します。
Android アプリ開発で、アラートダイアログ(AlertDialog)のタイトルを設定する方法をメモ。
final AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this); alertDialogBuilder.setTitle("タイトル!"); |
[参考]
Android アプリで、アクションバーで前のアクティビティに「戻る」ボタンを表示させる設定で、参考になった情報をメモ。
・親アクティビティを指定せずに作成したアクティビティに親を設定する – IKB: 雑記帖
.gitignore ファイルをカンタンに生成するサービス gitignore.io が便利なのでご紹介します。
Parse.com を使って Android アプリに Push 通知機能を実装したので参考になったリンクをメモ。
手順は、下記のページを参考にしました。
・Get Started with Android | Parse