Skip to content

Commit c557693

Browse files
author
piclabsstudio
committed
Remove Widgets
1 parent 6c03951 commit c557693

File tree

99 files changed

+189
-2674
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+189
-2674
lines changed

app/src/main/java/com/dvinfosys/WidgetsExample/Adapter/SimpleListAdapter.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import android.content.Context;
44
import android.text.TextUtils;
5-
import android.util.Log;
65
import android.view.View;
76
import android.view.ViewGroup;
87
import android.widget.BaseAdapter;
@@ -95,6 +94,10 @@ public Filter getFilter() {
9594
return mStringFilter;
9695
}
9796

97+
public enum ItemViewType {
98+
ITEM, NO_SELECTION_ITEM
99+
}
100+
98101
public class StringFilter extends Filter {
99102

100103
@Override
@@ -127,8 +130,4 @@ private class ItemView {
127130
public ImageView mImageView;
128131
public TextView mTextView;
129132
}
130-
131-
public enum ItemViewType {
132-
ITEM, NO_SELECTION_ITEM
133-
}
134133
}

app/src/main/java/com/dvinfosys/WidgetsExample/Fragments/SeekbarFragment.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import com.dvinfosys.widgets.SeekBar.CustomSeekBar;
1414
import com.dvinfosys.widgets.SeekBar.OnSeekChangeListener;
1515
import com.dvinfosys.widgets.SeekBar.SeekParams;
16-
import com.dvinfosys.widgets.TextView.NormalTextView;
16+
import com.dvinfosys.widgets.TextView.CustomTextView;
1717

