mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Layout tweaks: outline StrengthMeter, indent EditTexts.
This commit is contained in:
@@ -110,14 +110,15 @@ implements OnItemSelectedListener, OnClickListener {
|
||||
LinearLayout layout = new LinearLayout(this);
|
||||
layout.setLayoutParams(MATCH_WRAP);
|
||||
layout.setOrientation(VERTICAL);
|
||||
int pad = LayoutUtils.getPadding(this);
|
||||
layout.setPadding(pad, pad, pad, pad);
|
||||
|
||||
RelativeLayout header = new RelativeLayout(this);
|
||||
int pad = LayoutUtils.getPadding(this);
|
||||
|
||||
TextView from = new TextView(this);
|
||||
from.setId(1);
|
||||
from.setTextSize(18);
|
||||
from.setPadding(pad, pad, 0, pad);
|
||||
from.setPadding(0, 0, 0, pad);
|
||||
from.setText(R.string.from);
|
||||
RelativeLayout.LayoutParams left = CommonLayoutParams.relative();
|
||||
left.addRule(ALIGN_PARENT_LEFT);
|
||||
@@ -139,6 +140,8 @@ implements OnItemSelectedListener, OnClickListener {
|
||||
sendButton.setId(3);
|
||||
sendButton.setBackgroundResource(0);
|
||||
sendButton.setImageResource(R.drawable.social_send_now);
|
||||
sendButton.setScaleX(1.5f);
|
||||
sendButton.setScaleY(1.5f);
|
||||
sendButton.setEnabled(false); // Enabled after loading the group
|
||||
sendButton.setOnClickListener(this);
|
||||
RelativeLayout.LayoutParams right = CommonLayoutParams.relative();
|
||||
@@ -151,7 +154,7 @@ implements OnItemSelectedListener, OnClickListener {
|
||||
to.setTextSize(18);
|
||||
to.setSingleLine();
|
||||
to.setEllipsize(END);
|
||||
to.setPadding(pad, 0, pad, pad);
|
||||
to.setPadding(0, 0, pad, pad);
|
||||
to.setText(R.string.to);
|
||||
layout.addView(to);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user