Android SDKにはNinePatchを簡単につくるツール「draw9patch」が付属しています。9patchはビットマップイメージを高品位に拡大するためのフォーマットです。縮小には対応していませんが、1つの画像でいくつものサイズに対応できるため、効率的にアプリケーションサイズを圧縮できます。 右の画像ではTextViewの背景画像に9patchを適応したpngイメージを指定しています。2つのTextViewは改行の都合でアスペクト比が異なっていますが、9patchを使うことで背景画像のゆがみを抑制できています。 9patchまとめ リソースを節約しつつ高品位な背景が作れる 命名規則は画像のフォーマットに併せて最後尾に.9を付与(.9.pngなど) 画像の左と上の端1pxは拡大範囲を表す 画像の右と下の端1pxはコンテンツの範囲を表す(オプション) 以下は9patchの適用例(画像
角丸が綺麗に表示されない! ボタンを作りました! 角丸のボタンです。 早速ボタンの背景に設定しました。 なんてこったい 設定するボタンが大きすぎて背景画像が引き伸ばされてしまいます。 9patchを使おう! そこで9patchの出番です。 9patchは、画像よりモノが大きかった場合(今回は画像よりボタンが大きかった) 引き伸ばす部分を指定することで、画像の崩れを無くす事ができるのです! Fireworksでいう所の9スライスという機能に似ています。 先ほどのボタン画像に9patchの処理を施してみます。 できました! 上側と左側に黒い1ピクセルが見えますでしょうか? ちょっと拡大します。 拡大したのでボケてますが、これなら分かりますね。 9patchは上下左右に、アルファ無しの黒(#000000)の印を付けることで伸ばす部分を指定します。 上下左右それぞれ意味があります。 上と左の印は必
DB設計の神ツール「ERMaster」なら、ここまでできる:ユカイ、ツーカイ、カイハツ環境!(11)(1/3 ページ) 無料のEclipseプラグイン「ERMaster」とは データベースのテーブル設計を行うときに皆さんは、どのようにしているでしょうか? いくつかの無料で利用できるツールが提供されているので、筆者はそれらを利用していましたが、最近「ERMaster」と呼ばれるEclipseプラグインの存在を知りました。 ERMasterは、ほかのツールに比べ、直感的で分かりやすいUI(ユーザーインターフェイス)に、カスタマイズ可能な、Excelで出力できるテーブル定義書、辞書機能など痒いところに手が届くERモデリングのツールです。本稿では、このERMasterについてご紹介します。 ERMasterの主な特徴、8つ ERMasterには、主に次のような特徴があります。 【1】直感的で使いや
MylarはEclipseのサブプロジェクトであるTechnology Projectで開発されているプラグインで、Eclipseに対してタスクに焦点をあてたユーザインタフェースを提供することを目的としている。 統合開発環境は開発者に対して作業効率を向上させる様々な機能を提供する反面、開発者は統合開発環境が提供する膨大な情報の中から現在行うべき作業に必要な情報を探し出す必要がある。Mylarは「タスク」にフォーカスをあて、現在行うべきタスクに関連する情報のみを表示するユーザインタフェースを提供する。 また、MylarはBugzilla、JIRAおよびTracといったバグトラッキングシステムと連携し、これらのバグトラッキングシステムに登録されているレポートをタスクとして扱うことも可能だ。 Mylarは最初のメジャーリリースである1.0が2006年12月にリリースされたばかりの比較的新しいプラ
Adobe Labs - JSEclipse JSEclipse is a new plugin for the Eclipse environment that helps developers code JavaScript faster and with no errors. JavaScript編集に役立つEclipseプラグイン「JSEclipse」 コード補完機能やアウトライン機能など、Eclipse同様、便利な編集機能を提供してくれます。 Dojo, prototype.js, script.aculo.us, yahoo ui library, Qooxdoo などの補完にも対応しているようです。 なかなか便利そうですね。 関連サイト PHPエディタ - フリーのwindows用php統合開発環境 - phpspot
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く