DrawerLayout drawer;
private LinearLayout profileListContainer;
private View profileListHeadArrow, profileListHeadMore, profileListHeadCancel;
+ private LinearLayout profileListHeadMoreAndCancel;
private FragmentManager fragmentManager;
private TextView tvLastUpdate;
private RetrieveTransactionsTask retrieveTransactionsTask;
profileListHeadArrow = findViewById(R.id.nav_profiles_arrow);
profileListHeadMore = findViewById(R.id.nav_profiles_start_edit);
profileListHeadCancel = findViewById(R.id.nav_profiles_cancel_edit);
+ profileListHeadMoreAndCancel = findViewById(R.id.nav_profile_list_head_buttons);
drawer = findViewById(R.id.drawer_layout);
tvLastUpdate = findViewById(R.id.transactions_last_update);
bTransactionListCancelDownload = findViewById(R.id.transaction_list_cancel_download);
llm.setOrientation(RecyclerView.VERTICAL);
root.setLayoutManager(llm);
- profileListHeadMore.setOnClickListener((v) -> mProfileListAdapter.startEditingProfiles());
- profileListHeadCancel.setOnClickListener((v) -> mProfileListAdapter.stopEditingProfiles());
+ profileListHeadMore.setOnClickListener((v) -> mProfileListAdapter.flipEditingProfiles());
+ profileListHeadCancel.setOnClickListener((v) -> mProfileListAdapter.flipEditingProfiles());
+ profileListHeadMoreAndCancel
+ .setOnClickListener((v) -> mProfileListAdapter.flipEditingProfiles());
drawer.addDrawerListener(new DrawerLayout.SimpleDrawerListener() {
@Override
profileListHeadArrow.startAnimation(AnimationUtils.loadAnimation(this, R.anim.rotate_180));
profileListHeadMore.setVisibility(View.VISIBLE);
profileListHeadMore.startAnimation(AnimationUtils.loadAnimation(this, R.anim.fade_in));
+ findViewById(R.id.nav_profile_list).setMinimumHeight(
+ (int) (getResources().getDimension(R.dimen.thumb_row_height) *
+ Data.profiles.size()));
}
private void collapseProfileList() {
profileListExpanded = false;