Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
bookshare-android
Commits
769263d0
Commit
769263d0
authored
Mar 30, 2014
by
Edy Thenedy
Browse files
Added some lines to make it look better
parent
46205330
Changes
1
Show whitespace changes
Inline
Side-by-side
bookshare-android/src/edu/gmu/srct/bookshare/Listings.java
View file @
769263d0
...
@@ -114,7 +114,7 @@ public class Listings extends Activity implements OnClickListener,BookshareAPI {
...
@@ -114,7 +114,7 @@ public class Listings extends Activity implements OnClickListener,BookshareAPI {
{
{
display
(
""
,
""
);
display
(
""
,
""
);
display
(
"Image"
+
"\ngoes"
+
"\nhere"
,
"Title: Java\n"
+
"Price: "
+
listing
[
i
].
getPrice
()
+
"\n"
+
"ISBN: 124546464445"
);
display
(
"Image"
+
"\ngoes"
+
"\nhere"
,
"Title: Java\n"
+
"Price: "
+
listing
[
i
].
getPrice
()
+
"\n"
+
"ISBN: 124546464445"
);
displaySellerButton
(
""
,
"
Contact
: "
+
seller
[
i
].
getFullName
()
+
"\n"
);
// To display the sellerButton on the second table
displaySellerButton
(
""
,
"
Seller
: "
+
seller
[
i
].
getFullName
()
+
"\n"
);
// To display the sellerButton on the second table
display
(
""
,
""
);
display
(
""
,
""
);
// Ruler - To print the ruler after each listing
// Ruler - To print the ruler after each listing
...
@@ -128,7 +128,7 @@ public class Listings extends Activity implements OnClickListener,BookshareAPI {
...
@@ -128,7 +128,7 @@ public class Listings extends Activity implements OnClickListener,BookshareAPI {
}
}
while
(
i
<
price
.
length
);
while
(
i
<
price
.
length
);
display
(
"Seller id: "
,
"Seller
N
ame : "
);
display
(
"Seller id: "
,
"Seller
n
ame : "
);
display
(
"Author id: "
,
"Author Name:"
+
author
+
"\nBook Info: "
);
display
(
"Author id: "
,
"Author Name:"
+
author
+
"\nBook Info: "
);
...
@@ -147,7 +147,7 @@ public class Listings extends Activity implements OnClickListener,BookshareAPI {
...
@@ -147,7 +147,7 @@ public class Listings extends Activity implements OnClickListener,BookshareAPI {
lblid
.
setTextSize
((
float
)
12
);
lblid
.
setTextSize
((
float
)
12
);
lblid
.
setTypeface
(
null
,
1
);
lblid
.
setTypeface
(
null
,
1
);
lblid
.
setBackgroundColor
(
Color
.
TRANSPARENT
);
lblid
.
setBackgroundColor
(
Color
.
TRANSPARENT
);
lblid
.
setPadding
(
30
,
0
,
0
,
0
);
lblid
.
setPadding
(
30
,
0
,
0
,
0
);
// (30,0,0,0)
tr2
.
setPadding
(
0
,
1
,
0
,
0
);
tr2
.
setPadding
(
0
,
1
,
0
,
0
);
...
@@ -188,7 +188,8 @@ public class Listings extends Activity implements OnClickListener,BookshareAPI {
...
@@ -188,7 +188,8 @@ public class Listings extends Activity implements OnClickListener,BookshareAPI {
lblid
.
setTextSize
((
float
)
12
);
lblid
.
setTextSize
((
float
)
12
);
lblid
.
setTypeface
(
null
,
1
);
lblid
.
setTypeface
(
null
,
1
);
lblid
.
setBackgroundColor
(
Color
.
TRANSPARENT
);
lblid
.
setBackgroundColor
(
Color
.
TRANSPARENT
);
lblid
.
setPadding
(
30
,
0
,
0
,
0
);
lblid
.
setPadding
(
120
,
0
,
0
,
0
);
// (30, 0, 0, 0)
// find the length of a screen
tr2
.
setPadding
(
0
,
1
,
0
,
0
);
tr2
.
setPadding
(
0
,
1
,
0
,
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment