Giter Club home page Giter Club logo

errorxcode / niftywidgets Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 440 KB

Some of the usefull widgets provided out of the box . This library contains Custom lists (as in jetpack) , Custom spinner (Special) , Custom radio button (Special) & many more.. widgets that you can be directly used in XML

Home Page: https://www.rahilxcoder.tk

Java 100.00%
android-library android-widget custom-listview custom-radiobutton custom-view android android-ui

niftywidgets's Introduction

NiftyWidgets ~ Android UI library

Languages-Java Instagram - x__coder__ GitHub Repo stars

๐Ÿ‡นโ€Œ๐Ÿ‡ญโ€Œ๐Ÿ‡ฎโ€Œ๐Ÿ‡ธโ€Œ ๐Ÿ‡ฑโ€Œ๐Ÿ‡ฎโ€Œ๐Ÿ‡งโ€Œ๐Ÿ‡ทโ€Œ๐Ÿ‡ฆโ€Œ๐Ÿ‡ทโ€Œ๐Ÿ‡พโ€Œ ๐Ÿ‡ผโ€Œ๐Ÿ‡ฎโ€Œ๐Ÿ‡ฑโ€Œ๐Ÿ‡ฑโ€Œ ๐Ÿ‡ญโ€Œ๐Ÿ‡ชโ€Œ๐Ÿ‡ฑโ€Œ๐Ÿ‡ตโ€Œ ๐Ÿ‡พโ€Œ๐Ÿ‡ดโ€Œ๐Ÿ‡บโ€Œ ๐Ÿ‡นโ€Œ๐Ÿ‡ดโ€Œ ๐Ÿ‡บโ€Œ๐Ÿ‡ธโ€Œ๐Ÿ‡ชโ€Œ ๐Ÿ‡จโ€Œ๐Ÿ‡ดโ€Œ๐Ÿ‡ฒโ€Œ๐Ÿ‡ตโ€Œ๐Ÿ‡ฑโ€Œ๐Ÿ‡ชโ€Œ๐Ÿ‡ฝโ€Œ ๐Ÿ‡บโ€Œ๐Ÿ‡ฎโ€Œ ๐Ÿ‡จโ€Œ๐Ÿ‡ดโ€Œ๐Ÿ‡ฒโ€Œ๐Ÿ‡ตโ€Œ๐Ÿ‡ดโ€Œ๐Ÿ‡ณโ€Œ๐Ÿ‡ชโ€Œ๐Ÿ‡ณโ€Œ๐Ÿ‡นโ€Œ๐Ÿ‡ธโ€Œ ๐Ÿ‡ฉโ€Œ๐Ÿ‡ฎโ€Œ๐Ÿ‡ทโ€Œ๐Ÿ‡ชโ€Œ๐Ÿ‡จโ€Œ๐Ÿ‡นโ€Œ๐Ÿ‡ฑโ€Œ๐Ÿ‡พโ€Œ ๐Ÿ‡ผโ€Œ๐Ÿ‡ฎโ€Œ๐Ÿ‡นโ€Œ๐Ÿ‡ญโ€Œ๐Ÿ‡ดโ€Œ๐Ÿ‡บโ€Œ๐Ÿ‡นโ€Œ ๐Ÿ‡ผโ€Œ๐Ÿ‡ทโ€Œ๐Ÿ‡ฎโ€Œ๐Ÿ‡นโ€Œ๐Ÿ‡ฎโ€Œ๐Ÿ‡ณโ€Œ๐Ÿ‡ฌโ€Œ ๐Ÿ‡ฆโ€Œ ๐Ÿ‡จโ€Œ๐Ÿ‡บโ€Œ๐Ÿ‡ธโ€Œ๐Ÿ‡นโ€Œ๐Ÿ‡ดโ€Œ๐Ÿ‡ฒโ€Œ ๐Ÿ‡ฆโ€Œ๐Ÿ‡ฉโ€Œ๐Ÿ‡ฆโ€Œ๐Ÿ‡ตโ€Œ๐Ÿ‡นโ€Œ๐Ÿ‡ชโ€Œ๐Ÿ‡ทโ€Œ ๐Ÿ‡ซโ€Œ๐Ÿ‡ดโ€Œ๐Ÿ‡ทโ€Œ ๐Ÿ‡นโ€Œ๐Ÿ‡ญโ€Œ๐Ÿ‡ชโ€Œ๐Ÿ‡ฒโ€Œ. ๐Ÿ‡ชโ€Œ๐Ÿ‡ฆโ€Œ๐Ÿ‡ทโ€Œ๐Ÿ‡ฑโ€Œ๐Ÿ‡ฎโ€Œ๐Ÿ‡ชโ€Œ๐Ÿ‡ทโ€Œ, ๐Ÿ‡พโ€Œ๐Ÿ‡ดโ€Œ๐Ÿ‡บโ€Œ ๐Ÿ‡ญโ€Œ๐Ÿ‡ฆโ€Œ๐Ÿ‡ปโ€Œ๐Ÿ‡ชโ€Œ ๐Ÿ‡นโ€Œ๐Ÿ‡ดโ€Œ ๐Ÿ‡ผโ€Œ๐Ÿ‡ทโ€Œ๐Ÿ‡ฎโ€Œ๐Ÿ‡นโ€Œ๐Ÿ‡ชโ€Œ ๐Ÿ‡ฆโ€Œ ๐Ÿ‡จโ€Œ๐Ÿ‡บโ€Œ๐Ÿ‡ธโ€Œ๐Ÿ‡นโ€Œ๐Ÿ‡ดโ€Œ๐Ÿ‡ฒโ€Œ ๐Ÿ‡ฆโ€Œ๐Ÿ‡ฉโ€Œ๐Ÿ‡ฆโ€Œ๐Ÿ‡ตโ€Œ๐Ÿ‡นโ€Œ๐Ÿ‡ชโ€Œ๐Ÿ‡ทโ€Œ ๐Ÿ‡ซโ€Œ๐Ÿ‡ดโ€Œ๐Ÿ‡ทโ€Œ ๐Ÿ‡ฆโ€Œ ๐Ÿ‡ธโ€Œ๐Ÿ‡ฎโ€Œ๐Ÿ‡ฒโ€Œ๐Ÿ‡ตโ€Œ๐Ÿ‡ฑโ€Œ๐Ÿ‡ชโ€Œ ๐Ÿ‡จโ€Œ๐Ÿ‡บโ€Œ๐Ÿ‡ธโ€Œ๐Ÿ‡นโ€Œ๐Ÿ‡ดโ€Œ๐Ÿ‡ฒโ€Œ ๐Ÿ‡ฑโ€Œ๐Ÿ‡ฎโ€Œ๐Ÿ‡ธโ€Œ๐Ÿ‡นโ€Œ๐Ÿ‡ปโ€Œ๐Ÿ‡ฎโ€Œ๐Ÿ‡ชโ€Œ๐Ÿ‡ผโ€Œ. ๐Ÿ‡งโ€Œ๐Ÿ‡บโ€Œ๐Ÿ‡นโ€Œ ๐Ÿ‡ณโ€Œ๐Ÿ‡ดโ€Œ๐Ÿ‡ผโ€Œ ๐Ÿ‡ดโ€Œ๐Ÿ‡ณโ€Œ๐Ÿ‡ผโ€Œ๐Ÿ‡ฆโ€Œ๐Ÿ‡ทโ€Œ๐Ÿ‡ฉโ€Œ๐Ÿ‡ธโ€Œ, ๐Ÿ‡พโ€Œ๐Ÿ‡ดโ€Œ๐Ÿ‡บโ€Œ ๐Ÿ‡ฏโ€Œ๐Ÿ‡บโ€Œ๐Ÿ‡ธโ€Œ๐Ÿ‡นโ€Œ ๐Ÿ‡ญโ€Œ๐Ÿ‡ฆโ€Œ๐Ÿ‡ปโ€Œ๐Ÿ‡ชโ€Œ ๐Ÿ‡นโ€Œ๐Ÿ‡ดโ€Œ ๐Ÿ‡ผโ€Œ๐Ÿ‡ทโ€Œ๐Ÿ‡ฎโ€Œ๐Ÿ‡นโ€Œ๐Ÿ‡ชโ€Œ ๐Ÿ‡จโ€Œ๐Ÿ‡ดโ€Œ๐Ÿ‡ฉโ€Œ๐Ÿ‡ชโ€Œ ๐Ÿ‡ซโ€Œ๐Ÿ‡ดโ€Œ๐Ÿ‡ทโ€Œ ๐Ÿ‡ปโ€Œ๐Ÿ‡ฎโ€Œ๐Ÿ‡ชโ€Œ๐Ÿ‡ผโ€Œ ๐Ÿ‡ฎโ€Œ๐Ÿ‡ณโ€Œ ๐Ÿ‡ฝโ€Œ๐Ÿ‡ฒโ€Œ๐Ÿ‡ฑโ€Œ. ๐Ÿ‡นโ€Œ๐Ÿ‡ญโ€Œ๐Ÿ‡ฎโ€Œ๐Ÿ‡ธโ€Œ ๐Ÿ‡ฑโ€Œ๐Ÿ‡ฎโ€Œ๐Ÿ‡งโ€Œ๐Ÿ‡ทโ€Œ๐Ÿ‡ฆโ€Œ๐Ÿ‡ทโ€Œ๐Ÿ‡พโ€Œ ๐Ÿ‡ตโ€Œ๐Ÿ‡ทโ€Œ๐Ÿ‡ดโ€Œ๐Ÿ‡ปโ€Œ๐Ÿ‡ฎโ€Œ๐Ÿ‡ฉโ€Œ๐Ÿ‡ชโ€Œ๐Ÿ‡ธโ€Œ ๐Ÿ‡ฒโ€Œ๐Ÿ‡ฆโ€Œ๐Ÿ‡ณโ€Œ๐Ÿ‡พโ€Œ ๐Ÿ‡จโ€Œ๐Ÿ‡บโ€Œ๐Ÿ‡ธโ€Œ๐Ÿ‡นโ€Œ๐Ÿ‡ดโ€Œ๐Ÿ‡ฒโ€Œ ๐Ÿ‡จโ€Œ๐Ÿ‡ดโ€Œ๐Ÿ‡ฒโ€Œ๐Ÿ‡ตโ€Œ๐Ÿ‡ดโ€Œ๐Ÿ‡ณโ€Œ๐Ÿ‡ชโ€Œ๐Ÿ‡ณโ€Œ๐Ÿ‡นโ€Œ๐Ÿ‡ธโ€Œ ๐Ÿ‡ธโ€Œ๐Ÿ‡บโ€Œ๐Ÿ‡จโ€Œ๐Ÿ‡ญโ€Œ ๐Ÿ‡ฆโ€Œ๐Ÿ‡ธโ€Œ ๐Ÿ‡ฑโ€Œ๐Ÿ‡ฎโ€Œ๐Ÿ‡ธโ€Œ๐Ÿ‡นโ€Œ๐Ÿ‡ปโ€Œ๐Ÿ‡ฎโ€Œ๐Ÿ‡ชโ€Œ๐Ÿ‡ผโ€Œ๐Ÿ‡ธโ€Œ,๐Ÿ‡ธโ€Œ๐Ÿ‡ตโ€Œ๐Ÿ‡ฎโ€Œ๐Ÿ‡ณโ€Œ๐Ÿ‡ณโ€Œ๐Ÿ‡ชโ€Œ๐Ÿ‡ทโ€Œ,๐Ÿ‡ทโ€Œ๐Ÿ‡ฆโ€Œ๐Ÿ‡ฉโ€Œ๐Ÿ‡ฎโ€Œ๐Ÿ‡ดโ€Œ๐Ÿ‡งโ€Œ๐Ÿ‡บโ€Œ๐Ÿ‡นโ€Œ๐Ÿ‡นโ€Œ๐Ÿ‡ดโ€Œ๐Ÿ‡ณโ€Œ & ๐Ÿ‡ฒโ€Œ๐Ÿ‡ดโ€Œ๐Ÿ‡ทโ€Œ๐Ÿ‡ชโ€Œ.

