ScrollView が FrameLayout 内で機能しない

アビジットチャクラ

以下は私のコードです。配置したときにレイアウトを奇妙にスクロールできません scrollview

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#0099cc"
    tools:context="willapp.stpl.com.willapp.util.ActivityPrintView">
    <ScrollView
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:fillViewport="true"

        android:orientation="horizontal">



    <!-- The primary full-screen view. This can be replaced with whatever view
         is needed to present your content, e.g. VideoView, SurfaceView,
         TextureView, etc. -->

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:id="@+id/rootLayout">


        <LinearLayout
            android:id="@+id/table1heading"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            >

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Select executer's relationship"
                android:id="@+id/txtHeading"/>

        </LinearLayout>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal"
            android:padding="5dp"
            android:id="@+id/mainactivity_layoutName"
            android:layout_below="@+id/table1heading"
            android:layout_centerVertical="true" >

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:id="@+id/mainactivity_txtLabelName"
                android:text="Full Name:"/>

            <View
                android:layout_width="0dp"
                android:layout_height="0dp"
                android:layout_weight="1">

            </View>
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:id="@+id/mainactivity_txtValueName"
                android:text="Sssdadaad"/>

        </LinearLayout>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal"
            android:id="@+id/mainactivity_layoutLine1"
            android:padding="5dp"
            android:layout_below="@+id/mainactivity_layoutName"
            android:layout_centerVertical="true" >

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:id="@+id/mainactivity_txtLabelLine1"
                android:text="Address Line1:"/>

            <View
                android:layout_width="0dp"
                android:layout_height="0dp"
                android:layout_weight="1">

            </View>
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:id="@+id/mainactivity_txtValueLine1"
                android:text="Sssdadaad"/>

        </LinearLayout>





        </RelativeLayout>
</ScrollView>



</FrameLayout>
クロスソヴォチキン

代わりScrollViewに使用してみてくださいLinearLayoutRelativeLayout

このようなもの:

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#0099cc"
    tools:context="willapp.stpl.com.willapp.util.ActivityPrintView">
    <ScrollView
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:fillViewport="true"

        android:orientation="horizontal">


        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

       // and here your main Relative layout

       </LinearLayout>

    </ScrollView>
</FrameLayout>

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

ScrollViewがCardView内で機能しない

分類Dev

ScrollView内のRecyclerViewが機能しない

分類Dev

ViewPager内のScrollViewが機能しない

分類Dev

ScrollView内のViewPagerが機能しない

分類Dev

ScrollViewが機能しない

分類Dev

ScrollViewが制約レイアウト内で機能しない

分類Dev

ScrollviewがCardviewで機能しない

分類Dev

ScrollViewがRelativeLayoutで機能しない

分類Dev

ScrollViewでCalendarViewとFrameLayoutを使用する

分類Dev

角が丸いFrameLayout

分類Dev

ViewPager内のScrollView:スワイプが機能しない

分類Dev

別のscrollview内のscrollviewが機能していません

分類Dev

独自のFrameLayoutクラスの作成が機能しない

分類Dev

ScrollViewのSwiftUITapGestureとLongPressGestureで、タップ表示が機能しない

分類Dev

ScrollViewのSwiftUITapGestureとLongPressGestureで、タップ表示が機能しない

分類Dev

ScrollViewが固定フッターで機能しない

分類Dev

NestedScrollView(およびScrollView)がConstraintLayoutで機能しない

分類Dev

ScrollViewがSimpleAccordianビューで機能しない/

分類Dev

react-nativeのScrollViewでflexが機能しない

分類Dev

ViewWillAppearがScrollViewサブビューで機能しない

分類Dev

TextView垂直重力がScrollViewで機能しない

分類Dev

ScrollViewがエミュレータで機能しない

分類Dev

React Native、iOS-ScrollViewがデバイスで機能しない

分類Dev

ScrollViewがレイアウトで機能しない

分類Dev

ScrollView内のSwiftUIアニメーションが機能しない

分類Dev

ScrollView内のSwiftUIアニメーションが機能しない

分類Dev

LinearLayoutウェイトがScrollView内で機能していませんか?

分類Dev

ScrollViewのListViewとFrameLayout [BUG]

分類Dev

ScrollViewを使用したKeyboardAvoidingViewがreact-nativeまたはexpoで機能しない

Related 関連記事

  1. 1

    ScrollViewがCardView内で機能しない

  2. 2

    ScrollView内のRecyclerViewが機能しない

  3. 3

    ViewPager内のScrollViewが機能しない

  4. 4

    ScrollView内のViewPagerが機能しない

  5. 5

    ScrollViewが機能しない

  6. 6

    ScrollViewが制約レイアウト内で機能しない

  7. 7

    ScrollviewがCardviewで機能しない

  8. 8

    ScrollViewがRelativeLayoutで機能しない

  9. 9

    ScrollViewでCalendarViewとFrameLayoutを使用する

  10. 10

    角が丸いFrameLayout

  11. 11

    ViewPager内のScrollView:スワイプが機能しない

  12. 12

    別のscrollview内のscrollviewが機能していません

  13. 13

    独自のFrameLayoutクラスの作成が機能しない

  14. 14

    ScrollViewのSwiftUITapGestureとLongPressGestureで、タップ表示が機能しない

  15. 15

    ScrollViewのSwiftUITapGestureとLongPressGestureで、タップ表示が機能しない

  16. 16

    ScrollViewが固定フッターで機能しない

  17. 17

    NestedScrollView(およびScrollView)がConstraintLayoutで機能しない

  18. 18

    ScrollViewがSimpleAccordianビューで機能しない/

  19. 19

    react-nativeのScrollViewでflexが機能しない

  20. 20

    ViewWillAppearがScrollViewサブビューで機能しない

  21. 21

    TextView垂直重力がScrollViewで機能しない

  22. 22

    ScrollViewがエミュレータで機能しない

  23. 23

    React Native、iOS-ScrollViewがデバイスで機能しない

  24. 24

    ScrollViewがレイアウトで機能しない

  25. 25

    ScrollView内のSwiftUIアニメーションが機能しない

  26. 26

    ScrollView内のSwiftUIアニメーションが機能しない

  27. 27

    LinearLayoutウェイトがScrollView内で機能していませんか?

  28. 28

    ScrollViewのListViewとFrameLayout [BUG]

  29. 29

    ScrollViewを使用したKeyboardAvoidingViewがreact-nativeまたはexpoで機能しない

ホットタグ

アーカイブ