New unit test implementation github style for some UI implementations
This commit is contained in:
parent
096171f327
commit
1fce05145d
4 changed files with 16 additions and 27 deletions
|
@ -17,7 +17,7 @@
|
||||||
android:supportsRtl="true"
|
android:supportsRtl="true"
|
||||||
android:configChanges="locale"
|
android:configChanges="locale"
|
||||||
android:theme="@style/AppTheme">
|
android:theme="@style/AppTheme">
|
||||||
<activity android:name=".tests.activities.dialogs.Test_CrystalDialogActivity">
|
<activity android:name=".activities.LicenseActivity">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
|
||||||
|
@ -92,8 +92,16 @@
|
||||||
<!--Test activities-->
|
<!--Test activities-->
|
||||||
<activity android:name=".tests.activities.dialogs.Test_DialogMaterialActivity">
|
<activity android:name=".tests.activities.dialogs.Test_DialogMaterialActivity">
|
||||||
</activity>
|
</activity>
|
||||||
<!--<activity android:name=".activities.Test_CrystalDialogActivity">
|
<activity android:name=".tests.activities.dialogs.Test_LoadingActivity">
|
||||||
</activity>-->
|
</activity>
|
||||||
|
<activity android:name=".tests.activities.dialogs.Test_CrystalDialogActivity">
|
||||||
|
</activity>
|
||||||
|
<activity android:name=".tests.activities.dialogs.Test_GIFActivity">
|
||||||
|
</activity>
|
||||||
|
<activity android:name=".tests.activities.dialogs.Test_ToastActivity">
|
||||||
|
</activity>
|
||||||
|
<activity android:name=".tests.activities.dialogs.Test_VideoActivity">
|
||||||
|
</activity>
|
||||||
|
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,7 @@ import cy.agorise.crystalwallet.fragments.ContactsFragment;
|
||||||
import cy.agorise.crystalwallet.fragments.ReceiveTransactionFragment;
|
import cy.agorise.crystalwallet.fragments.ReceiveTransactionFragment;
|
||||||
import cy.agorise.crystalwallet.fragments.SendTransactionFragment;
|
import cy.agorise.crystalwallet.fragments.SendTransactionFragment;
|
||||||
import cy.agorise.crystalwallet.fragments.TransactionsFragment;
|
import cy.agorise.crystalwallet.fragments.TransactionsFragment;
|
||||||
|
import cy.agorise.crystalwallet.views.natives.GIFView;
|
||||||
import de.hdodenhof.circleimageview.CircleImageView;
|
import de.hdodenhof.circleimageview.CircleImageView;
|
||||||
import cy.agorise.crystalwallet.viewmodels.CryptoNetBalanceListViewModel;
|
import cy.agorise.crystalwallet.viewmodels.CryptoNetBalanceListViewModel;
|
||||||
|
|
||||||
|
@ -73,7 +74,7 @@ public class BoardActivity extends CustomActivity {
|
||||||
public FloatingActionButton fabAddContact;
|
public FloatingActionButton fabAddContact;
|
||||||
|
|
||||||
@BindView(R.id.imagevieGIF)
|
@BindView(R.id.imagevieGIF)
|
||||||
public ImageView imagevieGIF;
|
public GIFView imagevieGIF;
|
||||||
|
|
||||||
public BoardPagerAdapter boardAdapter;
|
public BoardPagerAdapter boardAdapter;
|
||||||
|
|
||||||
|
@ -112,9 +113,8 @@ public class BoardActivity extends CustomActivity {
|
||||||
/*
|
/*
|
||||||
* Set the bubbles animation
|
* Set the bubbles animation
|
||||||
* */
|
* */
|
||||||
final RequestOptions options = new RequestOptions();
|
imagevieGIF.centerCrop();
|
||||||
options.centerCrop();
|
imagevieGIF.load(R.raw.burbujas);
|
||||||
Glide.with(this).asGif().load(R.raw.burbujas).apply(options).into(imagevieGIF);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Listener tabLayout to resalt text when clicked
|
* Listener tabLayout to resalt text when clicked
|
||||||
|
|
|
@ -156,13 +156,6 @@ public class WebSocketThread extends Thread {
|
||||||
|
|
||||||
canChange = false;
|
canChange = false;
|
||||||
|
|
||||||
/*
|
|
||||||
* Show the loading activity so user can see the progress
|
|
||||||
* */
|
|
||||||
if(activity!=null){
|
|
||||||
LoadingActivity.show(activity);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Moves the current Thread into the background
|
// Moves the current Thread into the background
|
||||||
android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_BACKGROUND);
|
android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_BACKGROUND);
|
||||||
|
|
||||||
|
@ -180,13 +173,6 @@ public class WebSocketThread extends Thread {
|
||||||
WebSocketThread.currentThreads.put(this.getId(),this);
|
WebSocketThread.currentThreads.put(this.getId(),this);
|
||||||
mWebSocket.connect();
|
mWebSocket.connect();
|
||||||
|
|
||||||
/*
|
|
||||||
* Hide the loading activity, now it is not more necesary
|
|
||||||
* */
|
|
||||||
if(activity!=null){
|
|
||||||
LoadingActivity.dismiss();
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* Websocket success response
|
* Websocket success response
|
||||||
|
@ -198,11 +184,6 @@ public class WebSocketThread extends Thread {
|
||||||
} catch (final Exception e) {
|
} catch (final Exception e) {
|
||||||
Log.e(TAG, "WebSocketException. Msg: "+e.getMessage());
|
Log.e(TAG, "WebSocketException. Msg: "+e.getMessage());
|
||||||
|
|
||||||
/*
|
|
||||||
* Hide the loading activity, now it is not more necesary
|
|
||||||
* */
|
|
||||||
LoadingActivity.dismiss();
|
|
||||||
|
|
||||||
//Deliver error to user
|
//Deliver error to user
|
||||||
if(activity!=null){
|
if(activity!=null){
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent" />
|
android:layout_height="match_parent" />
|
||||||
|
|
||||||
<ImageView
|
<cy.agorise.crystalwallet.views.natives.GIFView
|
||||||
android:id="@+id/imagevieGIF"
|
android:id="@+id/imagevieGIF"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
|
Loading…
Reference in a new issue