Added a border to separate the button bar from the content area.

This commit is contained in:
akwizgran
2013-03-05 15:31:10 +00:00
parent c83b1b74e5
commit 050f2094cf
7 changed files with 28 additions and 3 deletions

View File

@@ -1,6 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="LightTheme" parent="android:Theme.Holo.Light" />
<style name="LightThemeNoActionBar"
parent="android:Theme.Holo.Light.NoActionBar" />
</resources>

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ButtonBarBorder">#CCCCCC</color>
</resources>

View File

@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="LightTheme" parent="android:Theme.Light" />
<style name="LightThemeNoActionBar" parent="android:Theme.Light" />
</resources>

View File

@@ -69,6 +69,12 @@ implements OnClickListener, DatabaseListener, ConnectionListener {
list.setOnItemClickListener(adapter);
layout.addView(list);
View line = new View(this);
line.setLayoutParams(new LayoutParams(MATCH_PARENT, 5));
int colour = getResources().getColor(R.color.ButtonBarBorder);
line.setBackgroundColor(colour);
layout.addView(line);
ImageButton addContactButton = new ImageButton(this);
addContactButton.setPadding(10, 10, 10, 10);
addContactButton.setBackgroundResource(0);

View File

@@ -81,6 +81,12 @@ implements DatabaseListener, OnClickListener, OnItemClickListener {
list.setOnItemClickListener(this);
layout.addView(list);
View line = new View(this);
line.setLayoutParams(new LayoutParams(MATCH_PARENT, 5));
int colour = getResources().getColor(R.color.ButtonBarBorder);
line.setBackgroundColor(colour);
layout.addView(line);
ImageButton composeButton = new ImageButton(this);
composeButton.setPadding(10, 10, 10, 10);
composeButton.setBackgroundResource(0);

View File

@@ -75,6 +75,12 @@ implements OnClickListener, DatabaseListener {
list.setOnItemClickListener(adapter);
layout.addView(list);
View line = new View(this);
line.setLayoutParams(new LayoutParams(MATCH_PARENT, 5));
int colour = getResources().getColor(R.color.ButtonBarBorder);
line.setBackgroundColor(colour);
layout.addView(line);
ImageButton composeButton = new ImageButton(this);
composeButton.setPadding(10, 10, 10, 10);
composeButton.setBackgroundResource(0);

View File

@@ -156,6 +156,12 @@ implements OnClickListener {
scrollView.addView(message);
layout.addView(scrollView);
View line = new View(this);
line.setLayoutParams(new LayoutParams(MATCH_PARENT, 5));
int colour = getResources().getColor(R.color.ButtonBarBorder);
line.setBackgroundColor(colour);
layout.addView(line);
LinearLayout footer = new LinearLayout(this);
footer.setLayoutParams(new LayoutParams(MATCH_PARENT, WRAP_CONTENT));
footer.setOrientation(HORIZONTAL);