mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 13:49:53 +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"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<style name="LightTheme" parent="android:Theme.Holo.Light" />
|
<style name="LightTheme" parent="android:Theme.Holo.Light" />
|
||||||
<style name="LightThemeNoActionBar"
|
|
||||||
parent="android:Theme.Holo.Light.NoActionBar" />
|
|
||||||
</resources>
|
</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"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<style name="LightTheme" parent="android:Theme.Light" />
|
<style name="LightTheme" parent="android:Theme.Light" />
|
||||||
<style name="LightThemeNoActionBar" parent="android:Theme.Light" />
|
|
||||||
</resources>
|
</resources>
|
||||||
@@ -69,6 +69,12 @@ implements OnClickListener, DatabaseListener, ConnectionListener {
|
|||||||
list.setOnItemClickListener(adapter);
|
list.setOnItemClickListener(adapter);
|
||||||
layout.addView(list);
|
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);
|
ImageButton addContactButton = new ImageButton(this);
|
||||||
addContactButton.setPadding(10, 10, 10, 10);
|
addContactButton.setPadding(10, 10, 10, 10);
|
||||||
addContactButton.setBackgroundResource(0);
|
addContactButton.setBackgroundResource(0);
|
||||||
|
|||||||
@@ -81,6 +81,12 @@ implements DatabaseListener, OnClickListener, OnItemClickListener {
|
|||||||
list.setOnItemClickListener(this);
|
list.setOnItemClickListener(this);
|
||||||
layout.addView(list);
|
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);
|
ImageButton composeButton = new ImageButton(this);
|
||||||
composeButton.setPadding(10, 10, 10, 10);
|
composeButton.setPadding(10, 10, 10, 10);
|
||||||
composeButton.setBackgroundResource(0);
|
composeButton.setBackgroundResource(0);
|
||||||
|
|||||||
@@ -75,6 +75,12 @@ implements OnClickListener, DatabaseListener {
|
|||||||
list.setOnItemClickListener(adapter);
|
list.setOnItemClickListener(adapter);
|
||||||
layout.addView(list);
|
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);
|
ImageButton composeButton = new ImageButton(this);
|
||||||
composeButton.setPadding(10, 10, 10, 10);
|
composeButton.setPadding(10, 10, 10, 10);
|
||||||
composeButton.setBackgroundResource(0);
|
composeButton.setBackgroundResource(0);
|
||||||
|
|||||||
@@ -156,6 +156,12 @@ implements OnClickListener {
|
|||||||
scrollView.addView(message);
|
scrollView.addView(message);
|
||||||
layout.addView(scrollView);
|
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);
|
LinearLayout footer = new LinearLayout(this);
|
||||||
footer.setLayoutParams(new LayoutParams(MATCH_PARENT, WRAP_CONTENT));
|
footer.setLayoutParams(new LayoutParams(MATCH_PARENT, WRAP_CONTENT));
|
||||||
footer.setOrientation(HORIZONTAL);
|
footer.setOrientation(HORIZONTAL);
|
||||||
|
|||||||
Reference in New Issue
Block a user