# TableFixHeaders
**Repository Path**: HarmonyOS-tpc/TableFixHeaders
## Basic Information
- **Project Name**: TableFixHeaders
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-09-17
- **Last Updated**: 2023-04-17
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# TableFixHeaders
## Introduction:
TableFixHeaders is a library that implements a table with fixed headers.
## Usage Instructions:
#### Simple Adapter:
Display tables with headers without style or coloring of data with plain text.
###### xml
Create a tablefixheaders like below
###### java
Create a java code as below
MatrixTableAdapter matrixTableAdapter = new MatrixTableAdapter(this, new String[][] {
{
"Header 1",
"Header 2",
"Header 3",
"Header 4",
"Header 5",
"Header 6" },
// For full code please refr sample app
{
"elit",
"voluptate",
"reprehenderit",
"Excepteur",
"fugiat",
"nulla" },
});
tableFixHeaders.setAdapter(matrixTableAdapter);
##

#### Style Adapter:
Display tables with headers with style or coloring of data.
###### xml
Create a xml like below
###### java
Create a java code as below
tableFixHeaders.setAdapter(new MyAdapter(this));
##

#### Family Adapter:
Displaytables with headers with style or coloring of data, also segregation of sub items or featurewise division of data with different colors.
###### xml
Create a tablefixheaders like below
###### java
Create a java code as below
BaseTableAdapter baseTableAdapter = new FamilyNexusAdapter(this);
tableFixHeaders.setAdapter(baseTableAdapter);
##

## Installation instruction
Method 1:
Generate the .har package through the library and add the .har package to the libs folder.
Add the following code to the entry gradle:
```
implementation fileTree (dir: 'libs', include: ['*.jar', '*.har'])
```
Method 2:
For using as a library project, add the following code to the entry gradle:
```
implementation project(path: ': tablefixheaders)
```
Method 3:
For using TableFixHeaders from a remote repository in separate application, add the below dependency in entry/build.gradle:
```
implementation 'io.openharmony.tpc.thirdlib:TableFixHeaders:1.0.0'
```
## License
Copyright 2012-2013 InQBarna
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.