mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-22 08:52:18 -05:00
Some text adjustments
This commit is contained in:
parent
1bb2de3dcb
commit
e90c438158
@ -184,14 +184,18 @@ public class DeckAdapter extends BaseAdapter
|
||||
public View renderChannel(Channel channel, ViewGroup parent)
|
||||
{
|
||||
TextView canvas = new TextView(parent.getContext());
|
||||
canvas.setText(new SpannableString(channel.getName()));
|
||||
canvas.setTextSize(12);
|
||||
canvas.setTextColor(0xffeeeeee);
|
||||
canvas.setPadding(10, 10, 10, 10);
|
||||
canvas.setBackgroundColor(0xff222222);
|
||||
|
||||
SpannableString welcome = new SpannableString("Joined " + channel.getName());
|
||||
canvas.setText(welcome);
|
||||
|
||||
for (Message message : channel.getHistory()) {
|
||||
canvas.append(message.render());
|
||||
}
|
||||
|
||||
canvas.setTextColor(0xff000000);
|
||||
|
||||
// XXX: Refactor this crap :)
|
||||
|
||||
float fw = (float) width;
|
||||
@ -203,8 +207,6 @@ public class DeckAdapter extends BaseAdapter
|
||||
int w = (int) vwf;
|
||||
int h = (int) vhf;
|
||||
|
||||
canvas.setPadding(10, 10, 10, 10);
|
||||
canvas.setBackgroundColor(0xff888888);
|
||||
canvas.setLayoutParams(new Gallery.LayoutParams(w, h));
|
||||
|
||||
return canvas;
|
||||
|
Loading…
Reference in New Issue
Block a user