Merge branch 'feat_ui_improvements' into develop
|
@ -47,6 +47,7 @@ dependencies {
|
|||
implementation 'com.android.support:appcompat-v7:27.1.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'
|
||||
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
|
||||
implementation 'android.arch.lifecycle:runtime:1.1.1'
|
||||
implementation 'android.arch.lifecycle:extensions:1.1.1'
|
||||
|
|
|
@ -85,7 +85,7 @@ public class ContactListView extends RelativeLayout {
|
|||
final LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this.getContext());
|
||||
this.listView.setLayoutManager(linearLayoutManager);
|
||||
//Prevents the list to start again when scrolling to the end
|
||||
this.listView.setNestedScrollingEnabled(false);
|
||||
//this.listView.setNestedScrollingEnabled(false);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -32,9 +32,9 @@ import cy.agorise.crystalwallet.models.CryptoCoinTransactionExtended;
|
|||
|
||||
public class TransactionListAdapter extends PagedListAdapter<CryptoCoinTransactionExtended, TransactionViewHolder> {
|
||||
|
||||
Fragment fragment;
|
||||
private Fragment fragment;
|
||||
|
||||
public TransactionListAdapter(Fragment fragment) {
|
||||
TransactionListAdapter(Fragment fragment) {
|
||||
super(CryptoCoinTransactionExtended.DIFF_CALLBACK);
|
||||
this.fragment = fragment;
|
||||
}
|
||||
|
|
|
@ -1,26 +1,21 @@
|
|||
package cy.agorise.crystalwallet.views;
|
||||
|
||||
import android.arch.lifecycle.LifecycleOwner;
|
||||
import android.arch.lifecycle.LiveData;
|
||||
import android.arch.lifecycle.Observer;
|
||||
import android.arch.lifecycle.ViewModelProviders;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.support.annotation.Nullable;
|
||||
import android.support.v4.app.Fragment;
|
||||
import android.support.v7.widget.RecyclerView;
|
||||
import android.view.View;
|
||||
import android.widget.RelativeLayout;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.TextView;
|
||||
|
||||
import java.text.DateFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.TimeZone;
|
||||
|
||||
import cy.agorise.crystalwallet.R;
|
||||
import cy.agorise.crystalwallet.activities.CryptoCoinTransactionReceiptActivity;
|
||||
import cy.agorise.crystalwallet.models.CryptoCoinTransaction;
|
||||
import cy.agorise.crystalwallet.models.CryptoCoinTransactionExtended;
|
||||
import cy.agorise.crystalwallet.models.CryptoCurrency;
|
||||
import cy.agorise.crystalwallet.models.CryptoNetAccount;
|
||||
|
@ -36,45 +31,40 @@ import cy.agorise.crystalwallet.viewmodels.GeneralSettingListViewModel;
|
|||
*/
|
||||
|
||||
public class TransactionViewHolder extends RecyclerView.ViewHolder {
|
||||
/*
|
||||
* The view holding the transaction "from"
|
||||
*/
|
||||
|
||||
private View vPaymentDirection;
|
||||
private TextView tvFrom;
|
||||
/*
|
||||
* The view holding the transaction "to"
|
||||
*/
|
||||
private ImageView ivDirectionArrow;
|
||||
private TextView tvTo;
|
||||
/*
|
||||
* The view holding the transaction amount
|
||||
*/
|
||||
private TextView tvAmount;
|
||||
private TextView tvEquivalent;
|
||||
private TextView tvTransactionDate;
|
||||
private TextView tvTransactionHour;
|
||||
private View rootView;
|
||||
private TextView tvCryptoAmount;
|
||||
private TextView tvFiatEquivalent;
|
||||
private TextView tvDate;
|
||||
private TextView tvTime;
|
||||
|
||||
private Fragment fragment;
|
||||
|
||||
private long cryptoCoinTransactionId;
|
||||
|
||||
public TransactionViewHolder(View itemView, Fragment fragment) {
|
||||
TransactionViewHolder(View itemView, Fragment fragment) {
|
||||
super(itemView);
|
||||
//TODO: use ButterKnife to load this
|
||||
this.cryptoCoinTransactionId = -1;
|
||||
|
||||
rootView = itemView.findViewById(R.id.rlTransactionItem);
|
||||
tvFrom = (TextView) itemView.findViewById(R.id.fromText);
|
||||
tvTo = (TextView) itemView.findViewById(R.id.toText);
|
||||
tvAmount = (TextView) itemView.findViewById(R.id.tvAmount);
|
||||
tvEquivalent = (TextView) itemView.findViewById(R.id.tvEquivalent);
|
||||
tvTransactionDate = (TextView) itemView.findViewById(R.id.tvTransactionDate);
|
||||
tvTransactionHour = (TextView) itemView.findViewById(R.id.tvTransactionHour);
|
||||
View rootView = itemView.findViewById(R.id.rootView);
|
||||
vPaymentDirection = itemView.findViewById(R.id.vPaymentDirection);
|
||||
tvFrom = itemView.findViewById(R.id.tvFrom);
|
||||
ivDirectionArrow = itemView.findViewById(R.id.ivDirectionArrow);
|
||||
tvTo = itemView.findViewById(R.id.tvTo);
|
||||
tvDate = itemView.findViewById(R.id.tvDate);
|
||||
tvTime = itemView.findViewById(R.id.tvTime);
|
||||
tvCryptoAmount = itemView.findViewById(R.id.tvCryptoAmount);
|
||||
tvFiatEquivalent = itemView.findViewById(R.id.tvFiatEquivalent);
|
||||
this.fragment = fragment;
|
||||
|
||||
rootView.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
ereceiptOfThisTransaction();
|
||||
eReceiptOfThisTransaction();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -82,7 +72,7 @@ public class TransactionViewHolder extends RecyclerView.ViewHolder {
|
|||
/*
|
||||
* dispatch the user to the receipt activity using this transaction
|
||||
*/
|
||||
public void ereceiptOfThisTransaction(){
|
||||
private void eReceiptOfThisTransaction(){
|
||||
//if the transaction was loaded
|
||||
if (this.cryptoCoinTransactionId >= 0) {
|
||||
Context context = fragment.getContext();
|
||||
|
@ -104,10 +94,10 @@ public class TransactionViewHolder extends RecyclerView.ViewHolder {
|
|||
public void clear(){
|
||||
tvFrom.setText("loading...");
|
||||
tvTo.setText("");
|
||||
tvAmount.setText("");
|
||||
tvEquivalent.setText("");
|
||||
tvTransactionDate.setText("");
|
||||
tvTransactionHour.setText("");
|
||||
tvCryptoAmount.setText("");
|
||||
tvFiatEquivalent.setText("");
|
||||
tvDate.setText("");
|
||||
tvTime.setText("");
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -140,8 +130,16 @@ public class TransactionViewHolder extends RecyclerView.ViewHolder {
|
|||
DateFormat hourFormat = new SimpleDateFormat("HH:mm:ss");
|
||||
hourFormat.setTimeZone(userTimeZone);
|
||||
|
||||
tvTransactionDate.setText(dateFormat.format(transaction.getDate()));
|
||||
tvTransactionHour.setText(hourFormat.format(transaction.getDate()));
|
||||
if(transaction.getInput()) {
|
||||
vPaymentDirection.setBackgroundColor(fragment.getContext().getResources().getColor(R.color.receiveAmount));
|
||||
ivDirectionArrow.setImageDrawable(fragment.getContext().getDrawable(R.drawable.ic_arrow_forward_receive));
|
||||
} else {
|
||||
vPaymentDirection.setBackgroundColor(fragment.getContext().getResources().getColor(R.color.sendAmount));
|
||||
ivDirectionArrow.setImageDrawable(fragment.getContext().getDrawable(R.drawable.ic_arrow_forward_send));
|
||||
}
|
||||
|
||||
tvDate.setText(dateFormat.format(transaction.getDate()));
|
||||
tvTime.setText(hourFormat.format(transaction.getDate()));
|
||||
|
||||
tvFrom.setText(transaction.getFrom());
|
||||
tvTo.setText(transaction.getTo());
|
||||
|
@ -151,6 +149,7 @@ public class TransactionViewHolder extends RecyclerView.ViewHolder {
|
|||
//cryptoNetAccountLiveData.observe(this.fragment, new Observer<CryptoNetAccount>() {
|
||||
// @Override
|
||||
// public void onChanged(@Nullable CryptoNetAccount cryptoNetAccount) {
|
||||
// TODO is this useful??
|
||||
if (transaction.getInput()){
|
||||
tvTo.setText(transaction.getUserAccountName());
|
||||
|
||||
|
@ -171,26 +170,9 @@ public class TransactionViewHolder extends RecyclerView.ViewHolder {
|
|||
// }
|
||||
//});
|
||||
|
||||
String finalAmountText = "";
|
||||
if (transaction.getInput()) {
|
||||
tvAmount.setTextColor(itemView.getContext().getResources().getColor(R.color.green));
|
||||
finalAmountText = "+ "+amountString
|
||||
+ " "
|
||||
+ cryptoCurrency.getName();
|
||||
} else {
|
||||
tvAmount.setTextColor(itemView.getContext().getResources().getColor(R.color.red));
|
||||
finalAmountText = amountString
|
||||
+ " "
|
||||
+ cryptoCurrency.getName();
|
||||
}
|
||||
tvAmount.setText(finalAmountText);
|
||||
//This will load the transaction receipt when the user clicks this view
|
||||
/*itemView.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
listener.onUserClick(user);
|
||||
}
|
||||
});*/
|
||||
String finalAmountText = transaction.getInput() ? "+ " : "";
|
||||
finalAmountText += amountString + " " + cryptoCurrency.getName();
|
||||
tvCryptoAmount.setText(finalAmountText);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Before Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 616 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 348 B |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 633 B |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 3 KiB |
Before Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 2.5 KiB |
|
@ -1,5 +0,0 @@
|
|||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
|
||||
<solid android:color="#ffffff" />
|
||||
<stroke android:width="3sp" android:color="@color/gray"/>
|
||||
<!--<padding android:left="9dp" android:right="9dp" android:top="9dp" android:bottom="9dp"/>-->
|
||||
</shape>
|
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 2.9 KiB |
|
@ -1,5 +0,0 @@
|
|||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
|
||||
<solid android:color="#ffffff" />
|
||||
<stroke android:width="0.1dp" android:color="#BFE4F4"/>
|
||||
<!--<padding android:left="9dp" android:right="9dp" android:top="9dp" android:bottom="9dp"/>-->
|
||||
</shape>
|
|
@ -1,4 +0,0 @@
|
|||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
|
||||
<solid android:color="#ffffff" />
|
||||
<stroke android:width="0.1dp" android:color="#BFE4F4"/>
|
||||
</shape>
|
|
@ -1,16 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item
|
||||
android:state_pressed="true"
|
||||
android:state_enabled="true"
|
||||
android:drawable="@color/red" />
|
||||
<item
|
||||
android:state_focused="true"
|
||||
android:state_enabled="true"
|
||||
android:drawable="@color/white" />
|
||||
<item
|
||||
android:state_focused="false"
|
||||
android:state_enabled="false"
|
||||
android:drawable="@color/white" />
|
||||
<item android:drawable="@drawable/border_digtis"/>
|
||||
</selector>
|
|
@ -1,9 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_pressed="true"
|
||||
android:color="#fff"/> <!-- pressed -->
|
||||
<item android:state_focused="true"
|
||||
android:color="#ff0000ff"/> <!-- focused -->
|
||||
<item android:color="#ff000000"/> <!-- default -->
|
||||
</selector>
|
|
@ -1,25 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
>
|
||||
<solid
|
||||
android:color="@color/whiteColor"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
<corners
|
||||
android:radius="2dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
<padding
|
||||
android:left="0dp"
|
||||
android:top="0dp"
|
||||
android:right="0dp"
|
||||
android:bottom="0dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
<size
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
</shape>
|
Before Width: | Height: | Size: 17 KiB |
|
@ -1,14 +0,0 @@
|
|||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
|
||||
<item android:top="-2dp" android:right="-2dp" android:left="-2dp">
|
||||
<shape>
|
||||
<solid android:color="@android:color/transparent" />
|
||||
<stroke
|
||||
|
||||
android:width="2dp"
|
||||
android:color="#70882E" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
</layer-list>
|
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.8 KiB |
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<gradient
|
||||
android:angle="90"
|
||||
android:startColor="@color/light_blue"
|
||||
android:endColor="@color/white"
|
||||
android:type="linear"/>
|
||||
</shape>
|
Before Width: | Height: | Size: 3.4 KiB |
10
app/src/main/res/drawable/ic_arrow_forward_receive.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:fillColor="@color/receiveAmount"
|
||||
android:pathData="M12,4l-1.41,1.41L16.17,11H4v2h12.17l-5.58,5.59L12,20l8,-8z"/>
|
||||
</vector>
|
10
app/src/main/res/drawable/ic_arrow_forward_send.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:fillColor="@color/sendAmount"
|
||||
android:pathData="M12,4l-1.41,1.41L16.17,11H4v2h12.17l-5.58,5.59L12,20l8,-8z"/>
|
||||
</vector>
|
Before Width: | Height: | Size: 436 B |
Before Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 73 KiB |
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 790 B |
|
@ -1,24 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<solid
|
||||
android:color="@color/whiteColor"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
<corners
|
||||
android:radius="0dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
<padding
|
||||
android:left="0dp"
|
||||
android:top="0dp"
|
||||
android:right="0dp"
|
||||
android:bottom="0dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
<size
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
</shape>
|
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.5 KiB |
|
@ -1,5 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@color/transparent" />
|
||||
<corners android:radius="20dp" />
|
||||
</shape>
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#fff"/>
|
||||
<stroke android:width="1dip" android:color="@color/gray" />
|
||||
<corners android:radius="10dip"/>
|
||||
</shape>
|
Before Width: | Height: | Size: 15 KiB |
|
@ -1,5 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_enabled="true" android:drawable="@color/redColor"/>
|
||||
<item android:state_enabled="false" android:drawable="@color/gray"/>
|
||||
</selector>
|
|
@ -1,24 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<solid
|
||||
android:color="@color/whiteColor"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
<corners
|
||||
android:radius="2dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
<padding
|
||||
android:left="0dp"
|
||||
android:top="0dp"
|
||||
android:right="0dp"
|
||||
android:bottom="0dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
<size
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
</shape>
|
Before Width: | Height: | Size: 1.9 KiB |
|
@ -1,21 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">
|
||||
|
||||
<stroke
|
||||
android:width="5dp"
|
||||
android:color="#EBDDE2" />
|
||||
|
||||
<padding
|
||||
android:bottom="2dp"
|
||||
android:left="2dp"
|
||||
android:right="2dp"
|
||||
android:top="2dp" />
|
||||
|
||||
<gradient
|
||||
android:centerColor="@color/white"
|
||||
android:endColor="@color/white"
|
||||
android:startColor="@color/white" />
|
||||
|
||||
<corners android:radius="4dp" />
|
||||
|
||||
</shape>
|
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 25 KiB |
|
@ -31,7 +31,7 @@
|
|||
android:id="@+id/user_img"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="90dp"
|
||||
android:src="@drawable/gravtr"
|
||||
android:src="@drawable/avatar_placeholder"
|
||||
android:transitionName="gravatarTransition"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/gradient_background"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="@dimen/activity_vertical_margin"
|
||||
android:paddingLeft="20dp"
|
||||
|
|
|
@ -1,277 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical" android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#fff"
|
||||
>
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<LinearLayout
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="60sp"
|
||||
android:id="@+id/header"
|
||||
android:background="#0099D5"
|
||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin">
|
||||
<Button
|
||||
android:layout_width="30sp"
|
||||
android:layout_height="30sp"
|
||||
android:background="@drawable/righticon"
|
||||
android:layout_gravity="center"
|
||||
/>
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/logoicon"
|
||||
android:layout_gravity="center"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="10sp"
|
||||
android:layout_height="wrap_content"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:text="eReceipt"
|
||||
android:gravity="center"
|
||||
android:layout_gravity="center"
|
||||
android:textColor="@color/whiteColor"
|
||||
android:textSize="20sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingBottom="@dimen/activity_vertical_margin"
|
||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/activity_vertical_margin"
|
||||
android:background="@drawable/edittext_bg"
|
||||
android:id="@+id/relativelayout"
|
||||
>
|
||||
|
||||
|
||||
<ImageButton
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:text="@string/email_pdf"
|
||||
android:id="@+id/buttonSend"
|
||||
android:src="@drawable/share_icon"
|
||||
android:layout_alignParentRight="true"
|
||||
android:background="@color/white"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
android:layout_marginTop="10sp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/imageEmail"
|
||||
android:layout_weight="3"
|
||||
android:layout_gravity="right"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_below="@+id/buttonSend"
|
||||
/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_marginTop="10sp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/layout_margin"
|
||||
android:orientation="horizontal"
|
||||
android:weightSum="3"
|
||||
android:layout_below="@+id/imageEmail"
|
||||
android:id="@+id/ll_First"
|
||||
android:background="@drawable/edittext_bg"
|
||||
>
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/id_s"
|
||||
android:textColor="@color/black"
|
||||
android:gravity="left|center"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="2"
|
||||
android:gravity="left|center"
|
||||
android:textColor="@color/black"
|
||||
android:text=""
|
||||
android:id="@+id/TvId"
|
||||
/>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/layout_margin"
|
||||
android:orientation="horizontal"
|
||||
android:weightSum="3"
|
||||
android:layout_below="@+id/ll_First"
|
||||
android:id="@+id/ll_Sec"
|
||||
android:background="@drawable/edittext_bg"
|
||||
|
||||
>
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/time_stamp"
|
||||
android:gravity="left|center"
|
||||
android:textColor="@color/black"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="2"
|
||||
android:gravity="left|center"
|
||||
android:textColor="@color/black"
|
||||
android:text=""
|
||||
android:id="@+id/TvBlockNum"
|
||||
|
||||
/>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/layout_margin"
|
||||
android:orientation="horizontal"
|
||||
android:weightSum="3"
|
||||
android:layout_below="@+id/ll_Sec"
|
||||
android:id="@+id/ll_Third"
|
||||
android:background="@drawable/edittext_bg"
|
||||
|
||||
>
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/trx_in_block"
|
||||
android:gravity="left|center"
|
||||
android:textColor="@color/black"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="2"
|
||||
android:gravity="left|center"
|
||||
android:textColor="@color/black"
|
||||
android:text=""
|
||||
android:id="@+id/TvTrxInBlock"
|
||||
|
||||
/>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/ll_Third"
|
||||
android:id="@+id/ll_Third_op"
|
||||
android:orientation="vertical"
|
||||
android:background="@drawable/edittext_bg"
|
||||
>
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/layout_margin"
|
||||
android:gravity="left|center"
|
||||
android:textColor="@color/black"
|
||||
android:text="@string/operations"
|
||||
android:id="@+id/tv_op_heading"
|
||||
/>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/ll_operations"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/layout_margin"
|
||||
android:orientation="horizontal"
|
||||
android:weightSum="3"
|
||||
android:layout_below="@+id/ll_Third_op"
|
||||
android:id="@+id/ll_Fourth"
|
||||
android:background="@drawable/edittext_bg"
|
||||
|
||||
>
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/op_in_trx"
|
||||
android:gravity="left|center"
|
||||
android:textColor="@color/black"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="2"
|
||||
android:gravity="left|center"
|
||||
android:textColor="@color/black"
|
||||
android:text=""
|
||||
android:id="@+id/TvOpInTrx"
|
||||
/>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/layout_margin"
|
||||
android:orientation="horizontal"
|
||||
android:weightSum="3"
|
||||
android:layout_below="@+id/ll_Fourth"
|
||||
android:id="@+id/ll_Fifth"
|
||||
android:background="@drawable/edittext_bg"
|
||||
|
||||
>
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/virtual_op"
|
||||
android:gravity="left|center"
|
||||
android:textColor="@color/black"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="2"
|
||||
android:gravity="left|center"
|
||||
android:id="@+id/TvVirtualOp"
|
||||
android:textColor="@color/black"
|
||||
android:text=""
|
||||
/>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/layout_margin"
|
||||
android:orientation="horizontal"
|
||||
android:weightSum="3"
|
||||
android:layout_below="@+id/ll_Fifth"
|
||||
android:id="@+id/ll_Sixth"
|
||||
android:background="@drawable/edittext_bg"
|
||||
>
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/operation_results"
|
||||
android:gravity="left|center"
|
||||
android:textColor="@color/black"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="2"
|
||||
android:gravity="left|center"
|
||||
android:textColor="@color/black"
|
||||
android:text=""
|
||||
android:id="@+id/TvOperationsResults"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
|
@ -65,7 +65,7 @@
|
|||
android:layout_width="?attr/actionBarSize"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:layout_marginEnd="32dp"
|
||||
android:src="@drawable/gravtr"
|
||||
android:src="@drawable/avatar_placeholder"
|
||||
android:transitionName="gravatarTransition"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:background="@color/white"
|
||||
android:src="@drawable/share"
|
||||
android:src="@drawable/share_icon"
|
||||
android:text="@string/email_pdf" />
|
||||
|
||||
<ProgressBar
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
android:id="@+id/user_img"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="90dp"
|
||||
android:src="@drawable/ken_code_gravatar"
|
||||
android:src="@drawable/avatar_placeholder"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
android:layout_height="60dp"
|
||||
android:layout_marginStart="32dp"
|
||||
android:layout_marginTop="90dp"
|
||||
android:src="@drawable/gravtr"
|
||||
android:src="@drawable/avatar_placeholder"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
android:layout_height="60dp"
|
||||
android:layout_marginStart="32dp"
|
||||
android:layout_marginTop="90dp"
|
||||
android:src="@drawable/gravtr"
|
||||
android:src="@drawable/avatar_placeholder"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
|
|
|
@ -1,47 +1,46 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:id="@+id/rlTransactionToolsHeader"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
<RelativeLayout
|
||||
android:id="@+id/rlTransactionToolsHeader"
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etTransactionSearch"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etTransactionSearch"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_toLeftOf="@+id/btnTransactionsFilterDisplay" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnTransactionsFilterDisplay"
|
||||
android:layout_width="40dip"
|
||||
android:layout_height="40dip"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_toStartOf="@+id/spTransactionsOrder"
|
||||
android:visibility="gone" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/spTransactionsOrder"
|
||||
android:layout_width="40dip"
|
||||
android:layout_height="40dip"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:background="@drawable/sort_transactions_icon"
|
||||
android:text="order" />
|
||||
</RelativeLayout>
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/transactionListView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/rlTransactionToolsHeader"
|
||||
/>
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_toStartOf="@+id/btnTransactionsFilterDisplay" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnTransactionsFilterDisplay"
|
||||
android:layout_width="40dip"
|
||||
android:layout_height="40dip"
|
||||