私のアプリケーションでは、次の例のようなカスタムビルドビューに依存することがよくあります。 EclipseビジュアルエディタのカスタムAndroidビュー
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:background="@color/light_grey"
android:layout_height="match_parent"
android:layout_width="fill_parent" >
<TextView
style="@style/CardTitle"
android:id="@+id/card_title"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
/>
<com.whiterabbit.cards.ui.AspectRatioImageView
android:id="@+id/card_picture"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:layout_marginLeft="30dip"
android:layout_marginRight="30dip"
android:src="@drawable/boss"
/>
<ListView
android:id="@+id/card_properties"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
問題がある
、私は実際のデバイスまたはエミュレーター上で実行されるまで、それが正しく表示されます場合、私は方法がわかりません。さらに、私が何か間違ったことが見つかった場合は、変更を加えて、アプリケーションが再び展開され、期待通りの変更が行われたかどうかを確認する必要があります。これは、特にアプリケーションが確認したいアクティビティにアクセスするために何らかのやりとりを必要とする場合、長くて退屈なプロセスです。
ビジュアルエディタを使用すると、カスタムビューを読み込めないため、機能しません。
アプリケーション全体でビューを表示せずに表示する方法を確認する別の方法はありますか?
(... onSizeChanged、onLayout、など)のビューを再描画任意のイベントのためだけでなく走る私の質問を改訂してくれてありがとう@Blundellを – fedepaol