2011-06-24 6 views
0

テーブルレイアウトに画像を表示しようとしています。画像が撮影されると画像が表示されます。画像が表示されると、画面全体が表示され、結果が消えます。 どうすればこの問題を解決できますか? おかげTableRowの画像ビュー

XMLファイル

 </TableRow> 
     <TableRow android:id="@+id/ImageViewRow"> 
      <ImageView android:id="@+id/ImageView01" 
       android:adjustViewBounds="true" android:maxWidth="400dip" 
       android:maxHeight="400dip" android:layout_width="wrap_content" 
       android:layout_height="wrap_content"> 
      </ImageView> 
     </TableRow> 
     <TableRow> 
      <Button android:id="@+id/buttonPrevious" android:text="@string/buttonPrevious" 
       android:width="150px" android:layout_width="wrap_content" /> 
      <Button android:id="@+id/buttonSave" android:text="@string/buttonSave" 
       android:layout_width="wrap_content" android:width="150px" /> 
     </TableRow> 
    </TableLayout> 
</LinearLayout> 

* 活動*

答えて

2

最大幅と高さを非常に大きなサイズに設定しています。これが電話のアプリケーションであれば、私はあなたが描いている行動を期待しています。あなたのテーブルレイアウト内の画像の最大サイズを縮小しようとしましたか?

+0

何らかの理由で、以前は仕事ができなかった。私の愚かな見落としだった! – jsp

関連する問題