This repository was archived by the owner on Nov 10, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 10 files changed +428
-276
lines changed
java/ir/smartdevelop/eram/showcaseview
parvane/ir/eram/showcaseviewlib
smartdevelop/ir/eram/showcaseviewlib Expand file tree Collapse file tree 10 files changed +428
-276
lines changed Original file line number Diff line number Diff line change 55import android .view .View ;
66import android .widget .Toast ;
77
8- import parvane .ir .eram .showcaseviewlib .GuideView ;
8+ import smartdevelop .ir .eram .showcaseviewlib .GuideView ;
99
1010public class MainActivity extends AppCompatActivity {
1111
@@ -18,14 +18,18 @@ protected void onCreate(Bundle savedInstanceState) {
1818 view .setOnClickListener (new View .OnClickListener () {
1919 @ Override
2020 public void onClick (View view ) {
21- Toast .makeText (MainActivity .this ,"Clicked!" ,Toast .LENGTH_LONG ).show ();
21+ Toast .makeText (MainActivity .this , "Clicked!" , Toast .LENGTH_LONG ).show ();
2222 }
2323 });
2424
25- GuideView guideView = new GuideView (this , view );
26- guideView .setTitle ("Guide Title Text" );
27- guideView .setContentText ("Guide Description Text\n .....Guide Description Text\n .....Guide Description Text ....." );
28- guideView .setGravity (GuideView .Gravity .AUTO );
29- guideView .show ();
25+ new GuideView .Builder (this )
26+ .setTitle ("Guide Title Text" )
27+ .setContentText ("Guide Description Text\n .....Guide Description Text\n .....Guide Description Text ....." )
28+ .setGravity (GuideView .Gravity .AUTO )
29+ .setTargetView (view )
30+ .build ()
31+ .show ();
32+
33+
3034 }
3135}
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
2- <LinearLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3- android : layout_width =" match_parent"
4- android : layout_height =" match_parent"
5- android : gravity =" center"
6- android : orientation =" vertical" >
72
8- <Button
9- android : id =" @+id/txt"
10- android : layout_width =" wrap_content"
11- android : layout_height =" wrap_content"
12- android : layout_gravity =" center"
13- android : padding =" 10dp"
14- android : text =" Guide Test" />
3+
4+ <Button android : layout_marginTop =" 204dp"
5+ android : id =" @+id/txt"
6+ android : layout_width =" wrap_content"
7+ android : layout_height =" wrap_content"
8+ android : layout_gravity =" right"
9+ android : padding =" 10dp"
10+ android : text =" Guide Test"
11+ xmlns : android =" http://schemas.android.com/apk/res/android" />
1512
16- </ LinearLayout >
13+
Original file line number Diff line number Diff line change @@ -5,18 +5,24 @@ buildscript {
55 repositories {
66 google()
77 jcenter()
8+ mavenCentral()
9+
810 }
911 dependencies {
1012 classpath ' com.android.tools.build:gradle:3.0.1'
11-
12-
13+ classpath ' com.github.dcendents:android-maven-gradle-plugin:2.0'
1314 // NOTE: Do not place your application dependencies here; they belong
1415 // in the individual module build.gradle files
1516 }
1617}
1718
1819allprojects {
1920 repositories {
21+ maven {
22+ url ' http://clojars.org/repo'
23+ }
24+ mavenCentral()
25+ maven { url " https://jitpack.io" }
2026 google()
2127 jcenter()
2228 }
Original file line number Diff line number Diff line change 1- # Project-wide Gradle settings.
2-
3- # IDE (e.g. Android Studio) users:
4- # Gradle settings configured through the IDE *will override*
5- # any settings specified in this file.
6-
1+ # # Project-wide Gradle settings.
2+ #
73# For more details on how to configure your build environment visit
84# http://www.gradle.org/docs/current/userguide/build_environment.html
9-
5+ #
106# Specifies the JVM arguments used for the daemon process.
117# The setting is particularly useful for tweaking memory settings.
12- org.gradle.jvmargs =-Xmx1536m
13-
8+ # Default value: -Xmx1024m -XX:MaxPermSize=256m
9+ # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
10+ #
1411# When configured, Gradle will run in incubating parallel mode.
1512# This option should only be used with decoupled projects. More details, visit
1613# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1714# org.gradle.parallel=true
15+ # Sun Jan 21 11:44:08 IRST 2018
16+ systemProp.http.proxyHost =vampire.mashhad.khcai.net
17+ org.gradle.jvmargs =-Xmx1536m
18+ systemProp.http.proxyPort =3128
Original file line number Diff line number Diff line change 11apply plugin : ' com.android.library'
2-
2+ apply plugin : ' com.github.dcendents.android-maven'
3+ group= ' com.github.mreram'
34android {
45 compileSdkVersion 26
56
@@ -24,6 +25,18 @@ android {
2425
2526}
2627
28+ task makeShowCaseView (type : Copy ) {
29+ from(' build/intermediates/bundles/release/' )
30+ into(' build/outputs/' )
31+ include(' classes.jar' )
32+ rename (' classes.jar' , ' showCaseViewLib.jar' )
33+ into(' release/' ) // you can change this directory where you want to copy your .jar
34+ }
35+ task clearJar (type : Delete ) {
36+ delete ' build/libs/showCaseViewLib.jar'
37+ }
38+ makeShowCaseView. dependsOn(clearJar, build)
39+
2740dependencies {
2841 implementation fileTree(dir : ' libs' , include : [' *.jar' ])
2942
Original file line number Diff line number Diff line change 11<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
2- package =" parvane .ir.eram.showcaseviewlib" />
2+ package =" smartdevelop .ir.eram.showcaseviewlib" />
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments