Small layout improvement

pull/177/head
M66B 5 years ago
parent 012d0be1c7
commit 15142f5c9c

@ -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…
Cancel
Save