登录

去注册 忘记密码?

登录

注册

去登录

  • 扫码关注公众号
  • 发送“我爱安卓
  • 即可获取验证码

注册

解锁回答区域

  • 扫码关注公众号
  • 发送“我爱安卓

若你登陆,将永久解锁;
若未登录,仅本机解锁。

解锁回答区域

获取注册验证码

  • 扫码关注公众号
  • 发送“我爱安卓
  • 即可获取验证码

高仿网易新闻新版频道管理功能 TopGrid

whatshappen   2018-06-19 19:41   收藏

TopGrid

高仿网易新闻新版频道管理功能

描述

该项目是仿网易新闻客户端的频道管理功能,实现ITEM的拖拽,添加和删除操作。

使用

可拖拽的GridView:

<com.whatshappen.topgrid.view.DragGrid
	android:id="@+id/userGridView"
	android:layout_width="fill_parent"
	android:layout_height="wrap_content"
	android:layout_marginLeft="10dip"
	android:layout_marginRight="10dip"
	android:gravity="center"
	android:horizontalSpacing="6dip"
	android:listSelector="@android:color/transparent"
	android:numColumns="4"
	android:scrollbars="vertical"
	android:stretchMode="columnWidth"
	android:verticalSpacing="14.0px" />

不可拖拽的GridView:

<com.whatshappen.topgrid.view.OtherGridView
	android:id="@+id/otherGridView"
	android:layout_width="fill_parent"
	android:layout_height="wrap_content"
	android:layout_marginLeft="10dip"
	android:layout_marginRight="10dip"
	android:gravity="center"
	android:horizontalSpacing="6dip"
	android:listSelector="@android:color/transparent"
	android:numColumns="4"
	android:scrollbars="vertical"
	android:stretchMode="columnWidth"
	android:verticalSpacing="14.0px" />

实现效果

在此要感谢vipra,此项目是在这个项目基础上修改的。

License

Licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)  

Copyright 2018 whatshappen

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

项目地址:https://github.com/whatshappen/TopGrid