File tree Expand file tree Collapse file tree 1 file changed +39
-5
lines changed Expand file tree Collapse file tree 1 file changed +39
-5
lines changed Original file line number Diff line number Diff line change
1
+ [ ![ ] ( https://jitpack.io/v/qarakenbacho/WaterTextView.svg )] ( https://jitpack.io/#qarakenbacho/WaterTextView )
1
2
# WaterTextView
2
3
** Step 1.** Add the JitPack repository to your build file
3
4
Add it in your root build.gradle at the end of repositories:
@@ -15,8 +16,41 @@ dependencies {
15
16
implementation 'com.github.qarakenbacho:WaterTextView:1.0'
16
17
}
17
18
```
18
-
19
-
20
-
21
-
22
- [ ![ ] ( https://jitpack.io/v/qarakenbacho/WaterTextView.svg )] ( https://jitpack.io/#qarakenbacho/WaterTextView )
19
+ ** Usage**
20
+ ** activity_main.xml**
21
+ ```
22
+ <RelativeLayout
23
+ xmlns:android="http://schemas.android.com/apk/res/android"
24
+ xmlns:tools="http://schemas.android.com/tools"
25
+ android:layout_width="match_parent"
26
+ android:layout_height="match_parent"
27
+ android:padding="20dp"
28
+ tools:context=".MainActivity">
29
+
30
+ <!--This is a basic part. layout width must be match_parent-->
31
+ <uz.sadirbaev.waterbackground.WaterTextView
32
+ android:layout_width="match_parent"
33
+ android:layout_height="wrap_content"
34
+ android:textSize="30sp"
35
+ android:id="@+id/tv30"
36
+ android:layout_marginBottom="20dp"/>
37
+
38
+ </RelativeLayout>
39
+ ```
40
+ ** MainActivity.class**
41
+ ```
42
+ @Override
43
+ protected void onCreate(Bundle savedInstanceState) {
44
+ super.onCreate(savedInstanceState);
45
+ setContentView(R.layout.activity_main);
46
+ WaterTextView textView = findViewById(R.id.tv30);
47
+ String s = "Welcome to Water Background.";
48
+ textView.setText(s);
49
+ }
50
+ ```
51
+ <p align =" center " >
52
+ <img src =" https://github.com/qarakenbacho/WaterTextView/blob/master/screenshots/photo_2018-05-14_19-52-21.jpg " width =" 200 " />
53
+ </p >
54
+
55
+
56
+
You can’t perform that action at this time.
0 commit comments