[问题] 如何贴近左边边界?

楼主: awaysu (阿伟苏)   2014-07-11 15:57:17
贴近左边边界
各位先进请教一下~
我想把物件填满整个视窗
如下图左边始终有个边界无法贴近
https://farm6.staticflickr.com/5576/14439362649_c877eb78e8.jpg
请问要怎么修改才可以让VideoView贴近左边边界
感谢~
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginTop="0dp" >
<VideoView
android:id="@+id/videoView1"
android:layout_width="640dp"
android:layout_height="360dp" />
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world" />
......
</LinearLayout>
</RelativeLayout>
作者: passli   2014-07-11 15:58:00
android:paddingLeft 拿掉
楼主: awaysu (阿伟苏)   2014-07-11 16:04:00
有了~感谢楼上! :)

Links booklink

Contact Us: admin [ a t ] ucptt.com