Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.ccwangluo.accelerator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sheteng
com.ccwangluo.accelerator
Commits
91e5223a
Commit
91e5223a
authored
Dec 24, 2016
by
Max Lv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refine AdView
parent
93d468c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/main/res/drawable/background_header.png
src/main/res/drawable/background_header.png
+0
-0
src/main/scala/com/github/shadowsocks/ProfilesFragment.scala
src/main/scala/com/github/shadowsocks/ProfilesFragment.scala
+3
-2
No files found.
src/main/res/drawable/background_header.png
View replaced file @
93d468c5
View file @
91e5223a
18.3 KB
|
W:
|
H:
132 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/main/scala/com/github/shadowsocks/ProfilesFragment.scala
View file @
91e5223a
...
@@ -102,10 +102,11 @@ final class ProfilesFragment extends ToolbarFragment with OnMenuItemClickListene
...
@@ -102,10 +102,11 @@ final class ProfilesFragment extends ToolbarFragment with OnMenuItemClickListene
val
params
=
val
params
=
new
LinearLayout
.
LayoutParams
(
ViewGroup
.
LayoutParams
.
WRAP_CONTENT
,
ViewGroup
.
LayoutParams
.
WRAP_CONTENT
)
new
LinearLayout
.
LayoutParams
(
ViewGroup
.
LayoutParams
.
WRAP_CONTENT
,
ViewGroup
.
LayoutParams
.
WRAP_CONTENT
)
params
.
gravity
=
Gravity
.
CENTER_HORIZONTAL
params
.
gravity
=
Gravity
.
CENTER_HORIZONTAL
params
.
setMargins
(
0
,
Utils
.
dpToPx
(
getActivity
,
8
),
0
,
0
)
adView
=
new
NativeExpressAdView
(
getActivity
)
adView
=
new
NativeExpressAdView
(
getActivity
)
adView
.
setLayoutParams
(
params
)
adView
.
setLayoutParams
(
params
)
adView
.
setAdUnitId
(
"ca-app-pub-9097031975646651/
7760346322
"
)
adView
.
setAdUnitId
(
"ca-app-pub-9097031975646651/
5224027521
"
)
adView
.
setAdSize
(
AdSize
.
BANNER
)
adView
.
setAdSize
(
new
AdSize
(
320
,
132
)
)
itemView
.
findViewById
(
R
.
id
.
content
).
asInstanceOf
[
LinearLayout
].
addView
(
adView
)
itemView
.
findViewById
(
R
.
id
.
content
).
asInstanceOf
[
LinearLayout
].
addView
(
adView
)
// Demographics
// Demographics
...
...
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