Layout tweaks: outline StrengthMeter, indent EditTexts.

This commit is contained in:
akwizgran
2014-02-11 11:40:08 +00:00
parent 44c39e6e4a
commit b10827d84b
8 changed files with 41 additions and 23 deletions

View File

@@ -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);