Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.

Commit 6ee3e37

Browse files
authored
Update README.md
1 parent 2eb9adc commit 6ee3e37

File tree

1 file changed

+30
-13
lines changed

1 file changed

+30
-13
lines changed

README.md

Lines changed: 30 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
<img src="https://www.codingdemos.com/wp-content/uploads/2017/10/Android-Custom-Spinner-With-Images-And-Text.png" width="250" />
1616

1717
<img src="https://mobile-cdn.softpedia.com/apk/images/1-1-1-1-faster-safer-internet_8.jpg" width="250" />
18-
19-
<img src="https://i.stack.imgur.com/ZKiMj.jpg" width="250" />
20-
18+
2119
<img src="https://static.javatpoint.com/images/androidimages/custom-listview3.png" width="250" />
2220

21+
<img src="/mcq.png" width="250" />
22+
2323
<img src="/quiz.png" width="250" />
2424

2525
<img src="/all.png" width="250" />
@@ -28,9 +28,10 @@
2828

2929
## Features
3030

31-
- 2 types of listviews
31+
- 4 types of listviews
3232
- 2 type of spinner
3333
- 2 lined radiobutton (special)
34+
- 4 styles of radiobutton
3435
- Simple & easiest ever
3536

3637

@@ -49,12 +50,12 @@ In your project build.gradle
4950
In your module (app) build.gradle
5051
```groovy
5152
dependencies {
52-
implementation 'com.github.ErrorxCode:EasyWidgets:1.0'
53+
implementation 'com.github.ErrorxCode:EasyWidgets:2.0'
5354
}
5455
```
5556

5657
## Usage / Example
57-
**RadioButton**
58+
**2 lined RadioButton**
5859
```xml
5960
<com.easywidgets.radio.EasyRadioButton
6061
android:layout_width="match_parent"
@@ -65,6 +66,22 @@ dependencies {
6566
```
6667
[Note] : Use ```EasyRadioGroup``` insted of default ```RadioGroup``` for this.
6768

69+
**Special Radiobuttons**
70+
```
71+
<RadioButton
72+
style="@style/ClassicQuiz"
73+
android:layout_width="match_parent"
74+
android:layout_height="wrap_content"
75+
android:text="Correct option" />
76+
```
77+
All you have to do is just apply the styles. These are the following styles
78+
- ClassicQuiz
79+
- ModernQuiz
80+
- ClassicBlue
81+
- ClassicRed
82+
- ModernRed
83+
- ModernBlue
84+
6885
**Spinner**
6986
```java
7087
Spinner spinner = findViewById(R.id.spinner); // Use default spinner,Just need to use this adapter.
@@ -76,18 +93,18 @@ dependencies {
7693
**Listview**
7794
```java
7895
Listview listview = findViewById(R.id.listview); // Use default spinner,Just need to use this adapter.
79-
ListAdapter adapter = new ListAdapter(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"});
96+
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"});
8097
// or
81-
ListAdapter adapter = new ListAdapter(this,new int[]{R.mipmap.ic_launcher,R.drawable.ic_launcher_background},new String[]{"High","Ultra","Extreme"},null);
98+
EasyListAdapter adapter = new EasyListAdapter(this,new String[]{"High","Ultra","Extreme"},new int[]{R.mipmap.icon1,R.drawable.icon2},null);
8299
// or
83-
ArrayList<ListAdapterObject> items = new ArrayList<>();
84-
items.add(object1);
85-
items.add(object2);
86-
items.add(object3);
100+
ArrayList<EasyListObject> items = new ArrayList<>();
101+
items.add(new EasyListObject(R.drawable.icon1,"Title1","Heading1","Description1.."));
102+
items.add(new EasyListObject(R.drawable.icon2,"Title2","Heading2","Description2.."));
103+
items.add(new EasyListObject(R.drawable.icon1,"Title3","Heading3","Description3.."));
87104

88105
ListAdapter adapter = new ListAdapter(this,list);
89106
listview.setAdapter(adapter);
90107
```
91-
[Note] : If using adater for listview with icons, you have to either pass String arry for 3rd line (heading) or null.
108+
[Note] : If using adapter for listview with icons, you have to either pass String arry for 3rd line (heading) or null.
92109

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

0 commit comments

Comments
 (0)