Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

适配器模式的表格控件 (仅需设置adapter即可用) ,结合了 SmartRefreshLayout 控件,所以有下拉刷新以及上拉加载更多功能

Notifications You must be signed in to change notification settings

yangsanning/TableView

Repository files navigation

TableView

API

效果预览

TableView

主要文件

名字 摘要
TableView 表格View

1. 基本用法

1.1 布局中添加

 <ysn.com.view.TableView
 android:id="@+id/main_activity_table_view"
 android:layout_width="match_parent"
 android:layout_height="match_parent"
 app:tv_head_layout_res_id="@layout/layout_table_head"
 app:tv_left_top_head_layout_res_id="@layout/layout_table_left_top_head" />

1.2 adapter设置

 tableView.setFirstColumnAdapter(firstColumnAdapter).setContentAdapter(contentAdapter);

2. 配置属性(Attributes)

name format description
tv_left_top_head_layout_res_id reference 左上角布局
tv_head_layout_res_id reference 头布局

3.添加方法

3.1 添加仓库

在项目的 build.gradle 文件中配置仓库地址。

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

3.2 添加项目依赖

在需要添加依赖的 Module 下添加以下信息,使用方式和普通的远程仓库一样。

implementation 'com.github.yangsanning:TableView:1.0.0'

About

适配器模式的表格控件 (仅需设置adapter即可用) ,结合了 SmartRefreshLayout 控件,所以有下拉刷新以及上拉加载更多功能

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /