[英]Using android studios scroll View
您好stack Over Flow社區,我在這里以及android studio都是新手,對不起,我事先寫錯了什么。我對android中的滾動視圖有疑問,如下所示
1)如下圖所示,在android studio中使用滾動視圖之后,並且在滾動視圖或水平滾動視圖已填滿屏幕之后,其余組件在屏幕上不可見,而只能使用該組件進行修改或編輯樹形窗口或Xml編輯器讓我可以通過增加屏幕大小或滾動屏幕本身來查看屏幕上元素的完整視圖。 沒關系紅色圓圈
不太確定這是否適合您的情況,但這確實使我的項目感到驚訝。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_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"
android:background="#ffffff">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="false"
android:layout_margin="10dp"
android:id="@+id/scrollView">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:weightSum="1"
android:layout_centerVertical="true"
android:layout_alignLeft="@+id/scrollView"
android:layout_alignStart="@+id/scrollView">
//PLACE YOUR ELEMENT/s HERE INSIDE LINEAR_LAYOUT.
</LinearLayout>
</ScrollView>
</RelativeLayout>
沒有您的代碼,我無法真正測試它,但是到目前為止,我一直在使用這種格式進行滾動及其工作^^
讓我知道它是否有效,也許我可以幫助您找出一個
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.