Merge branch 'develop' of https://github.com/agorise/crystal-wallet-android into develop
This commit is contained in:
commit
d04e847bba
7 changed files with 131 additions and 142 deletions
|
@ -35,14 +35,18 @@ public abstract class GetEstimateFee {
|
||||||
call.enqueue(new Callback<JsonObject>() {
|
call.enqueue(new Callback<JsonObject>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(Call<JsonObject> call, Response<JsonObject> response) {
|
public void onResponse(Call<JsonObject> call, Response<JsonObject> response) {
|
||||||
|
try {
|
||||||
listener.estimateFee((double) (response.body().get("2").getAsDouble()));
|
listener.estimateFee((double) (response.body().get("2").getAsDouble()));
|
||||||
|
}catch (Exception e){
|
||||||
|
e.printStackTrace();
|
||||||
|
listener.fail();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onFailure(Call<JsonObject> call, Throwable t) {
|
public void onFailure(Call<JsonObject> call, Throwable t) {
|
||||||
listener.fail();
|
listener.fail();
|
||||||
listener.estimateFee(-1);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}catch(Exception e){
|
}catch(Exception e){
|
||||||
|
|
|
@ -97,8 +97,8 @@ class InsightApiServiceGenerator {
|
||||||
return chain.proceed(request);
|
return chain.proceed(request);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
sClientBuilder.readTimeout(5, TimeUnit.MINUTES);
|
sClientBuilder.readTimeout(30, TimeUnit.SECONDS);
|
||||||
sClientBuilder.connectTimeout(5, TimeUnit.MINUTES);
|
sClientBuilder.connectTimeout(30, TimeUnit.SECONDS);
|
||||||
OkHttpClient client = sClientBuilder.build();
|
OkHttpClient client = sClientBuilder.build();
|
||||||
Retrofit retrofit = sBuilder.client(client).build();
|
Retrofit retrofit = sBuilder.client(client).build();
|
||||||
return retrofit.create(serviceClass);
|
return retrofit.create(serviceClass);
|
||||||
|
|
|
@ -52,8 +52,8 @@ public class CrystalApplication extends Application {
|
||||||
|
|
||||||
|
|
||||||
public static final String BITCOIN_SERVER_URLS[] ={
|
public static final String BITCOIN_SERVER_URLS[] ={
|
||||||
|
"https://testnet.blockexplorer.com/",
|
||||||
"https://test-insight.bitpay.com",
|
"https://test-insight.bitpay.com",
|
||||||
//"https://testnet.blockexplorer.com/",
|
|
||||||
//"https://insight.bitpay.com/"
|
//"https://insight.bitpay.com/"
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -28,8 +28,6 @@ import android.text.Editable;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
|
||||||
import android.view.Window;
|
|
||||||
import android.widget.ArrayAdapter;
|
import android.widget.ArrayAdapter;
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
|
@ -139,9 +137,7 @@ public class SendTransactionFragment extends DialogFragment implements UIValidat
|
||||||
private FloatingActionButton fabSend;
|
private FloatingActionButton fabSend;
|
||||||
private AlertDialog.Builder builder;
|
private AlertDialog.Builder builder;
|
||||||
|
|
||||||
/*
|
/* Dialog for loading */
|
||||||
Dialog for loading
|
|
||||||
*/
|
|
||||||
private CrystalDialog crystalDialog;
|
private CrystalDialog crystalDialog;
|
||||||
|
|
||||||
public static SendTransactionFragment newInstance(long cryptoNetAccountId) {
|
public static SendTransactionFragment newInstance(long cryptoNetAccountId) {
|
||||||
|
@ -168,7 +164,6 @@ public class SendTransactionFragment extends DialogFragment implements UIValidat
|
||||||
|
|
||||||
//AlertDialog.Builder
|
//AlertDialog.Builder
|
||||||
builder = new AlertDialog.Builder(getActivity(), R.style.dialog_theme_full);
|
builder = new AlertDialog.Builder(getActivity(), R.style.dialog_theme_full);
|
||||||
//builder.setTitle("Send");
|
|
||||||
|
|
||||||
LayoutInflater inflater = getActivity().getLayoutInflater();
|
LayoutInflater inflater = getActivity().getLayoutInflater();
|
||||||
View view = inflater.inflate(R.layout.send_transaction, null);
|
View view = inflater.inflate(R.layout.send_transaction, null);
|
||||||
|
@ -176,11 +171,7 @@ public class SendTransactionFragment extends DialogFragment implements UIValidat
|
||||||
|
|
||||||
this.cryptoNetAccountId = getArguments().getLong("CRYPTO_NET_ACCOUNT_ID",-1);
|
this.cryptoNetAccountId = getArguments().getLong("CRYPTO_NET_ACCOUNT_ID",-1);
|
||||||
|
|
||||||
final Activity activity = getActivity();
|
/* Add style to the spinner android */
|
||||||
|
|
||||||
/*
|
|
||||||
* Add style to the spinner android
|
|
||||||
* */
|
|
||||||
spFrom.setBackground(getContext().getDrawable(R.drawable.square_color));
|
spFrom.setBackground(getContext().getDrawable(R.drawable.square_color));
|
||||||
|
|
||||||
if (this.cryptoNetAccountId != -1) {
|
if (this.cryptoNetAccountId != -1) {
|
||||||
|
@ -191,36 +182,10 @@ public class SendTransactionFragment extends DialogFragment implements UIValidat
|
||||||
List<CryptoNetAccount> cryptoNetAccounts = cryptoNetAccountListViewModel.getCryptoNetAccountList();
|
List<CryptoNetAccount> cryptoNetAccounts = cryptoNetAccountListViewModel.getCryptoNetAccountList();
|
||||||
CryptoNetAccountAdapter fromSpinnerAdapter = new CryptoNetAccountAdapter(this.getContext(), android.R.layout.simple_spinner_item, cryptoNetAccounts);
|
CryptoNetAccountAdapter fromSpinnerAdapter = new CryptoNetAccountAdapter(this.getContext(), android.R.layout.simple_spinner_item, cryptoNetAccounts);
|
||||||
|
|
||||||
/*
|
|
||||||
* If only one account block the control
|
|
||||||
* */
|
|
||||||
//if(cryptoNetAccounts.size()==1){
|
|
||||||
// spFrom.setEnabled(false);
|
|
||||||
//}
|
|
||||||
|
|
||||||
spFrom.setAdapter(fromSpinnerAdapter);
|
spFrom.setAdapter(fromSpinnerAdapter);
|
||||||
spFrom.setSelection(0);
|
spFrom.setSelection(0);
|
||||||
|
|
||||||
setAccountUI();
|
setAccountUI();
|
||||||
/*
|
|
||||||
* Custom material spinner implementation
|
|
||||||
* */
|
|
||||||
//spFrom.setItems(cryptoNetAccounts);
|
|
||||||
//spFrom.setSelectedIndex(0);
|
|
||||||
//spFrom.setOnItemSelectedListener(new MaterialSpinner.OnItemSelectedListener<CryptoNetAccount>() {
|
|
||||||
// @Override
|
|
||||||
// public void onItemSelected(MaterialSpinner view, int position, long id, CryptoNetAccount item) {
|
|
||||||
// sendTransactionValidator.validate();
|
|
||||||
// }
|
|
||||||
//});
|
|
||||||
//spFrom.setOnNothingSelectedListener(new MaterialSpinner.OnNothingSelectedListener() {
|
|
||||||
|
|
||||||
// @Override public void onNothingSelected(MaterialSpinner spinner) {
|
|
||||||
|
|
||||||
// }
|
|
||||||
//});
|
|
||||||
|
|
||||||
// etFrom.setText(this.grapheneAccount.getName());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
loadUserImage();
|
loadUserImage();
|
||||||
|
@ -337,12 +302,7 @@ public class SendTransactionFragment extends DialogFragment implements UIValidat
|
||||||
public void onResume() {
|
public void onResume() {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
mScannerView.setResultHandler(this);
|
mScannerView.setResultHandler(this);
|
||||||
mScannerView.startCamera();
|
|
||||||
|
|
||||||
// Force dialog fragment to use the full width of the screen
|
|
||||||
Window dialogWindow = getDialog().getWindow();
|
|
||||||
assert dialogWindow != null;
|
|
||||||
dialogWindow.setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
|
|
||||||
loadUserImage();
|
loadUserImage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -511,10 +471,7 @@ public class SendTransactionFragment extends DialogFragment implements UIValidat
|
||||||
|
|
||||||
|
|
||||||
if (fromAccountSelected.getCryptoNet() == CryptoNet.BITSHARES) {
|
if (fromAccountSelected.getCryptoNet() == CryptoNet.BITSHARES) {
|
||||||
/*
|
/* This is only for graphene accounts. */
|
||||||
* this is only for graphene accounts.
|
|
||||||
*
|
|
||||||
**/
|
|
||||||
GrapheneAccount grapheneAccountSelected = new GrapheneAccount(fromAccountSelected);
|
GrapheneAccount grapheneAccountSelected = new GrapheneAccount(fromAccountSelected);
|
||||||
grapheneAccountSelected.loadInfo(db.grapheneAccountInfoDao().getByAccountId(fromAccountSelected.getId()));
|
grapheneAccountSelected.loadInfo(db.grapheneAccountInfoDao().getByAccountId(fromAccountSelected.getId()));
|
||||||
|
|
||||||
|
@ -545,6 +502,7 @@ public class SendTransactionFragment extends DialogFragment implements UIValidat
|
||||||
throwable.printStackTrace();
|
throwable.printStackTrace();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
crystalDialog.dismiss();
|
||||||
Toast.makeText(getContext(), getContext().getString(R.string.unable_to_send_amount), Toast.LENGTH_LONG);
|
Toast.makeText(getContext(), getContext().getString(R.string.unable_to_send_amount), Toast.LENGTH_LONG);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -577,22 +535,19 @@ public class SendTransactionFragment extends DialogFragment implements UIValidat
|
||||||
throwable.printStackTrace();
|
throwable.printStackTrace();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
crystalDialog.dismiss();
|
||||||
Toast.makeText(getContext(), getContext().getString(R.string.unable_to_send_amount), Toast.LENGTH_LONG);
|
Toast.makeText(getContext(), getContext().getString(R.string.unable_to_send_amount), Toast.LENGTH_LONG);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/* If exists mode security show it and validate events in case of success or fail */
|
||||||
* If exists mode scurity show it and valide events in case of success or fail
|
|
||||||
* */
|
|
||||||
CrystalSecurityMonitor.getInstance(this.getActivity()).callPasswordRequest(this.getActivity(), new OnResponse() {
|
CrystalSecurityMonitor.getInstance(this.getActivity()).callPasswordRequest(this.getActivity(), new OnResponse() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess() {
|
public void onSuccess() {
|
||||||
|
|
||||||
/*
|
/* Show loading dialog */
|
||||||
* Show loading dialog
|
|
||||||
* */
|
|
||||||
crystalDialog = new CrystalDialog((Activity) getContext());
|
crystalDialog = new CrystalDialog((Activity) getContext());
|
||||||
crystalDialog.setText("Sending");
|
crystalDialog.setText("Sending");
|
||||||
crystalDialog.progress();
|
crystalDialog.progress();
|
||||||
|
@ -623,10 +578,6 @@ public class SendTransactionFragment extends DialogFragment implements UIValidat
|
||||||
|
|
||||||
// Camera Permissions
|
// Camera Permissions
|
||||||
private static final int REQUEST_CAMERA_PERMISSION = 1;
|
private static final int REQUEST_CAMERA_PERMISSION = 1;
|
||||||
private static String[] PERMISSIONS_CAMERA = {
|
|
||||||
Manifest.permission.CAMERA
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onValidationSucceeded(final ValidationField field) {
|
public void onValidationSucceeded(final ValidationField field) {
|
||||||
|
|
|
@ -241,11 +241,12 @@ public class GeneralAccountManager implements CryptoAccountManager, CryptoNetInf
|
||||||
ccTransaction.setAccountId(address.getAccountId());
|
ccTransaction.setAccountId(address.getAccountId());
|
||||||
ccTransaction.setFrom(addr);
|
ccTransaction.setFrom(addr);
|
||||||
ccTransaction.setInput(false);
|
ccTransaction.setInput(false);
|
||||||
|
amount -= (long) (txi.fee * Math.pow(10, cryptoCoin.getPrecision()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ccTransaction.getAccountId() == address.getAccountId()) {
|
//if (ccTransaction.getAccountId() == address.getAccountId()) {
|
||||||
amount -= (long) (vin.value * Math.pow(10, cryptoCoin.getPrecision()));
|
amount -= (long) (vin.value * Math.pow(10, cryptoCoin.getPrecision()));
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ccTransaction.getFrom() == null || ccTransaction.getFrom().isEmpty()) {
|
if (ccTransaction.getFrom() == null || ccTransaction.getFrom().isEmpty()) {
|
||||||
|
@ -280,9 +281,9 @@ public class GeneralAccountManager implements CryptoAccountManager, CryptoNetInf
|
||||||
ccTransaction.setTo(addr);
|
ccTransaction.setTo(addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ccTransaction.getAccountId() == address.getAccountId()) {
|
//if (ccTransaction.getAccountId() == address.getAccountId()) {
|
||||||
amount += (long) (vout.value * Math.pow(10, cryptoCoin.getPrecision()));
|
amount += (long) (vout.value * Math.pow(10, cryptoCoin.getPrecision()));
|
||||||
}
|
//}
|
||||||
} else {
|
} else {
|
||||||
//TOOD multiple send address
|
//TOOD multiple send address
|
||||||
if (ccTransaction.getTo() == null || ccTransaction.getTo().isEmpty()) {
|
if (ccTransaction.getTo() == null || ccTransaction.getTo().isEmpty()) {
|
||||||
|
@ -374,24 +375,37 @@ public class GeneralAccountManager implements CryptoAccountManager, CryptoNetInf
|
||||||
//TODO check server connection
|
//TODO check server connection
|
||||||
//TODO validate to address
|
//TODO validate to address
|
||||||
|
|
||||||
|
System.out.println("GeneralAccount Manager Send request, asking fee");
|
||||||
InsightApiGenerator.getEstimateFee(this.cryptoCoin,new ApiRequest(1, new ApiRequestListener() {
|
InsightApiGenerator.getEstimateFee(this.cryptoCoin,new ApiRequest(1, new ApiRequestListener() {
|
||||||
@Override
|
@Override
|
||||||
public void success(Object answer, int idPetition) {
|
public void success(Object answer, int idPetition) {
|
||||||
|
System.out.println("GeneralAccount Manager Send request, fee " + answer.toString());
|
||||||
|
try {
|
||||||
Transaction tx = new Transaction(cryptoCoin.getParameters());
|
Transaction tx = new Transaction(cryptoCoin.getParameters());
|
||||||
long currentAmount = 0;
|
long currentAmount = 0;
|
||||||
long fee = -1;
|
long fee = -1;
|
||||||
long feeRate = (long) (((double) answer) * Math.pow(10, cryptoCoin.getPrecision()));
|
long feeRate = (long) (((double) answer) * Math.pow(10, cryptoCoin.getPrecision()));
|
||||||
fee = 226 * feeRate;
|
fee = 226 * feeRate;
|
||||||
|
|
||||||
|
System.out.println("GeneralAccount Manager Send request getting utxos" );
|
||||||
CrystalDatabase db = CrystalDatabase.getAppDatabase(request.getContext());
|
CrystalDatabase db = CrystalDatabase.getAppDatabase(request.getContext());
|
||||||
db.bitcoinTransactionDao();
|
db.bitcoinTransactionDao();
|
||||||
|
|
||||||
List<BitcoinTransactionGTxIO> utxos = getUtxos(request.getSourceAccount().getId(), db);
|
List<BitcoinTransactionGTxIO> utxos = getUtxos(request.getSourceAccount().getId(), db);
|
||||||
|
System.out.println("GeneralAccount Manager Send request utxos found " + utxos.size() );
|
||||||
|
for(BitcoinTransactionGTxIO utxo : utxos){
|
||||||
|
currentAmount += utxo.getAmount();
|
||||||
|
if(currentAmount >= request.getAmount() + fee) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (currentAmount < request.getAmount() + fee) {
|
if (currentAmount < request.getAmount() + fee) {
|
||||||
|
System.out.println("GeneralAccount Manager Send request no balance" );
|
||||||
request.setStatus(BitcoinSendRequest.StatusCode.NO_BALANCE);
|
request.setStatus(BitcoinSendRequest.StatusCode.NO_BALANCE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
AccountSeed seed = db.accountSeedDao().findById(request.getSourceAccount().getSeedId());
|
AccountSeed seed = db.accountSeedDao().findById(request.getSourceAccount().getSeedId());
|
||||||
DeterministicKey purposeKey = HDKeyDerivation.deriveChildKey((DeterministicKey) seed.getPrivateKey(),
|
DeterministicKey purposeKey = HDKeyDerivation.deriveChildKey((DeterministicKey) seed.getPrivateKey(),
|
||||||
new ChildNumber(44, true));
|
new ChildNumber(44, true));
|
||||||
|
@ -460,23 +474,35 @@ public class GeneralAccountManager implements CryptoAccountManager, CryptoNetInf
|
||||||
addrKey = HDKeyDerivation.deriveChildKey(externalKey, new ChildNumber((int) btAddress.getIndex(), true));
|
addrKey = HDKeyDerivation.deriveChildKey(externalKey, new ChildNumber((int) btAddress.getIndex(), true));
|
||||||
}
|
}
|
||||||
tx.addSignedInput(outPoint, script, addrKey, Transaction.SigHash.ALL, true);
|
tx.addSignedInput(outPoint, script, addrKey, Transaction.SigHash.ALL, true);
|
||||||
|
currentAmount -= utxo.getAmount();
|
||||||
|
if(currentAmount<= 0){
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
System.out.println("GeneralAccount Manager Send request rawtx " +Util.bytesToHex(tx.bitcoinSerialize()) );
|
||||||
InsightApiGenerator.broadcastTransaction(cryptoCoin, Util.bytesToHex(tx.bitcoinSerialize()), new ApiRequest(1, new ApiRequestListener() {
|
InsightApiGenerator.broadcastTransaction(cryptoCoin, Util.bytesToHex(tx.bitcoinSerialize()), new ApiRequest(1, new ApiRequestListener() {
|
||||||
@Override
|
@Override
|
||||||
public void success(Object answer, int idPetition) {
|
public void success(Object answer, int idPetition) {
|
||||||
|
System.out.println("GeneralAccount MAnager succed send");
|
||||||
request.setStatus(BitcoinSendRequest.StatusCode.SUCCEEDED);
|
request.setStatus(BitcoinSendRequest.StatusCode.SUCCEEDED);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void fail(int idPetition) {
|
public void fail(int idPetition) {
|
||||||
|
System.out.println("GeneralAccount MAnager succed fail");
|
||||||
request.setStatus(BitcoinSendRequest.StatusCode.PETITION_FAILED);
|
request.setStatus(BitcoinSendRequest.StatusCode.PETITION_FAILED);
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
}catch(Exception e){
|
||||||
|
System.out.println("GeneralAccount Manager Send request error ");
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void fail(int idPetition) {
|
public void fail(int idPetition) {
|
||||||
|
System.out.println("GeneralAccount Manager Send request fee fail" );
|
||||||
request.setStatus(BitcoinSendRequest.StatusCode.NO_FEE);
|
request.setStatus(BitcoinSendRequest.StatusCode.NO_FEE);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,7 +89,7 @@ public class BitcoinSendRequest extends CryptoNetInfoRequest {
|
||||||
|
|
||||||
public void setStatus(StatusCode code){
|
public void setStatus(StatusCode code){
|
||||||
this.status = code;
|
this.status = code;
|
||||||
this._fireOnCarryOutEvent();
|
this.validate();
|
||||||
}
|
}
|
||||||
|
|
||||||
public StatusCode getStatus() {
|
public StatusCode getStatus() {
|
||||||
|
|
|
@ -18,6 +18,13 @@
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
app:layout_constraintGuide_percent="0.5"/>
|
app:layout_constraintGuide_percent="0.5"/>
|
||||||
|
|
||||||
|
<android.support.constraint.Guideline
|
||||||
|
android:id="@+id/cameraVerticalGuideline"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
app:layout_constraintGuide_percent="0.65"/>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:id="@+id/topView"
|
android:id="@+id/topView"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@ -217,7 +224,7 @@
|
||||||
app:layout_constraintDimensionRatio="1:1"
|
app:layout_constraintDimensionRatio="1:1"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/tvScan"
|
app:layout_constraintTop_toBottomOf="@+id/tvScan"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintEnd_toStartOf="@id/centeredVerticalGuideline"/>
|
app:layout_constraintEnd_toStartOf="@id/cameraVerticalGuideline"/>
|
||||||
|
|
||||||
<android.support.design.widget.FloatingActionButton
|
<android.support.design.widget.FloatingActionButton
|
||||||
android:id="@+id/fabCloseCamera"
|
android:id="@+id/fabCloseCamera"
|
||||||
|
@ -225,7 +232,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:backgroundTint="@color/send_strong_orange"
|
app:backgroundTint="@color/send_strong_orange"
|
||||||
app:fabCustomSize="32dp"
|
app:fabCustomSize="32dp"
|
||||||
app:layout_constraintStart_toEndOf="@id/centeredVerticalGuideline"
|
app:layout_constraintStart_toEndOf="@id/cameraVerticalGuideline"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/tvScan"
|
app:layout_constraintTop_toBottomOf="@+id/tvScan"
|
||||||
app:srcCompat="@drawable/ok" />
|
app:srcCompat="@drawable/ok" />
|
||||||
|
|
||||||
|
@ -247,7 +254,8 @@
|
||||||
android:layout_marginEnd="0dp"
|
android:layout_marginEnd="0dp"
|
||||||
android:background="@drawable/send_transaction_send_view"
|
android:background="@drawable/send_transaction_send_view"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="@id/ivCamera" />
|
app:layout_constraintTop_toTopOf="@id/viewCamera"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@id/viewCamera"/>
|
||||||
|
|
||||||
<android.support.design.widget.FloatingActionButton
|
<android.support.design.widget.FloatingActionButton
|
||||||
android:id="@+id/btnSend"
|
android:id="@+id/btnSend"
|
||||||
|
|
Loading…
Reference in a new issue