上下左右移动选择的布局
来源:互联网 发布:js中定义字符串数组 编辑:程序博客网 时间:2024/06/11 10:23
<?xml version="1.0" encoding="utf-8"?><HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" > <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent" > <LinearLayout android:layout_width="1500dp" android:layout_height="match_parent" android:orientation="horizontal" > <ScrollView android:layout_width="match_parent" android:layout_height="match_parent" > <com.example.udlr_demo.MyGridView android:id="@+id/mgv" android:gravity="fill" android:layout_width="match_parent" android:layout_height="match_parent" android:numColumns="15" > </com.example.udlr_demo.MyGridView> </ScrollView> </LinearLayout> </FrameLayout></HorizontalScrollView>
附例:
package com.example.udlr_demo;import android.content.Context;import android.util.AttributeSet;import android.widget.GridView;public class MyGridView extends GridView { public MyGridView(Context context, AttributeSet attrs) { super(context, attrs); } public MyGridView(Context context) { super(context); } public MyGridView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Override public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int expandSpec = MeasureSpec.makeMeasureSpec( Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); } }
0 0
- 上下左右移动选择的布局
- 移动的上下左右滑动
- 上下左右移动
- 随滚动条移动的上下左右中层
- 控制控件上下左右移动
- div+css 上下左右移动
- 移动端上下左右滑动
- 区块上下左右居中布局
- 上下左右中布局
- 用OpenGL写的一个可以上下左右移动的球
- 如何灵敏的检测移动端的手指上下左右滑动
- 点击上下左右按钮让背景上下左右移动
- 【JavaScript】列表元素上下左右移动:Select和Option的应用
- View框架下实现角色的上下左右移动
- Qt学习笔记之图片的上下左右移动
- Android 控件的显示隐藏上下左右移动动画
- unity3d控制物品的移动(鼠标或上下左右WASD)
- Android 控件的显示隐藏上下左右移动动画
- solr索引过程源码解析
- Spring Data MongoDB 分页查询
- 文章标题
- Java设计模式之模板方法模式
- 按固定分隔符导出DB2数据到EXCEL表格
- 上下左右移动选择的布局
- 仿微信-界面动画(1)
- springboot加速你的web开发
- 移动H5前端性能优化
- Java虚拟机(一)——Java内存区域划分
- 通过Spring Bean 注入static变量,来设计一套适合测试,开发,生产环境的配置项
- C#入门9.7——属性的使用(2)
- PHP执行Linux命令的两个有用的函数exec和shell_exec
- cp - copy files and directories