AbsoluteLayoutで画像を設定しましたが、G1では全画面表示されませんが、Nexusで同じアプリケーションを実行すると正しく機能します。
アクティビティクラスにsetContentView(new Test(this))を設定しました。テストは私のAbsoluteLayoutクラスです。
私のコードは次のようになります:
public class Test extends AbsoluteLayout {public Test(Context context) {
super(context);
final RelativeLayout rl = new RelativeLayout(context);
final android.widget.RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(
LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
rl.setLayoutParams(params);
this.addView(rl, new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,
LayoutParams.FILL_PARENT));
ImageView mImageView = new ImageView(context);mImageView.setImageBitmap(((DataStorage)context.getApplicationContext()).getImage());
this.addView(mImageView); }}
G1モバイル画面で完全な画像が表示されない理由を誰かに教えてもらえますか?