Layout fix

This commit is contained in:
M66B 2019-10-08 18:05:23 +02:00
parent 87eccf4d1b
commit f852088d01
2 changed files with 10 additions and 1 deletions

View File

@ -317,6 +317,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
private TextView tvNoInternetAttachments;
private BottomNavigationView bnvActions;
private Group grpActions;
private ImageButton ibFull;
private ImageButton ibImages;
@ -475,6 +476,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
lparam.height = dp36;
bnvActions.setLayoutParams(lparam);
}
grpActions = vsBody.findViewById(R.id.grpActions);
ibFull = vsBody.findViewById(R.id.ibFull);
ibImages = vsBody.findViewById(R.id.ibImages);
@ -961,6 +963,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
tvNoInternetAttachments.setVisibility(View.GONE);
bnvActions.setVisibility(View.GONE);
grpActions.setVisibility(View.GONE);
ibFull.setVisibility(View.GONE);
ibImages.setVisibility(View.GONE);
@ -1039,7 +1042,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
tvNoInternetHeaders.setVisibility(View.GONE);
}
bnvActions.setVisibility(View.VISIBLE);
grpActions.setVisibility(View.VISIBLE);
for (int i = 0; i < bnvActions.getMenu().size(); i++)
bnvActions.getMenu().getItem(i).setVisible(false);

View File

@ -100,4 +100,10 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/vSeparatorBottom"
app:srcCompat="@drawable/baseline_fullscreen_24" />
<androidx.constraintlayout.widget.Group
android:id="@+id/grpActions"
android:layout_width="0dp"
android:layout_height="0dp"
app:constraint_referenced_ids="vSeparatorTop,bnvActions,vSeparatorBottom" />
</androidx.constraintlayout.widget.ConstraintLayout>