CustomViews is library that support customize view like listView, gridView, imageView and textView
sometime you want to insert gridview or list view in scrollview but you can't do that is they not expanded as it has built in scrollview so i made this views tocatre non scroll view for this two views For textview you can't add fontface for text in xml but in runtime but with this customfonttextview you can do that also if want to make your imageView rounded from corners, Sound awesome right!
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
To get a Git project into your build:
Step 1. Add the JitPack repository to your build file (Gradle)
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Step 2. Add the dependency in app/build.gradle
dependencies {
implementation 'com.github.hosamazzam:CustomViews:v1.0.5'
}
[NonScrollGridView] tag in xml file
<com.hosamazzam.customviews.NonScrollGridView
android:id="@+id/grid_listview"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
[NonScrollListView] tag in xml file
<com.hosamazzam.customviews.NonScrollListView
android:id="@+id/custom_listview"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
[RoundCornerImageView] tag in xml file
<com.hosamazzam.customviews.RoundCornerImageView
android:id="@+id/custom_imageview"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:cornerRadius="20.0"/>
[CustomFontTextView] tag in xml file
Notes : font file should put in src\main\assets/fonts/MyFont.ttf
<com.hosamazzam.customviews.CustomFontTextView
android:id="@+id/custom_textview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:fontName="MyFont.ttf"/>
This project is licensed under the MIT License - see the LICENSE.md file for details