0
10 개의 열과 3 개의 행으로 정렬되는 30 개의 이미지 버튼이 있습니다. 그러나 배열 할 수있는 스크롤 뷰를 가질 수 없습니다. 제발 도와주세요.이미지 버튼의 행렬의 가로 스크롤
10 개의 열과 3 개의 행으로 정렬되는 30 개의 이미지 버튼이 있습니다. 그러나 배열 할 수있는 스크롤 뷰를 가질 수 없습니다. 제발 도와주세요.이미지 버튼의 행렬의 가로 스크롤
사용 GridLayout
<?xml version="1.0" encoding="utf-8"?>
<HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" xmlns:app="http://schemas.android.com/apk/res/com.astuetz.viewpager.extensions.example">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<android.support.v7.widget.GridLayout
android:layout_width="match_parent"
android:layout_height="900dp" >
<!-- your buttons -->
</android.support.v7.widget.GridLayout>
</LinearLayout>
</HorizontalScrollView>
지원 라이브러리 v7 사용 – dumazy
가 더 자세한 정보를 포함, 그렇지 않으면 아무도 당신을 도울 수 없을 것입니다! –