android - 可缩放的自定义 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新手,并详细说明答案
解决方案
推荐阅读
- python - 有没有办法让 python 请求显示在提琴手上?
- php - 一对多关系发生的雄辩次数
- css - 如何在 display:flex 元素中设置 div 溢出属性
- r - 如何在数据帧中查找和选择/删除几乎相等的变量?
- reactjs - ReactNative 中的网络请求失败
- angular - Angular路由器将所有路由器重定向到空白页面
- python - 这是对并行代码正确使用 numpy 播种吗?
- excel - 如何在 VBA 生成的电子邮件正文中添加其他文本/图像?
- objective-c - 当单指针可以在Objective-C中完成工作时,为什么要使用双指针?
- azure - 如何在逻辑应用程序中将密钥库用于服务总线连接字符串