Add new Tab called “Merchants” and inside it should be “Comming soon” text
This commit is contained in:
parent
752a58b3bf
commit
b6a9e6b59c
4 changed files with 86 additions and 2 deletions
|
@ -44,6 +44,7 @@ import butterknife.OnClick;
|
|||
import cy.agorise.crystalwallet.R;
|
||||
import cy.agorise.crystalwallet.fragments.BalanceFragment;
|
||||
import cy.agorise.crystalwallet.fragments.ContactsFragment;
|
||||
import cy.agorise.crystalwallet.fragments.MerchantsFragment;
|
||||
import cy.agorise.crystalwallet.fragments.ReceiveTransactionFragment;
|
||||
import cy.agorise.crystalwallet.fragments.SendTransactionFragment;
|
||||
import cy.agorise.crystalwallet.fragments.TransactionsFragment;
|
||||
|
@ -356,7 +357,7 @@ public class BoardActivity extends CustomActivity {
|
|||
}
|
||||
|
||||
// Titles of the tabs
|
||||
int[] tabTitles = {R.string.balances, R.string.transactions, R.string.contacts};
|
||||
int[] tabTitles = {R.string.balances, R.string.transactions, R.string.contacts,R.string.Merchants};
|
||||
|
||||
@Override
|
||||
public Fragment getItem(int position) {
|
||||
|
@ -367,6 +368,8 @@ public class BoardActivity extends CustomActivity {
|
|||
return new TransactionsFragment();
|
||||
case 2:
|
||||
return new ContactsFragment();
|
||||
case 3:
|
||||
return new MerchantsFragment();
|
||||
}
|
||||
|
||||
|
||||
|
@ -380,7 +383,7 @@ public class BoardActivity extends CustomActivity {
|
|||
|
||||
@Override
|
||||
public int getCount() {
|
||||
return 3;
|
||||
return 4;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
package cy.agorise.crystalwallet.dialogs.material
|
||||
|
||||
import android.app.Activity
|
||||
import cy.agorise.crystalwallet.R
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
* Class to just call simple loading dialog
|
||||
*
|
||||
* Sumple Use:
|
||||
*
|
||||
* final CrystalLoading crystalLoading = new CrystalLoading(activity);
|
||||
* crystalLoading.show();
|
||||
*
|
||||
* */
|
||||
open class CrystalLoading : CrystalDialog {
|
||||
|
||||
constructor(activity:Activity) : super(activity) {
|
||||
|
||||
/*
|
||||
* Set loading properties only
|
||||
* */
|
||||
this.progress()
|
||||
this.setText(activity.getString(R.string.loading))
|
||||
}
|
||||
}
|
|
@ -0,0 +1,40 @@
|
|||
package cy.agorise.crystalwallet.fragments;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.support.v4.app.Fragment;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import butterknife.ButterKnife;
|
||||
import cy.agorise.crystalwallet.R;
|
||||
|
||||
public class MerchantsFragment extends Fragment {
|
||||
|
||||
public MerchantsFragment() {
|
||||
// Required empty public constructor
|
||||
}
|
||||
|
||||
public static MerchantsFragment newInstance() {
|
||||
MerchantsFragment fragment = new MerchantsFragment();
|
||||
Bundle args = new Bundle();
|
||||
fragment.setArguments(args);
|
||||
return fragment;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
}
|
||||
|
||||
@Override
|
||||
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,
|
||||
Bundle savedInstanceState) {
|
||||
// Inflate the layout for this fragment
|
||||
View view = inflater.inflate(R.layout.fragment_merchants, container, false);
|
||||
ButterKnife.bind(this, view);
|
||||
|
||||
return view;
|
||||
}
|
||||
}
|
14
app/src/main/res/layout/fragment_merchants.xml
Normal file
14
app/src/main/res/layout/fragment_merchants.xml
Normal file
|
@ -0,0 +1,14 @@
|
|||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context="cy.agorise.crystalwallet.fragments.ContactsFragment">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Comming soon"
|
||||
android:layout_centerInParent="true"
|
||||
android:textSize="20dp" />
|
||||
|
||||
</RelativeLayout>
|
Loading…
Reference in a new issue