-New unit testing design androi model for classes and complete system

-Modularity in unitesting activities, example:
Test_DialogMaterialActivity.kt
Changes in class DialogMaterial.kt
This commit is contained in:
dtvv 2018-08-22 19:00:39 -05:00
parent 6d06d307f3
commit 096171f327
4 changed files with 30 additions and 4 deletions

View file

@ -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'

View file

@ -17,7 +17,7 @@
android:supportsRtl="true"
android:configChanges="locale"
android:theme="@style/AppTheme">
<activity android:name=".activities.LicenseActivity">
<activity android:name=".tests.activities.dialogs.Test_CrystalDialogActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
@ -87,6 +87,14 @@
<activity android:name=".activities.CreateContactActivity">
</activity>
<!--Test activities-->
<activity android:name=".tests.activities.dialogs.Test_DialogMaterialActivity">
</activity>
<!--<activity android:name=".activities.Test_CrystalDialogActivity">
</activity>-->
</application>
</manifest>

View file

@ -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
* */

View file

@ -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" />
<View
<ImageView
android:id="@+id/imagevieGIF"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorPrimaryTransparent"/>
/>
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"