雑多な技術系メモ

自分用のメモ。内容は保証しません。よろしくお願いします。

2015-12-03から1日間の記事一覧

railsでgoogle mapを使う際のマップのタッチ判定

サンプルを上げておく <div style='width: 800px;'> <div id="map" style='width: 800px; height: 400px;'></div> </div> <script type="text/javascript"> handler = Gmaps.build('Google'); //以下でマップのタッチ判定 google.maps.event.addListener(handler.getMap(), 'click', function(e){ }); </script>

Spriteの拡張の仕方

sprite拡張サンプル var MyAgent = enchant.Class.create(enchant.Sprite,{ initialize:function(){ enchant.Sprite.call(this, 32, 32) ; }, test:0 //属性の追加可能 } ) ;

popupWindowを画面中央に配置する時

以下のコードを参考 popupWindow.showAtLocation(anyViewOnlyNeededForWindowToken, Gravity.CENTER, 0, 0);

スクロールビューの付け方メモ

スクロールは、レイアウトファイルにを付け加えるだけ表示できる <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> </linearlayout>