mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 17:57:16 +00:00
Small layout improvement
This commit is contained in:
parent
012d0be1c7
commit
15142f5c9c
2 changed files with 5 additions and 1 deletions
|
@ -1955,6 +1955,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
boolean has = false;
|
||||
ConversationActions cactions = args.getParcelable("actions");
|
||||
if (cactions != null) {
|
||||
LinearLayout.LayoutParams lparam = new LinearLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT);
|
||||
|
||||
List<ConversationAction> actions = cactions.getConversationActions();
|
||||
for (ConversationAction action : actions) {
|
||||
final RemoteAction raction = action.getAction();
|
||||
|
@ -1964,7 +1966,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
|
||||
Button button = new Button(context, null, android.R.attr.buttonStyleSmall);
|
||||
button.setId(View.generateViewId());
|
||||
button.setLayoutParams(new LinearLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT));
|
||||
button.setLayoutParams(lparam);
|
||||
button.setText(title);
|
||||
button.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
|
|
|
@ -33,9 +33,11 @@
|
|||
android:id="@+id/flow"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
app:flow_horizontalBias="0"
|
||||
app:flow_horizontalGap="6dp"
|
||||
app:flow_horizontalStyle="packed"
|
||||
app:flow_verticalGap="6dp"
|
||||
app:flow_wrapMode="chain"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
Loading…
Reference in a new issue