나는 수평으로도 수직으로도 만들려고합니다 ScrollableLayout
. 수평 적으로나 수직으로 스크롤 가능한 레이아웃을 만들었지 만 양면으로 만들 수는 없었습니다.ScrollableLayout 가로 및 세로 모두 만들기
HorizontalScrollView
안에 ScrollView
을 넣으려고했는데, 그렇게하면 가로가 줄어 듭니다. 여기 내 코드는 다음과 같습니다.
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ScrollView
android:id="@+id/mainLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</ScrollView>
</HorizontalScrollView>
내 Java 코드로 내보기를 추가하고 있습니다.
이 [질문] 참조 (https://stackoverflow.com/questions/2044775/scrollview-vertical-and-horizontal-in-android) – FarshidABZ