salehyarahmadi / datatable Goto Github PK
View Code? Open in Web Editor NEWMaterial Data Table android library
Material Data Table android library
ERROR: Failed to resolve: com.github.salehyarahmadi:DataTable:v1.0.0
Show in Project Structure dialog
Affected Modules: app
How do I add a horizontal scroll feature
Add selected row color change.
setDirection is not working, it is always LTR
setting the value from xml is not working either
Android 9
Minimum SDK 19
Target SDK 29
Is it possible to click a row and get the data associated with it? eg Select a row to delete of get the value of the 'ID' column
Is there any way to filter out the list?
Is there a way to notify that the data set has been changed?
A bug in the sizing of header text and lines
Your mistake:
this.headerTextSize = ta.getDimension(R.styleable.DataTable_header_text_size, 16.0f);
this.rowTextSize = ta.getDimension(R.styleable.DataTable_row_text_size, 16.0f);
This measurement model has a pixel result that is not suitable for Android.
Use the following code:
typedArray.getDimensionPixelSize(R.styleable.CustomView_textSizeTitle, (int) convertDpToPixel(11.5F, context));
public static float convertDpToPixel(float dp, Context context) { return dp * ((float) context.getResources().getDisplayMetrics().densityDpi / DisplayMetrics.DENSITY_DEFAULT); }
And to adjust the size of the text, we act as follows:
titleTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX, getTextSize());
This is really useful code. Can you set the scroll down? Thank you so much
I have the following error message when adding the line
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.LinearLayout.removeAllViews ()' on a null object reference
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.