スクリーンショット機能を使います。
⌘ + Shift + 4 でスクリーンショットのカーソルをだします
![]() |
| スクリーンショットの範囲指定カーソル |
その状態でドラッグするとスクリーンショットの範囲を指定出来ます
このときカーソルにピクセル数が表示されるため、定規としても使えます。
![]() |
| 範囲の幅と高さがピクセルで表示される |
ドロップせずに ESC キーを押せばスクリーンショットを撮らずに終了出来ます。
![]() |
| iOSアイコン風 |
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world" />
![]() |
| @string/hello_world が Hello world! になっている |
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">String</string>
<string name="action_settings">Settings</string>
<string name="hello_world">Hello world!</string>
</resources>
public static final class string {
public static final int action_settings=0x7f050001;
public static final int app_name=0x7f050000;
public static final int hello_world=0x7f050002;
}
@media screen (orientation:portrait) {
/* 画面が縦のときのスタイル */
}
@media screen (orientation:landscape) {
/* 画面が縦のときのスタイル */
}
![]() |
| overflow: auto; にしても勝手に改行される |
![]() |
| word-wrap: normal; を指定すると改行されなくなった |
<script src='https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js?skin=default'/>
<style>
pre.prettyprint {
overflow: auto;
word-wrap: normal;
}
</style>
![]() |
| これが一番楽 |
![]() |
| 赤文字のログが永遠に出続ける |
04-18 07:17:04.518: E/DataRouter(1832): usb connection is true 04-18 07:17:04.518: E/DataRouter(1832): InvokeOemRequestHookRaw usbstatus true is success 04-18 07:17:06.523: E/DataRouter(1832): usb connection is true 04-18 07:17:06.523: E/DataRouter(1832): InvokeOemRequestHookRaw usbstatus true is success 04-18 07:17:08.523: E/DataRouter(1832): usb connection is true 04-18 07:17:08.523: E/DataRouter(1832): InvokeOemRequestHookRaw usbstatus true is success 04-18 07:17:10.523: E/DataRouter(1832): usb connection is true 04-18 07:17:10.523: E/DataRouter(1832): InvokeOemRequestHookRaw usbstatus true is success
tag:^((?!DataRouter).*)$
| フィルタを設定 |
![]() |
| 設定したフィルタを保存 |
![]() |
| フィルタを選ぶと DataRouter を無視 |
![]() |
| layout への参照が R.java へ自動的に追加されている |
![]() |
| activity_main_2 が表示される |
<TextView
android:id="@+id/text_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world" />
protected void onStart() {
super.onStart();
TextView textview = (TextView)findViewById(R.id.text_view);
Log.d("TextView", textview.getText().toString());
}
![]() |
| res/layout/***.xml がインタフェース |
![]() |
| ここをクリックして |
![]() |
| コードを表示 |
![]() |
![]() |
| いろいろとはいっている |
![]() |
| Enclipse がまるごと入っている |
![]() |
| Android の API やエミュレータなどが同梱 |
| 実機で動くと嬉しい |
![]() |
| 3DS のウェブブラウザで遊べます |
![]() |
| 9つの穴からもぐらが出現 |
![]() |
| ランキングに登録 |
![]() |
| ランキング画面 |
![]() |
| もぐらたたき |
![]() |
| コンテンツの上下に1画面分の空白が作られる |
![]() |
| 理想的にはこの状態で固定したい |
![]() |
| 空白も含めてスクロールできてしまう |