1818
public class SeekbarFragment extends Fragment {
1919

@@ -33,13 +33,13 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa
3333
thumb_drawable.setThumbDrawable(getResources().getDrawable(R.mipmap.ic_launcher));
3434

3535
CustomSeekBar listenerSeekBar = view.findViewById(R.id.listener);
36-
final NormalTextView states = view.findViewById(R.id.states);
36+
final CustomTextView states = view.findViewById(R.id.states);
3737
states.setText("states: ");
38-
final NormalTextView progress = view.findViewById(R.id.progress);
38+
final CustomTextView progress = view.findViewById(R.id.progress);
3939
progress.setText("progress: " + listenerSeekBar.getProgress());
40-
final NormalTextView progress_float = view.findViewById(R.id.progress_float);
40+
final CustomTextView progress_float = view.findViewById(R.id.progress_float);
4141
progress_float.setText("progress_float: " + listenerSeekBar.getProgressFloat());
42-
final NormalTextView from_user = view.findViewById(R.id.from_user);
42+
final CustomTextView from_user = view.findViewById(R.id.from_user);
4343
from_user.setText("from_user: ");
4444
listenerSeekBar.setOnSeekChangeListener(new OnSeekChangeListener() {
4545
@Override

app/src/main/java/com/dvinfosys/WidgetsExample/MainActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import android.widget.Button;
1515
import android.widget.Toast;
1616

17-
import com.dvinfosys.widgets.Button.NormalButton;
17+
import com.dvinfosys.widgets.Button.CustomButton;
1818
import com.dvinfosys.widgets.ColorPicker.ColorPickerDialog;
1919
import com.dvinfosys.widgets.ColorPicker.ColorPickerDialogListener;
2020
import com.dvinfosys.widgets.CountdownView.CountdownView;
@@ -28,7 +28,7 @@ public class MainActivity extends AppCompatActivity implements ColorPickerDialog
2828
private static final int DIALOG_ID = 0;
2929
private Context context;
3030
private Button btnErrorToastView, btnSuccessToastView, btnInfoToastView, btnWarringToastView;
31-
private NormalButton btnColorPicker;
31+
private CustomButton btnColorPicker;
3232
private Counter numberCounter;
3333

3434
@Override

app/src/main/res/layout/activity_main.xml

Lines changed: 15 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -12,51 +12,46 @@
1212
android:layout_height="match_parent"
1313
android:orientation="vertical">
1414

15-
<com.dvinfosys.widgets.TextView.HeadingTextView
16-
android:layout_width="wrap_content"
17-
android:layout_height="wrap_content"
18-
android:layout_gravity="center"
19-
android:text="heading TextView" />
2015

21-
<com.dvinfosys.widgets.EditText.NormalEditText
16+
<com.dvinfosys.widgets.EditText.CustomEditText
2217
android:layout_width="wrap_content"
2318
android:layout_height="wrap_content"
2419
android:layout_gravity="center"
2520
android:layout_marginTop="4dp"
2621
android:hint="Enter your name"
2722
android:padding="8dp" />
2823

29-
<com.dvinfosys.widgets.Button.NormalButton
24+
<com.dvinfosys.widgets.Button.CustomButton
3025
android:layout_width="wrap_content"
3126
android:layout_height="wrap_content"
3227
android:layout_gravity="center"
3328
android:layout_marginTop="8dp"
3429
android:text="Normal Button"
3530
android:textAllCaps="false" />
3631

37-
<com.dvinfosys.widgets.RadioButton.NormalRadioButton
32+
<com.dvinfosys.widgets.RadioButton.CustomRadioButton
3833
android:layout_width="wrap_content"
3934
android:layout_height="wrap_content"
4035
android:layout_gravity="center"
4136
android:layout_marginTop="8dp"
4237
android:text="Normal RadioButton" />
4338

44-
<com.dvinfosys.widgets.CheckBox.NormalCheckBox
39+
<com.dvinfosys.widgets.CheckBox.CustomCheckBox
4540
android:layout_width="wrap_content"
4641
android:layout_height="wrap_content"
4742
android:layout_gravity="center"
4843
android:layout_marginTop="8dp"
4944
android:text="Normal CheckBox" />
5045

51-
<com.dvinfosys.widgets.Switch.NormalSwitch
46+
<com.dvinfosys.widgets.Switch.CustomSwitch
5247
android:layout_width="wrap_content"
5348
android:layout_height="wrap_content"
5449
android:layout_gravity="center"
5550
android:layout_marginTop="8dp"
5651
android:padding="8dp"
5752
android:text="Normal Switch" />
5853

59-
<com.dvinfosys.widgets.ToggleButton.NormalToggleButton
54+
<com.dvinfosys.widgets.ToggleButton.CustomToggleButton
6055
android:layout_width="wrap_content"
6156
android:layout_height="wrap_content"
6257
android:layout_gravity="center"
@@ -108,12 +103,20 @@
108103
android:text="Custom Text with Font"
109104
app:font_name="Smoothy.otf" />
110105

106+
<com.dvinfosys.widgets.Button.CustomButton
107+
android:layout_width="wrap_content"
108+
android:id="@+id/btn_color_picker"
109+
android:text="Color Picker"
110+
android:gravity="center"
111+
android:layout_gravity="center"
112+
android:layout_height="wrap_content"/>
113+
111114
<com.dvinfosys.widgets.Button.CustomButton
112115
android:layout_width="wrap_content"
113116
android:layout_height="wrap_content"
114117
android:layout_gravity="center"
115118
android:text="Custom Button"
116-
app:button_font="Smoothy.otf" />
119+
app:font_name="Smoothy.otf" />
117120

118121
<com.dvinfosys.widgets.TextView.GradientTextView
119122
android:layout_width="match_parent"
@@ -124,30 +127,6 @@
124127
app:gradientEnd="#6673E7"
125128
app:gradientStart="#FF0000" />
126129

127-
<com.dvinfosys.widgets.TextView.GradientBoldTextView
128-
android:layout_width="match_parent"
129-
android:layout_height="wrap_content"
130-
android:gravity="center"
131-
android:text="Gradient Bold TextView"
132-
android:textSize="18dp"
133-
app:endColor="@color/colorPrimaryDark"
134-
app:startColor="@color/colorAccent" />
135-
136-
<com.dvinfosys.widgets.TextView.MediumTextView
137-
android:layout_width="wrap_content"
138-
android:layout_height="wrap_content"
139-
android:layout_gravity="center"
140-
android:padding="8dp"
141-
android:text="MediumTextView" />
142-
143-
<com.dvinfosys.widgets.Button.NormalButton
144-
android:id="@+id/btn_color_picker"
145-
android:layout_width="wrap_content"
146-
android:layout_height="wrap_content"
147-
android:layout_gravity="center"
148-
android:layout_margin="8dp"
149-
android:text="Color Picker"
150-
android:textAllCaps="false" />
151130

152131
<com.dvinfosys.widgets.CountdownView.CountdownView
153132
android:id="@+id/countdown_view"

app/src/main/res/layout/fragment_button.xml

Lines changed: 4 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -15,87 +15,12 @@
1515
android:orientation="vertical"
1616
android:padding="10dp">
1717

18-
<com.dvinfosys.widgets.TextView.NormalTextView
18+
<com.dvinfosys.widgets.Button.CustomButton
1919
android:layout_width="wrap_content"
2020
android:layout_height="wrap_content"
21-
android:text="1. Normal Button" />
22-
23-
<com.dvinfosys.widgets.Button.NormalButton
24-
android:layout_width="wrap_content"
25-
android:layout_height="wrap_content"
26-
android:layout_gravity="center"
27-
android:layout_margin="8dp"
28-
android:text="Normal Button"
29-
android:textAllCaps="false" />
30-
31-
<com.dvinfosys.widgets.Button.HeadingButton
32-
android:layout_width="wrap_content"
33-
android:layout_height="wrap_content"
34-
android:layout_gravity="center"
35-
android:layout_margin="8dp"
36-
android:text="heading Button"
37-
android:textAllCaps="false" />
38-
39-
<com.dvinfosys.widgets.Button.BlackButton
40-
android:layout_width="wrap_content"
41-
android:layout_height="wrap_content"
42-
android:layout_gravity="center"
43-
android:layout_margin="8dp"
44-
android:text="Black Button"
45-
android:textAllCaps="false" />
46-
47-
<com.dvinfosys.widgets.Button.ExtraBoldButton
48-
android:layout_width="wrap_content"
49-
android:layout_height="wrap_content"
50-
android:layout_gravity="center"
51-
android:layout_margin="8dp"
52-
android:text="ExtraBold Button"
53-
android:textAllCaps="false" />
54-
55-
<com.dvinfosys.widgets.Button.ItalicButton
56-
android:layout_width="wrap_content"
57-
android:layout_height="wrap_content"
58-
android:layout_gravity="center"
59-
android:layout_margin="8dp"
60-
android:text="Italic Button"
61-
android:textAllCaps="false" />
62-
63-
<com.dvinfosys.widgets.Button.LightButton
64-
android:layout_width="wrap_content"
65-
android:layout_height="wrap_content"
66-
android:layout_gravity="center"
67-
android:layout_margin="8dp"
68-
android:text="Light Button"
69-
android:textAllCaps="false" />
70-
71-
<com.dvinfosys.widgets.Button.SemiBoldButton
72-
android:layout_width="wrap_content"
73-
android:layout_height="wrap_content"
74-
android:layout_gravity="center"
75-
android:layout_margin="8dp"
76-
android:text="SemiBold Button"
77-
android:textAllCaps="false" />
78-
79-
<com.dvinfosys.widgets.Button.ThinButton
80-
android:layout_width="wrap_content"
81-
android:layout_height="wrap_content"
82-
android:layout_gravity="center"
83-
android:layout_margin="8dp"
84-
android:text="Thin Button"
85-
android:textAllCaps="false" />
86-
87-
<com.dvinfosys.widgets.Button.MediumButton
88-
android:layout_width="wrap_content"
89-
android:layout_height="wrap_content"
90-
android:layout_gravity="center"
91-
android:layout_margin="8dp"
92-
android:text="Medium Button"
93-
android:textAllCaps="false" />
94-
95-
<com.dvinfosys.widgets.TextView.NormalTextView
96-
android:layout_width="wrap_content"
97-
android:layout_height="wrap_content"
98-
android:text="2. Round Button" />
21+
android:padding="10dp"
22+
android:text="Custom Button"
23+
app:font_name="@string/font_name" />
9924

10025
<TextView
10126
android:layout_width="wrap_content"

app/src/main/res/layout/fragment_check_box.xml

Lines changed: 6 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -3,71 +3,15 @@
33
xmlns:tools="http://schemas.android.com/tools"
44
android:layout_width="match_parent"
55
android:layout_height="match_parent"
6+
xmlns:app="http://schemas.android.com/apk/res-auto"
67
android:layout_gravity="center"
78
android:orientation="vertical"
89
tools:context=".Fragments.CheckBoxFragment">
910

10-
<com.dvinfosys.widgets.CheckBox.NormalCheckBox
11-
android:layout_width="wrap_content"
12-
android:layout_height="wrap_content"
13-
android:layout_gravity="center"
14-
android:layout_margin="8dp"
15-
android:text="Normal CheckBox" />
16-
17-
<com.dvinfosys.widgets.CheckBox.HeadingCheckBox
18-
android:layout_width="wrap_content"
19-
android:layout_height="wrap_content"
20-
android:layout_gravity="center"
21-
android:layout_margin="8dp"
22-
android:text="Heading CheckBox" />
23-
24-
<com.dvinfosys.widgets.CheckBox.BlackCheckBox
25-
android:layout_width="wrap_content"
26-
android:layout_height="wrap_content"
27-
android:layout_gravity="center"
28-
android:layout_margin="8dp"
29-
android:text="Black CheckBox" />
30-
31-
<com.dvinfosys.widgets.CheckBox.ExtraBoldCheckBox
32-
android:layout_width="wrap_content"
33-
android:layout_height="wrap_content"
34-
android:layout_gravity="center"
35-
android:layout_margin="8dp"
36-
android:text="ExtraBold CheckBox" />
37-
38-
<com.dvinfosys.widgets.CheckBox.ItalicCheckBox
39-
android:layout_width="wrap_content"
40-
android:layout_height="wrap_content"
41-
android:layout_gravity="center"
42-
android:layout_margin="8dp"
43-
android:text="Italic CheckBox" />
44-
45-
<com.dvinfosys.widgets.CheckBox.LightCheckBox
46-
android:layout_width="wrap_content"
47-
android:layout_height="wrap_content"
48-
android:layout_gravity="center"
49-
android:layout_margin="8dp"
50-
android:text="Light CheckBox" />
51-
52-
<com.dvinfosys.widgets.CheckBox.SemiBoldCheckBox
53-
android:layout_width="wrap_content"
54-
android:layout_height="wrap_content"
55-
android:layout_gravity="center"
56-
android:layout_margin="8dp"
57-
android:text="SemiBold CheckBox" />
58-
59-
<com.dvinfosys.widgets.CheckBox.ThinCheckBox
60-
android:layout_width="wrap_content"
61-
android:layout_height="wrap_content"
62-
android:layout_gravity="center"
63-
android:layout_margin="8dp"
64-
android:text="Thin CheckBox" />
65-
66-
<com.dvinfosys.widgets.CheckBox.MediumCheckBox
67-
android:layout_width="wrap_content"
68-
android:layout_height="wrap_content"
69-
android:layout_gravity="center"
70-
android:layout_margin="8dp"
71-
android:text="Medium CheckBox" />
11+
<com.dvinfosys.widgets.CheckBox.CustomCheckBox
12+
android:layout_width="wrap_content"
13+
app:font_name="@string/font_name"
14+
android:text="Custom Checkbox"
15+
android:layout_height="wrap_content"/>
7216

7317
</LinearLayout>

0 commit comments

Comments
 (0)