Screenshots

Features

  • 4 types of listviews
  • 2 type of spinner
  • 2 lined radiobutton (special)
  • 4 styles of radiobutton
  • Simple & easiest ever

Implimentation

In your project build.gradle

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

In your module (app) build.gradle

dependencies {
	        implementation 'com.github.ErrorxCode:EasyWidgets:2.0'
	}

Usage / Example

2 lined RadioButton

 <com.easywidgets.radio.EasyRadioButton
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:title="This is title"
        app:description="This is description"
        app:isR2L="true"/>

[Note] : Use EasyRadioGroup insted of default RadioGroup for this.

Special Radiobuttons

<RadioButton
        style="@style/ClassicQuiz"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Correct option" />

All you have to do is just apply the styles. These are the following styles

  • ClassicQuiz
  • ModernQuiz
  • ClassicBlue
  • ClassicRed
  • ModernRed
  • ModernBlue

Note : Don't use tag attribute when using these styles

RadioButtonUtils

If you are using ModernQuiz or ClassicQuiz style as options for the quiz app, then you can make use of this class. This class help you to highlight options. if selected option is correct, then call EasyRadioUtils.setCorrect(Radiobutton button) passing radiobutton to make it look correct. To highlight wrong option, call EasyRadioUtils.setWrong(RadioButton button); passing the current selected radiobutton. If you want to add sound effect to options then use EasyRadioUtils.setSoundEffect(group,true,true,true);.

