Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
5b942cb6
Commit
5b942cb6
authored
Sep 27, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
67331f4e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
12 deletions
+17
-12
src/main/java/com/common/activity/ReviewHookActivity.java
+13
-8
src/main/res/layout/activity_review_hook.xml
+4
-4
No files found.
src/main/java/com/common/activity/ReviewHookActivity.java
View file @
5b942cb6
...
@@ -72,7 +72,15 @@ public class ReviewHookActivity extends BaseActivity {
...
@@ -72,7 +72,15 @@ public class ReviewHookActivity extends BaseActivity {
@Override
@Override
public
void
initView
()
{
public
void
initView
()
{
mUserNameTv
=
findViewById
(
R
.
id
.
activity_review_userName_tv
);
mDrawer
=
findViewById
(
R
.
id
.
activity_review_drawer_layout
);
mTopBar
=
findViewById
(
R
.
id
.
activity_review_topbar
);
mMenuLayout
=
findViewById
(
R
.
id
.
activity_review_menu_layout
);
mBackBtn
=
findViewById
(
R
.
id
.
activity_review_menu_btn
);
fragmentLayout
=
findViewById
(
R
.
id
.
activity_review_fragmentLayout
);
if
(
BuildConfig
.
HIBERNATION
)
{
if
(
BuildConfig
.
HIBERNATION
)
{
mTopBar
.
setAlpha
(
0
);
findViewById
(
R
.
id
.
activity_review_conversion_btn
).
setOnClickListener
(
v
->
{
findViewById
(
R
.
id
.
activity_review_conversion_btn
).
setOnClickListener
(
v
->
{
String
[]
unit
=
new
String
[]{
"USA"
,
"EUR"
,
"CNY"
,
"JPY"
,
"GBP"
};
String
[]
unit
=
new
String
[]{
"USA"
,
"EUR"
,
"CNY"
,
"JPY"
,
"GBP"
};
double
[]
exchange
=
new
double
[]{
0.00007050d
,
0.00006456d
,
0.0005031d
,
0.007592d
,
0.00005716d
};
double
[]
exchange
=
new
double
[]{
0.00007050d
,
0.00006456d
,
0.0005031d
,
0.007592d
,
0.00005716d
};
...
@@ -95,13 +103,6 @@ public class ReviewHookActivity extends BaseActivity {
...
@@ -95,13 +103,6 @@ public class ReviewHookActivity extends BaseActivity {
}
else
{
}
else
{
findViewById
(
R
.
id
.
activity_review_exchange
).
setVisibility
(
View
.
GONE
);
findViewById
(
R
.
id
.
activity_review_exchange
).
setVisibility
(
View
.
GONE
);
}
}
mUserNameTv
=
findViewById
(
R
.
id
.
activity_review_userName_tv
);
mDrawer
=
findViewById
(
R
.
id
.
activity_review_drawer_layout
);
mTopBar
=
findViewById
(
R
.
id
.
activity_review_topbar
);
mMenuLayout
=
findViewById
(
R
.
id
.
activity_review_menu_layout
);
mBackBtn
=
findViewById
(
R
.
id
.
activity_review_menu_btn
);
fragmentLayout
=
findViewById
(
R
.
id
.
activity_review_fragmentLayout
);
UIHelper
.
setMargins
(
mMenuLayout
,
-
1
,
QMUIStatusBarHelper
.
getStatusbarHeight
(
this
),
-
1
,
-
1
);
UIHelper
.
setMargins
(
mMenuLayout
,
-
1
,
QMUIStatusBarHelper
.
getStatusbarHeight
(
this
),
-
1
,
-
1
);
QMUIStatusBarHelper
.
translucent
(
this
);
QMUIStatusBarHelper
.
translucent
(
this
);
...
@@ -209,7 +210,11 @@ public class ReviewHookActivity extends BaseActivity {
...
@@ -209,7 +210,11 @@ public class ReviewHookActivity extends BaseActivity {
}
else
{
}
else
{
fragmentLayout
.
setClickable
(
true
);
fragmentLayout
.
setClickable
(
true
);
}
}
mTopBar
.
setAlpha
(
1
);
if
(
BuildConfig
.
HIBERNATION
)
{
mTopBar
.
setAlpha
(
1
);
}
else
{
mTopBar
.
setAlpha
(
slideOffset
);
}
}
}
@Override
@Override
...
...
src/main/res/layout/activity_review_hook.xml
View file @
5b942cb6
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
<LinearLayout
<LinearLayout
android:id=
"@+id/activity_review_exchange"
android:id=
"@+id/activity_review_exchange"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:visibility=
"gone"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
...
@@ -85,14 +86,12 @@
...
@@ -85,14 +86,12 @@
android:layout_height=
"190dp"
android:layout_height=
"190dp"
android:background=
"@drawable/banner02"
android:background=
"@drawable/banner02"
android:clickable=
"false"
android:clickable=
"false"
android:longClickable=
"false"
android:longClickable=
"false"
/>
android:visibility=
"gone"
/>
<android.support.v7.widget.RecyclerView
<android.support.v7.widget.RecyclerView
android:id=
"@+id/activity_review_productList_rv"
android:id=
"@+id/activity_review_productList_rv"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
/>
android:visibility=
"gone"
/>
</LinearLayout>
</LinearLayout>
...
@@ -112,6 +111,7 @@
...
@@ -112,6 +111,7 @@
android:id=
"@+id/activity_review_topbar"
android:id=
"@+id/activity_review_topbar"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"50dp"
android:layout_height=
"50dp"
android:alpha=
"0"
android:background=
"@drawable/app_bar_bg"
/>
android:background=
"@drawable/app_bar_bg"
/>
...
...
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