mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-05-21 05:20:01 +03:00
Add margin to quoted messages
This commit is contained in:
parent
8d3621dbe7
commit
0eb3552c3c
1 changed files with 7 additions and 0 deletions
|
@ -494,6 +494,9 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
|
||||||
LinearLayoutCompat.MarginLayoutParams psc = (LinearLayoutCompat.MarginLayoutParams) holder.binding.statusContent.getLayoutParams();
|
LinearLayoutCompat.MarginLayoutParams psc = (LinearLayoutCompat.MarginLayoutParams) holder.binding.statusContent.getLayoutParams();
|
||||||
psc.setMarginStart((int) Helper.convertDpToPixel(6, context));
|
psc.setMarginStart((int) Helper.convertDpToPixel(6, context));
|
||||||
holder.binding.statusContent.setLayoutParams(psc);
|
holder.binding.statusContent.setLayoutParams(psc);
|
||||||
|
LinearLayoutCompat.MarginLayoutParams psq = (LinearLayoutCompat.MarginLayoutParams) holder.binding.quotedMessage.cardviewContainer.getLayoutParams();
|
||||||
|
psq.setMarginStart((int) Helper.convertDpToPixel(6, context));
|
||||||
|
holder.binding.quotedMessage.cardviewContainer.setLayoutParams(psq);
|
||||||
LinearLayoutCompat.MarginLayoutParams pct = (LinearLayoutCompat.MarginLayoutParams) holder.binding.containerTrans.getLayoutParams();
|
LinearLayoutCompat.MarginLayoutParams pct = (LinearLayoutCompat.MarginLayoutParams) holder.binding.containerTrans.getLayoutParams();
|
||||||
pct.setMarginStart((int) Helper.convertDpToPixel(6, context));
|
pct.setMarginStart((int) Helper.convertDpToPixel(6, context));
|
||||||
holder.binding.containerTrans.setLayoutParams(psc);
|
holder.binding.containerTrans.setLayoutParams(psc);
|
||||||
|
@ -521,6 +524,10 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
|
||||||
LinearLayoutCompat.MarginLayoutParams pab = (LinearLayoutCompat.MarginLayoutParams) holder.binding.actionButtons.getLayoutParams();
|
LinearLayoutCompat.MarginLayoutParams pab = (LinearLayoutCompat.MarginLayoutParams) holder.binding.actionButtons.getLayoutParams();
|
||||||
pab.setMarginStart((int) Helper.convertDpToPixel(6, context));
|
pab.setMarginStart((int) Helper.convertDpToPixel(6, context));
|
||||||
holder.binding.actionButtons.setLayoutParams(pab);
|
holder.binding.actionButtons.setLayoutParams(pab);
|
||||||
|
} else {
|
||||||
|
LinearLayoutCompat.MarginLayoutParams psq = (LinearLayoutCompat.MarginLayoutParams) holder.binding.quotedMessage.cardviewContainer.getLayoutParams();
|
||||||
|
psq.setMarginStart((int) Helper.convertDpToPixel(48, context));
|
||||||
|
holder.binding.quotedMessage.cardviewContainer.setLayoutParams(psq);
|
||||||
}
|
}
|
||||||
|
|
||||||
String loadMediaType = sharedpreferences.getString(context.getString(R.string.SET_LOAD_MEDIA_TYPE), "ALWAYS");
|
String loadMediaType = sharedpreferences.getString(context.getString(R.string.SET_LOAD_MEDIA_TYPE), "ALWAYS");
|
||||||
|
|
Loading…
Reference in a new issue