Spinner

   Spinner spinner = findViewById(R.id.spinner); // Use default spinner,Just need to use this adapter.
   SpinnerAdapter adapter = new SpinnerAdapter(this,new String[]{"High","Ultra","Extreme"},new String[]{"This will give you 30 FPS","This will give you 40 FPS","This will give you 60 FPS"});
   // or
   SpinnerAdapter adapter = new SpinnerAdapter(this,new String[]{"High","Ultra","Extreme"},new int[]{R.mipmap.ic_launcher,R.drawable.ic_launcher_background});
   spinner.setAdapter(adapter);

Listview

   Listview listview = findViewById(R.id.listview); // Use default spinner,Just need to use this adapter.
   EasyListAdapter adapter = new EasyListAdapter(this,new String[]{"High","Ultra","Extreme"},new String[]{"This will give you 30 FPS","This will give you 40 FPS","This will give you 60 FPS"});
   // or
   EasyListAdapter adapter = new EasyListAdapter(this,new String[]{"High","Ultra","Extreme"},new int[]{R.mipmap.icon1,R.drawable.icon2},null);
   // or
     ArrayList<EasyListObject> items = new ArrayList<>();
     items.add(new EasyListObject(R.drawable.icon1,"Title1","Heading1","Description1.."));
     items.add(new EasyListObject(R.drawable.icon2,"Title2","Heading2","Description2.."));      
     items.add(new EasyListObject(R.drawable.icon1,"Title3","Heading3","Description3.."));
      
     ListAdapter adapter = new ListAdapter(this,list);
     listview.setAdapter(adapter);

[Note] : If using adapter for listview with icons, you have to either pass String arry for 3rd line (heading) or null.

Thank you for using my library. Have a nice day :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.