首页 > 解决方案 > 可缩放的自定义 Gridview 列表

问题描述

我有由 Baseadapter 类实现的自定义 gridview 列表。每个网格包含三个文本视图。我已经准备好我的代码,我只想要一个解决方案,我想使用 ScaleGesture 缩放我的整个网格列表。缩放后它应该在垂直和水平方向滚动。注意:- 我不希望它被缩放控件缩放

这是我的输出截图

这是我的 XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context=".Calendar">
        <GridView
            android:id="@+id/dateGrid"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:numColumns="6"
            >
        </GridView>
</LinearLayout>

爪哇

  dateGrid.setAdapter(new dateAdapter(Calendar.this,dates));

请帮助我是android新手,并详细说明答案

标签: android

解决方案


推荐阅读