This repository was archived by the owner on Nov 10, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +131
-98
lines changed
app/src/main/java/ir/smartdevelop/eram/showcaseview
java/smartdevelop/ir/eram/showcaseviewlib Expand file tree Collapse file tree 5 files changed +131
-98
lines changed Original file line number Diff line number Diff line change 4545<dependency >
4646 <groupId >com.github.mreram</groupId >
4747 <artifactId >showcaseview</artifactId >
48- <version >1.4.0 </version >
48+ <version >1.4.1 </version >
4949</dependency >
5050```
5151gradle:
@@ -61,7 +61,7 @@ allprojects {
6161```
6262 Step 2. Add the dependency
6363``` groovy
64- implementation 'com.github.mreram:showcaseview:1.4.0 '
64+ implementation 'com.github.mreram:showcaseview:1.4.1 '
6565```
6666## Change type face
6767``` java
@@ -131,6 +131,17 @@ new GuideView.Builder(MainActivity.this)
131131 .show();
132132```
133133
134+ ## Set shape/pointer type solid/filled
135+ ``` java
136+ new GuideView .Builder (this )
137+ .setTitle(" Guide Title Text" )
138+ .setContentText(" Guide Description Text\n .....Guide Description Text\n .....Guide Description Text ....." )
139+ .setTargetView(view)
140+ .isShapeSolid(false ) // optional - default is false
141+ .build()
142+ .show();
143+ ```
144+
134145### DismissType Attribute
135146
136147| Type | Description |
@@ -150,6 +161,14 @@ new GuideView.Builder(MainActivity.this)
150161| none | Show no pointer or line towards targetView |
151162
152163
164+ ### isShapeSolid Attribute
165+
166+ | Type | Description |
167+ | ------ | ------ |
168+ | true | Show shape pointer as solid/filled |
169+ | false | Show shape pointer as not solid |
170+
171+
153172## Contribution :collision :
154173
155174Pull requests are welcome! :clap :
Original file line number Diff line number Diff line change 11package ir .smartdevelop .eram .showcaseview ;
22
3+ import android .annotation .SuppressLint ;
34import android .os .Bundle ;
45import android .support .v7 .app .AppCompatActivity ;
56import android .view .View ;
89import smartdevelop .ir .eram .showcaseviewlib .config .DismissType ;
910import smartdevelop .ir .eram .showcaseviewlib .config .Gravity ;
1011import smartdevelop .ir .eram .showcaseviewlib .config .PointerType ;
11- import smartdevelop .ir .eram .showcaseviewlib .listener .GuideListener ;
1212
1313public class MainActivity extends AppCompatActivity {
1414
@@ -21,6 +21,7 @@ public class MainActivity extends AppCompatActivity {
2121 private GuideView mGuideView ;
2222 private GuideView .Builder builder ;
2323
24+ @ SuppressLint ("NonConstantResourceId" )
2425 @ Override
2526 protected void onCreate (Bundle savedInstanceState ) {
2627 super .onCreate (savedInstanceState );
@@ -39,6 +40,7 @@ protected void onCreate(Bundle savedInstanceState) {
3940 .setGravity (Gravity .center )
4041 .setDismissType (DismissType .anywhere )
4142 .setPointerType (PointerType .circle )
43+ .isShapeSolid (false )
4244 .setTargetView (view1 )
4345 .setGuideListener (view -> {
4446 switch (view .getId ()) {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ android {
1010 minSdkVersion 11
1111 targetSdkVersion 30
1212 versionCode 3
13- versionName " 1.4.0 "
13+ versionName " 1.4.1 "
1414
1515 testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
1616
You can’t perform that action at this time.
0 commit comments