Archive for 3月, 2013

 

titanium mobile : searchbar の高さがandroidでズレる。他

3月 30th, 2013

http://developer.appcelerator.com/question/129136/searchbar-cutoff-in-android iosでは綺麗ですが、androidのsearch bar は不格好。。。 これスタイル調整重要ですね。 とりあえず高さが上にくっついているので top: (isAndroid) ? 2: 0, のように振り分ける形で良さそうです。 === http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.SearchBar androidで起動時にsearchbarにfocusがあるので、キーボードがでる。。。 searchbar.blur(); を起動時に呼び出すとかでは上手く動かない? window生成時に { windowSoftInputMode:Ti.UI.Android.SOFT_INPUT_STATE_HIDDEN } を入れると大丈夫でした。 === search return 時に blurしないとfocusが取れない。 searchbar.addEventListener(‘return’,function(){ searchbar.blur(); } ); みたいな感じで外す。 * しかし、blurが効かない・・・のでdocsにあるようにhide and showをします。 searchBar.blur(); if( Ti.Platform.osname == ‘android’){ searchBar.value = ”; searchBar.hide(); searchBar.show(); } でもなんかイマイチなので諦めます。 テキストエリアの文字を消すというのが・・・

Read full article | コメントは受け付けていません。

titanium mobile : android debug

3月 30th, 2013

エミュレータでも実機でもテスト出来ていたのですが なぜか・・・インストールされても謎のエラーで [ERROR] Exception occured while building Android project: [ERROR] Traceback (most recent call last): [ERROR]   File “/Users/junichi/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/android/builder.py”, line 2392, in [ERROR] builder.build_and_run(False, avd_id, debugger_host=debugger_host) [ERROR] File ” /Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/android/builder.py”, line 2246, in build_and_run [ERROR] self.sdk.run_adb(['forward', forwardPort, forwardPort]) [ERROR] File ” /Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/android/androidsdk.py”, line 290, in run_adb [ERROR] raise Exception(err) [ERROR] Exception: error: […]

Read full article | コメントは受け付けていません。

titanium mobile : Titanium.Platform.DisplayCaps

3月 29th, 2013

width アンドロイドはpixels, ios は dipが返されるようです。 (dip : Device independent pixel (also: density-independent pixel) Absolute width of the display in relation to UI orientation. Measured in platform-specific units; pixels on Android and density-independent pixels (dip) on iOS. http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Platform.DisplayCaps iPhone 320 x480 iPad 768 x 1024 : 720 に併せて。 なので。 android は small 320 – iphone共通 medium […]

Read full article | コメントは受け付けていません。

titanium mobile : eventlistenerの削除とか

3月 29th, 2013

tableviewでスクロールされたら画像を読込むのを作ったら tableviewrowがかなり重くなりました。ページ遷移で、rowのlistは入れ替わるのですが 古いrowを明示的に消してないからその辺が貯まっていたようで。 主な原因はrowの中でti.app.eventlistenerを使っていたことのようでした、それが全て残っていて、反応している感じ。 せっかくなので、残っているだろう古いrowをすべて削除してみる ついでに出来るだけ、eventlistenerを使わず、親オブジェクトから操作するように変更。 とても良い感じになりました。 中のオブジェクトを全て綺麗にした方が良いようです。 http://www.masaplabs.com/titanium-memory-leak/ https://wiki.appcelerator.org/display/guides/Managing+Memory+and+Finding+Leaks

Read full article | コメントは受け付けていません。

titanium sdk – android sdk min version

3月 28th, 2013

titanium 2.1.2以降は android 2.2以上で使えるようです。 http://docs.appcelerator.com/titanium/3.0/#!/guide/Titanium_Compatibility_Matrix 2.1.2 – latest 2.2 (API 8) 4.1.x (API 16) android 2.1 の IS03が本格的に文鎮化 契約が無いので 2.2へアップデート出来ない。。。誰かアップデートしてください。 別の話ですが、画面サイズ対応のため、全て数値で設定してあるデザインは、ファイルに分けた方が良いようです。 (jss使っている方は全部jssに。 androidの対応ちょっと後回しです。動作は問題無さそうだから凄くもったいない。 とは言っても大きなアプリじゃなければ一日あれば完了するとは思います。2種類くらいに対応しようと思いますが。さて。

Read full article | コメントは受け付けていません。

ios device testのめも

3月 27th, 2013

xcodeのwindow->organizer identifierを確認 provisioning portalでdevicesに追加 http://support.apple.com/kb/DL1465 iphone configration utilityを使ってバックアップ key chain access で 開発用のcsrを作る https://developer.apple.com/ios/manage/certificates/team/create.action submitする。 provisioningを登録する。ダウンロードする。 titaniumでdebug on iOS deviceを選択 プロビジョニングとかちゃんと登録されるとitunesで実機転送出来る。 出来た。 かなり使えないメモだ・・・

Read full article | コメントは受け付けていません。

titanium mobile | 2,3日目

3月 27th, 2013

ロジックは、javascriptなので、特に問題ないのですが、UI作成が、肝になりそうです。 iOS用のものをそのまま使うのが、ユーザー的にも良いのですが、いろいろ試しながらヘッダーやフッターを入れてみたり 簡単な部品はだいぶ慣れてきたかなと。 メニューや枠の動きなどもいろいろ出来てきたので、もう少し整理したら公開前バージョンが出来そうです。 今更言うことでもないのでしょうが、デザイナーの方であれば、javascriptを頑張ったらかなりかっこいいアプリが作れそうです。 と思ったのですが、javascriptもobjective-cも初見であれば、学習コストに差はあまりでないのかもしれません。 javaとか慣れてる人はobjective-cのほうが楽な可能性もありますね

Read full article | コメントは受け付けていません。

fluent-plugin-redis-event-rank | github

3月 26th, 2013

https://github.com/junichi-otake/fluent-plugin-redis-event-rank にコードをあげました。

Read full article | コメントは受け付けていません。

「桐島、部活やめるってよ」「鍵泥棒のメソッド」@目黒シネマ

3月 25th, 2013

両方面白かったです! 目黒シネマ、おすすめです!ご近所の方は是非。 「桐島、部活やめるってよ」 青春小説だそうです。予告は見ないほうが良いかも ・タイトル ・主題歌 が良いです。面白いのですが、面白いのを期待してみる感じではないです。 ミステリーでもサスペンスでもなく青春小説。と言われてなるほどという内容。 タイトルが秀逸。 「鍵泥棒のメソッド」 これは最高に面白いので是非見てください。 完璧な映画です。これも予告みない方が良いかも。 あえて言うならタイトルがイマイチ。メソッドってなんだよって感じで、「鍵泥棒」のほうが良かった。 両方面白いので、DVD出たら是非どうぞ

Read full article | コメントは受け付けていません。

moqupsでワイヤーフレーム

3月 23rd, 2013

簡単な配置イメージを伝えるのに良さそうです。 複数ページのリンクも出来るので便利ですね。 http://moqups.com

Read full article | コメントは受け付けていません。