私はアンドロイドの開発を始めましたが、なぜそれが起こっているのかは分かりません。あなたは私の二つの容器がまったく同じであっても、見ることができるように要素の位置づけ - 同じ行にない
:以下になり
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="@string/lbl_Title"
android:id="@+id/lbl_Title"
android:layout_marginTop="@dimen/activity_vertical_margin" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/editText"
android:layout_weight="2"
android:layout_marginTop="@dimen/activity_vertical_margin" />
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="@string/lbl_Title"
android:id="@+id/lbl_Date"
android:layout_marginTop="@dimen/activity_vertical_margin" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="-"
android:id="@+id/textView2"
android:layout_marginTop="@dimen/activity_vertical_margin" />/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
:ここで私はとのトラブルを抱えていたコードです第2のコンテナの下の未知の理由テキストは、第1の要素のわずかに上に位置する。なぜこれはそうですか?
P.S.これらのコンテナはRelativeLayout
パネルの下にあります。
私はあなたの問題を理解していません。あなたが望むものを正確に教えてくれますか? – Masum
2つのタイトルラベルが同じ仮想行にどのように揃っていないのですか? –