Eclipse から、Android Studioに移行し改めて操作方法などを確認しておりまして、
そのちょっとしたメモ。気になったところは随時追記予定。
(Eclipse環境においても実現できるものもあります)
Textタブ
string.xmlへの書き出し
TextViewなどのtextをstring.xmlへ書き出す。
書き出し対象上で、ショートカットメニューの表示(mac で、 alt + enter)
Extract string resource
を選択
プレビュー
解像度の調整や向きの変更などに合わせて
表示の切り替えが可能。
Designタブ
id/textの変更
ダブルクリックで。
編集可能
Textタブへの切り替え(選択パーツ箇所)
ショートカットでは、
Cmd + B
右クリックで、Go To Declaration
選択パーツの別ファイル書き出し
例えば、ヘッダとかフッターとか別ファイルにして読み込む事があったりするので。
<include layout="@layout/header" />
みたいな感じで。
Refactor → Extract Layout
選択パーツの切り替え(Morphing)
attrがそのままなので、注意が必要。