mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-11 18:29:05 +01:00
Added a border to separate the button bar from the content area.
This commit is contained in:
@@ -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>
|
||||
4
briar-android/res/values/color.xml
Normal file
4
briar-android/res/values/color.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="ButtonBarBorder">#CCCCCC</color>
|
||||
</resources>
|
||||
@@ -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>
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user