Android ScrollView無法填充滿屏幕的解決辦法
ScrollView滾動視圖是指當擁有很多內容、屏幕顯示不完時、需要通過滾動跳來顯示的視圖、Scrollview的一般用法如下
以下代碼在Scrollview里面放了一個RelativeLayout、并且是設置為Android:layout_height="match_parent"填充全屏的和RelativeLayout里面放置了一個TextView背景設為了一張圖片、按照代碼理解、圖片應該是居于屏幕的最下方的
<ScrollView android:layout_width="match_parent" android:layout_height="match_parent" > <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/common_background" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_alignParentBottom="true" android:background="@drawable/bottom_bg" /> </RelativeLayout> </ScrollView>
網頁標題:AndroidScrollView無法填充滿屏幕的解決辦法-創新互聯
標題來源:http://newbst.com/article18/dggcgp.html
成都網站建設公司_創新互聯,為您提供用戶體驗、網站收錄、關鍵詞優化、標簽優化、外貿建站、App開發
聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