<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<CheckBox
android:id="@+id/checkBox2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Learning a lot" />
<TextView
android:id="@+id/ctv2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=" ?" />
<SeekBar
android:id="@+id/seekBar2"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:gravity="right"/>
</LinearLayout>
那就是xml中的代碼。 我想複選框和textview左對齊左側對齊和seekbar右對齊。我發現類似的主題,但我無法找到解決方案。 hmmmmmmm ......請幫我...如何將2個視圖對齊到線性佈局的左側和右側?
這工作......謝謝....喜歡這個答案 – 2014-09-28 08:19:58