私は私が作成しようとしているものを... Androidのレイアウトに問題を抱えているが、これに似たものです"image1"と2を一緒にする。何もしなかったImageViews自身、上の「右」:layout_gravity:私もアンドロイドを入れて試してみました2行のAndroidのテーブルのレイアウトで問題と右揃え
<?xml version="1.0" encoding="UTF-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<TableRow android:layout_gravity="left" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_gravity="left|center_vertical"
android:layout_span="2"
android:paddingRight="5dip"
android:textColor="#ffffffff"
android:textSize="13dip" />
</TableRow>
<TableRow android:layout_gravity="right" >
<ImageView
android:layout_width="50px"
android:layout_height="120px"
android:layout_column="1"
android:layout_marginLeft="15dip" />
<ImageView
android:layout_width="263px"
android:layout_height="150px"
android:layout_column="2"
android:layout_marginLeft="15dip" />
</TableRow>
</TableLayout>
:とにかく、ここで
は、私は、Androidで使用しているレイアウトです。なんらかの理由で、このAndroidレイアウトは常にラベルをインデントします(列をまたいではありません)。また、2行目のものは正しく並べることはありません。何が間違っているのか分かりません。これはAndroid 2.1です。誰でも知っていますか?
これを試してみます。実際にはpxを使うのはデバイスのピクセル幅に基づいているため、これに基づいて高さ/幅を変更するので、ピクセル(デバイスピクセルに基づいてサーバー上で生成されたイメージ)が使用されます。残りはあなたが正しいですが、それは簡潔さのためにすべて取られました – automaton
私はこれを試したので、実際にお互いの上にすべてを束ねました。私は別の方法で解決策を見つけました。 – automaton