[問題] 如何貼近左邊邊界?

看板AndroidDev作者 (阿偉蘇)時間9年前 (2014/07/11 15:57), 編輯推噓0(002)
留言2則, 2人參與, 最新討論串1/1
貼近左邊邊界 各位先進請教一下~ 我想把物件填滿整個視窗 如下圖左邊始終有個邊界無法貼近 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> -- My Photo Blog: http://digiphoto.techbang.com/users/awaysu -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.32.231.88 ※ 文章網址: http://www.ptt.cc/bbs/AndroidDev/M.1405065440.A.CB1.html

07/11 15:58, , 1F
android:paddingLeft 拿掉
07/11 15:58, 1F

07/11 16:04, , 2F
有了~感謝樓上! :)
07/11 16:04, 2F
文章代碼(AID): #1JlvZWon (AndroidDev)