Description
simple light weight android library for displaying tabulated data
This is a simple android library that will help you include tables in your projects using a few lines of code.
Follow very simple examples in the sample LegcyTableView project.
Application Demo
LegacyTableView alternatives and similar packages
Based on the "Animations" category.
Alternatively, view LegacyTableView alternatives based on common mentions on social networks and blogs.
-
Lottie for Android, iOS, and React Native
Render After Effects animations natively on Android and iOS, Web, and React Native -
AndroidViewAnimations
Cute view animation collection. -
Material-Animations
Android Transition animations explanation with examples. -
UltimateAndroidReference
:rocket: Ultimate Android Reference - Your Road to Become a Better Android Developer -
AndroidImageSlider
An amazing and convenient Android image slider. -
ListViewAnimations
An Android library which allows developers to easily add animations to ListView items -
NineOldAndroids
Android library for using the Honeycomb animation API on all versions of the platform back to 1.0! -
Rebound
A Java library that models spring dynamics and adds real world physics to your app. -
shimmer-android
An easy, flexible way to add a shimmering effect to any view in an Android app. -
PhotoEditor
A Photo Editor library with simple, easy support for image editing using paints,text,filters,emoji and Sticker like stories. -
android-flip
A component for flip animation on Android, which is similar to the effect in Flipboard iPhone/Android -
ChatKit for Android
Android library. Flexible components for chat UI implementation with flexible possibilities for styling, customizing and data management. Made by Stfalcon -
CircleIndicator
A lightweight indicator like in nexus 5 launcher -
transitions-everywhere
Set of extra Transitions on top of Jetpack Transitions Library -
Music Player
From UI Proposal to Code :notes::arrow_forward: -
RecyclerViewItemAnimators
An Android library which provides simple Item animations to RecyclerView items -
Spotlight
Android Library that lights items for tutorials or walk-throughs etc... -
ViewPagerTransforms
Library containing common animations needed for transforming ViewPager scrolling for Android v13+. -
AnimationEasingFunctions
Android Animation Easing Functions. Let's make animation more real! -
FabulousFilter
Android library to animate Floating Action Button to Bottom Sheet Dialog and vice-versa -
android-ripple-background
A beautiful ripple animation for your app -
CircularReveal
Lollipop ViewAnimationUtils.createCircularReveal for everyone 4.0+ -
ShimmerLayout
DEPRECATED - Memory efficient shimmering effect for Android applications by Supercharge. -
Rich Path Animator
💪 Rich Android Path. 🤡 Draw as you want. 🎉 Animate much as you can. -
Stfalcon ImageViewer
A simple and customizable Android full-screen image viewer with shared image transition support, "pinch to zoom" and "swipe to dismiss" gestures -
BaseAnimation
BaseAnimation network Android animation set, custom controls, nearly 200 kinds of source code! BaseAnimation, if a new version is updated automatically to remind everyone, I hope everyone will contribute their animated XML files or other source, together to create this open source app! -
EasyAndroidAnimations
Easy Android Animations is an animation library that aims to make android animations easier, with 50+ builtin animations, it allows you to introduce many complex animation effects in your application with one or two lines of code. -
ColorPickerView
🎨 Android colorpicker for getting colors from any images by tapping on the desired color. -
SpeedView
Dynamic Speedometer and Gauge for Android. amazing, powerful, and multi shape :zap: -
PreLollipopTransition
Simple tool which help you to implement activity and fragment transition for pre-Lollipop devices. -
EasyFlipView
💳 A quick and easy flip view through which you can create views with two sides like credit cards, poker cards etc. -
WhatTodo
A Simple Todo app design in Flutter to keep track of your task on daily basis. Its build on BLoC Pattern. You can add a project, labels, and due-date to your task also you can sort your task on the basis of project, label, and dates -
TransitionPlayer
Android library to control Transition animates. A simple way to create a interactive animation. -
ArcAnimator
ArcAnimator helps to create arc transition animation: 2.3.+ -
FragmentAnimations
3D animation examples for support-v4 Fragment transition. -
Road Runner
Road Runner is a library for android which allow you to make your own loading animation using a SVG image -
EasingInterpolator
Thirty-one different easing animation interpolators for Android. -
TreeView
Android GraphView is used to display data in graph structures. -
Youtube UI/UX Animation
With MVVM Architecture pattern using Android Architecture Components This is a sample app demonstrating Youtube player animation using constraint layout -
AppIntroAnimation
AppIntroAnimation is a set of code snippets to make cool intro screen for your app with special Image Translation and Transformation animation effects. It is very easy to use and customize without adding third party library integrations. -
Android File Picker🛩️
FilePicker is a small and fast file selector library that is constantly evolving with the goal of rapid integration, high customization, and configurability~ -
React Native Tabbar Interaction
Tabbar Component For React-Native -
Dachshund Tab Layout
Extended Android Tab Layout with animated indicators that have continuous feedback.
WorkOS - The modern identity platform for B2B SaaS
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of LegacyTableView or a related project?
README
LegacyTableView
simple light weight android library for displaying tabulated data
This is a simple android library that will help you include tables in your projects using a few lines of code. Follow very simple examples in the sample LegcyTableView project. Write data dynamically, translate into different languages, update themes, colors, fonts etc...
Application Demo
Examples
This project covers the following examples
- Simple display of data
- Custom controls for the LegacyTableView
- Adding data from database (SQLite)
- Using different LegacyTableViewThemes
Get started...
Add jitpack.io to your root gradle file
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add this to your dependencies method in build.gradle file
dependencies {
implementation 'com.github.levitnudi:LegacyTableView:1.4'
}
}
Add the following lines...
- In your xml layout add:
<com.levitnudi.legacytableview.LegacyTableView
android:id="@+id/legacy_table_view"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
- In your activity add:
//set table title labels
LegacyTableView.insertLegacyTitle("Id", "Name", "Age", "Email");
//set table contents as string arrays
LegacyTableView.insertLegacyContent("2999010", "John Deer", "50", "[email protected]",
"332312", "Kennedy F", "33", "[email protected]"
,"42343243", "Java Lover", "28", "[email protected]"
,"4288383", "Mike Tee", "22", "[email protected]");
LegacyTableView legacyTableView = (LegacyTableView)findViewById(R.id.legacy_table_view);
legacyTableView.setTitle(LegacyTableView.readLegacyTitle());
legacyTableView.setContent(LegacyTableView.readLegacyContent());
//depending on the phone screen size default table scale is 100
//you can change it using this method
//legacyTableView.setInitialScale(100);//default initialScale is zero (0)
//if you want a smaller table, change the padding setting
legacyTableView.setTablePadding(7);
//to enable users to zoom in and out:
legacyTableView.setZoomEnabled(true);
legacyTableView.setShowZoomControls(true);
//remember to build your table as the last step
legacyTableView.build();
- Using Themes:
//set table title labels
LegacyTableView.insertLegacyTitle("Id", "Name", "Age", "Email");
//set table contents as string arrays
LegacyTableView.insertLegacyContent("2999010", "John Deer", "50", "[email protected]",
"332312", "Kennedy F", "33", "[email protected]"
,"42343243", "Java Lover", "28", "[email protected]"
,"4288383", "Mike Tee", "22", "[email protected]");
LegacyTableView legacyTableView = (LegacyTableView)findViewById(R.id.legacy_table_view);
legacyTableView.setTitle(LegacyTableView.readLegacyTitle());
legacyTableView.setContent(LegacyTableView.readLegacyContent());
//Add your preferred theme like this:
legacyTableView.setTheme(GOLDALINE);
/*
Explore available themes
OCEAN
LAVICI
GOLDALINE
ECOKENYA
DESKTOP
MAASAI
LEVICI
ORIO
SKELETON
MESH*/
//depending on the phone screen size default table scale is 100
//you can change it using this method
//legacyTableView.setInitialScale(100);//default initialScale is zero (0)
//if you want a smaller table, change the padding setting
legacyTableView.setTablePadding(7);
//to enable users to zoom in and out:
legacyTableView.setZoomEnabled(true);
legacyTableView.setShowZoomControls(true);
//remember to build your table as the last step
legacyTableView.build();
- Display from database:
public void getFromDatabase(){//execute this method to fetch from database
Cursor cursor = db.rawQuery("SELECT * FROM legacy_table", null);
if(cursor.getCount()>0){
//use database column names or custom names for the columns
/* insert your column titles using legacy insertLegacyTitle() function*/
LegacyTableView.insertLegacyTitle(cursor.getColumnName(1), cursor.getColumnName(2),
cursor.getColumnName(3), cursor.getColumnName(4));
}
while(cursor.moveToNext()) {
//simple table content insert method for table contents
LegacyTableView.insertLegacyContent(cursor.getString(1),
cursor.getString(2), cursor.getString(3), cursor.getString(4));
}
//remember to close your database to avoid memory leaks
cursor.close();
}
//then do this to display it on the table
LegacyTableView legacyTableView = (LegacyTableView)findViewById(R.id.legacy_table_view);
//once you have inserted contents and titles, you can retrieve them
//using readLegacyTitle() and readLegacyContent() methods
legacyTableView.setTitle(LegacyTableView.readLegacyTitle());
legacyTableView.setContent(LegacyTableView.readLegacyContent());
//remember to build your table as the last step
legacyTableView.build();
- Using custom controls:
final LegacyTableView tableView = (LegacyTableView)findViewById(R.id.legacy_table_view);
/*
[OPTIONAL] default column seperator characters are (د) character
default row seperator is (\n) character
you may need to change if your set of data contains these characters
if you don't change the seperators, any character similar in your data set
will be excluded in your table. It is therefore adviseable to use least
commonly used characters
tableView.setColumnSeperator("'");
tableView.setRowSeperator("\n");
tableView.setLegacyColumnSeperator("'");*/
//set table title labels
LegacyTableView.insertLegacyTitle("Id", "Name", "Age", "Email");
//set table contents as string arrays
LegacyTableView.insertLegacyContent("2999010", "John Deer", "50", "[email protected]",
"332312", "Kennedy F", "33", "[email protected]"
,"42343243", "Java Lover", "28", "[email protected]"
,"4288383", "Mike Tee", "22", "[email protected]");
//make sure to indicate custom as other features may not work with default table theme
tableView.setTheme(CUSTOM);
//get titles and contents
tableView.setContent(LegacyTableView.readLegacyContent());
tableView.setTitle(LegacyTableView.readLegacyTitle());
tableView.setBottomShadowVisible(true);
tableView.setHighlight(ODD);//highlight rows oddly or evenly
//tableView.setHighlight(EVEN);
tableView.setBottomShadowVisible(true);
tableView.setFooterTextAlignment(CENTER);
tableView.setFooterText(getString(R.string.footer_text));
tableView.setTableFooterTextSize(5);
tableView.setTableFooterTextColor("#009688");
tableView.setTitleTextAlignment(CENTER);
tableView.setContentTextAlignment(CENTER);
tableView.setTablePadding(20);//increasing spacing will increase the table size
//tableView.setBottomShadowColorTint("#ffffff");
//tableView.setBackgroundEvenColor("#FFCCBC");
//tableView.setBackgroundEvenColor("#303F9F");
tableView.setBackgroundOddColor("#FFCCBC");
//you can also declare your color values as global strings to make your work easy :)
tableView.setHeaderBackgroundLinearGradientBOTTOM("#FF5722");//header background bottom color
tableView.setHeaderBackgroundLinearGradientTOP("#009688");//header background top color
tableView.setBorderSolidColor("#009688");
tableView.setTitleFont(BOLD);
tableView.setZoomEnabled(true);
tableView.setShowZoomControls(true);
//by default the initial scale is 0, you
// may change this depending on initiale scale preferences
//tableView.setInitialScale(100);//default initialScale is zero (0)
tableView.setContentTextColor("#009688");
tableView.build();
Copyright 2018 Levit Nudi
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.
Author : Levit Nudi
*Note that all licence references and agreements mentioned in the LegacyTableView README section above
are relevant to that project's source code only.