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
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="@dimen/thumb_row_height"
- android:paddingEnd="@dimen/activity_horizontal_margin">
+ android:onClick="navProfilesHeadClicked">
<ImageView
android:id="@+id/nav_profiles_arrow"
android:layout_height="wrap_content"
android:background="@drawable/ic_expand_more_black_24dp"
android:gravity="start|center_vertical"
- android:onClick="navProfilesHeadClicked"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/nav_profiles_label"
app:layout_constraintTop_toTopOf="parent" />
<LinearLayout
android:id="@+id/nav_profile_list_head_buttons"
android:layout_width="wrap_content"
- android:layout_height="wrap_content"
+ android:layout_height="0dp"
android:gravity="center_vertical"
android:orientation="horizontal"
+ android:paddingStart="16dp"
+ android:paddingEnd="16dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent">