Commit 5b942cb6 by sikang

bug fix

parent 67331f4e
...@@ -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);
} }
if (BuildConfig.HIBERNATION) {
mTopBar.setAlpha(1); mTopBar.setAlpha(1);
} else {
mTopBar.setAlpha(slideOffset);
}
} }
@Override @Override
......
...@@ -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" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment