Skip to content

Commit 4331fb1

Browse files
author
mobyiapps
committed
Initial commit
0 parents  commit 4331fb1

File tree

139 files changed

+7040
-0
lines changed

Some content is hidden

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

139 files changed

+7040
-0
lines changed

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/caches
5+
/.idea/libraries
6+
/.idea/modules.xml
7+
/.idea/workspace.xml
8+
/.idea/navEditor.xml
9+
/.idea/assetWizardSettings.xml
10+
.DS_Store
11+
/build
12+
/captures
13+
.externalNativeBuild

.idea/encodings.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations.xml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
# Android Widgets
2+
3+
## Add it in your root build.gradle at the end of repositories:
4+
5+
allprojects {
6+
repositories {
7+
...
8+
maven { url 'https://jitpack.io' }
9+
}
10+
}
11+
12+
## Add the dependency
13+
```groovy
14+
dependencies {
15+
implementation 'com.github.dvinfosys:Android-Widgets:1.3'
16+
}
17+
```
18+
Check out [Android-Widgets releases](https://github.com/dvinfosys/Android-Widgets/releases) to see more unstable versions.
19+
20+
you could customize following UI controls in your Android application
21+
22+
* NormalTextView, HeadingTextView, BlackTextView, ExtraBoldTextView, ItalicTextView, LightTextView, SemiBoldTextView, ThinTextView
23+
* NormalEditText
24+
* NormalCheckBox
25+
* NormalButton
26+
* NormalRadioButton
27+
* NormalSwitch
28+
* NormalToggleButton
29+
* CircleImageView
30+
31+
Usage
32+
-----
33+
34+
TextView
35+
36+
TextView (NormalTextView)
37+
```xml
38+
<com.dvinfosys.widgets.TextView.NormalTextView
39+
android:layout_width="wrap_content"
40+
android:layout_height="wrap_content"
41+
android:text="Hello World!"/>
42+
```
43+
44+
Heading TextView (HeadingTextView)
45+
```xml
46+
<com.dvinfosys.widgets.TextView.HeadingTextView
47+
android:layout_width="wrap_content"
48+
android:layout_height="wrap_content"
49+
android:text="Hello World!"/>
50+
```
51+
52+
Button (NormalButton)
53+
```xml
54+
<com.dvinfosys.widgets.TextView.NormalButton
55+
android:layout_width="wrap_content"
56+
android:layout_height="wrap_content"
57+
android:text="Hello World!"/>
58+
```
59+
60+
EditText (NormalEditText)
61+
```xml
62+
<com.dvinfosys.widgets.TextView.NormalEditText
63+
android:layout_width="wrap_content"
64+
android:layout_height="wrap_content"
65+
android:text="Hello World!"/>
66+
```
67+
68+
RadioButton (NormalRadioButton)
69+
```xml
70+
<com.dvinfosys.widgets.TextView.NormalRadioButton
71+
android:layout_width="wrap_content"
72+
android:layout_height="wrap_content"
73+
android:text="Hello World!"/>
74+
```
75+
76+
CheckBox (NormalCheckBox)
77+
```xml
78+
<com.dvinfosys.widgets.TextView.NormalCheckBox
79+
android:layout_width="wrap_content"
80+
android:layout_height="wrap_content"
81+
android:text="Hello World!"/>
82+
```
83+
84+
ToggleButton (NormalToggleButton)
85+
```xml
86+
<com.dvinfosys.widgets.TextView.NormalToggleButton
87+
android:layout_width="wrap_content"
88+
android:layout_height="wrap_content"
89+
android:text="Hello World!"/>
90+
```
91+
92+
Switch (NormalSwitch)
93+
```xml
94+
<com.dvinfosys.widgets.TextView.NormalSwitch
95+
android:layout_width="wrap_content"
96+
android:layout_height="wrap_content"
97+
android:text="Hello World!"/>
98+
```
99+
100+
CircleImageView
101+
```xml
102+
<com.dvinfosys.widgets.ImageView.CircleImageView
103+
android:id="@+id/thumbnail"
104+
android:layout_width="100dp"
105+
android:layout_height="100dp"
106+
android:background="?attr/selectableItemBackgroundBorderless"
107+
android:clickable="true"
108+
android:scaleType="centerCrop"
109+
android:src="@mipmap/ic_launcher"
110+
app:dv_border_color="#949494"
111+
app:dv_border_width="2dp" />
112+
```
113+
114+
NOTE
115+
-----
116+
117+
Widgets also contains some added fonts with the library,
118+
```java
119+
Poppins.ttf
120+
Poppins_Black.ttf
121+
Poppins_Bold.ttf
122+
Poppins_ExtraBold.ttf
123+
Poppins_Italic.ttf
124+
Poppins_Light.ttf
125+
Poppins_SemiBold.ttf
126+
Poppins_Thin.ttf
127+
```
128+
129+
## Author
130+
131+
DV Infosys, [email protected]
132+
133+
Checkout my other contributions, https://github.com/dvinfosys?tab=repositories

app/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app/build.gradle

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 28
5+
defaultConfig {
6+
applicationId "com.dvinfosys.WidgetsExample"
7+
minSdkVersion 15
8+
targetSdkVersion 28
9+
versionCode 1
10+
versionName "1.0"
11+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
12+
}
13+
buildTypes {
14+
release {
15+
minifyEnabled false
16+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
17+
}
18+
}
19+
}
20+
21+
dependencies {
22+
implementation fileTree(dir: 'libs', include: ['*.jar'])
23+
implementation 'com.android.support:appcompat-v7:28.0.0'
24+
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
25+
testImplementation 'junit:junit:4.12'
26+
androidTestImplementation 'com.android.support.test:runner:1.0.2'
27+
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
28+
implementation project(path: ':libraries')
29+
}

app/proguard-rules.pro

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package com.dvinfosys.WidgetsExample;
2+
3+
import android.content.Context;
4+
import android.support.test.InstrumentationRegistry;
5+
import android.support.test.runner.AndroidJUnit4;
6+
7+
import org.junit.Test;
8+
import org.junit.runner.RunWith;
9+
10+
import static org.junit.Assert.*;
11+
12+
/**
13+
* Instrumented test, which will execute on an Android device.
14+
*
15+
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
16+
*/
17+
@RunWith(AndroidJUnit4.class)
18+
public class ExampleInstrumentedTest {
19+
@Test
20+
public void useAppContext() {
21+
// Context of the app under test.
22+
Context appContext = InstrumentationRegistry.getTargetContext();
23+
24+
assertEquals("com.dvinfosys.WidgetsExample", appContext.getPackageName());
25+
}
26+
}

0 commit comments

Comments
 (0)