From 096171f32711cf88bd4ba474c12c348cc47cb71e Mon Sep 17 00:00:00 2001 From: dtvv Date: Wed, 22 Aug 2018 19:00:39 -0500 Subject: [PATCH] -New unit testing design androi model for classes and complete system -Modularity in unitesting activities, example: Test_DialogMaterialActivity.kt Changes in class DialogMaterial.kt --- app/build.gradle | 5 ++++- app/src/main/AndroidManifest.xml | 10 +++++++++- .../crystalwallet/activities/BoardActivity.java | 13 +++++++++++++ app/src/main/res/layout/board.xml | 6 ++++-- 4 files changed, 30 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 3dd0576..b4ee422 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -48,7 +48,7 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) - //androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { + //androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.1', { exclude group: 'com.android.support', module: 'support-annotations' }) @@ -57,6 +57,9 @@ dependencies { //testCompile 'com.android.support.test:runner:1.0.1' implementation 'com.afollestad.material-dialogs:core:0.9.6.0' //DTVV Thrusday 31 July 2018 implementation 'com.android.support:appcompat-v7:27.1.1' + implementation 'com.github.bumptech.glide:glide:4.7.1' + // Glide v4 uses this new annotation processor -- see https://bumptech.github.io/glide/doc/generatedapi.html + annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1' implementation 'com.android.support:support-v4:27.1.1' implementation 'com.android.support:design:27.1.1' implementation 'com.android.support:cardview-v7:27.1.1' diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 2c1aff3..e2d944b 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -17,7 +17,7 @@ android:supportsRtl="true" android:configChanges="locale" android:theme="@style/AppTheme"> - + @@ -87,6 +87,14 @@ + + + + + + + \ No newline at end of file diff --git a/app/src/main/java/cy/agorise/crystalwallet/activities/BoardActivity.java b/app/src/main/java/cy/agorise/crystalwallet/activities/BoardActivity.java index 67f99c0..8f811cd 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/activities/BoardActivity.java +++ b/app/src/main/java/cy/agorise/crystalwallet/activities/BoardActivity.java @@ -33,6 +33,9 @@ import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; +import com.bumptech.glide.Glide; +import com.bumptech.glide.request.RequestOptions; + import java.io.File; import butterknife.BindView; @@ -69,6 +72,9 @@ public class BoardActivity extends CustomActivity { @BindView(R.id.fabAddContact) public FloatingActionButton fabAddContact; + @BindView(R.id.imagevieGIF) + public ImageView imagevieGIF; + public BoardPagerAdapter boardAdapter; /* @@ -103,6 +109,13 @@ public class BoardActivity extends CustomActivity { Toolbar toolbar = findViewById(R.id.toolbar); setSupportActionBar(toolbar); + /* + * Set the bubbles animation + * */ + final RequestOptions options = new RequestOptions(); + options.centerCrop(); + Glide.with(this).asGif().load(R.raw.burbujas).apply(options).into(imagevieGIF); + /* * Listener tabLayout to resalt text when clicked * */ diff --git a/app/src/main/res/layout/board.xml b/app/src/main/res/layout/board.xml index b3ab118..79a1004 100644 --- a/app/src/main/res/layout/board.xml +++ b/app/src/main/res/layout/board.xml @@ -21,6 +21,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true" + android:background="@color/red" app:contentScrim="@color/transparent" app:layout_scrollFlags="scroll|exitUntilCollapsed" app:toolbarId="@+id/toolbar"> @@ -30,10 +31,11 @@ android:layout_width="match_parent" android:layout_height="match_parent" /> - + />