Commit 5b942cb6 by sikang

bug fix

parent 67331f4e
......@@ -72,7 +72,15 @@ public class ReviewHookActivity extends BaseActivity {
@Override
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) {
mTopBar.setAlpha(0);
findViewById(R.id.activity_review_conversion_btn).setOnClickListener(v -> {
String[] unit = new String[]{"USA", "EUR", "CNY", "JPY", "GBP"};
double[] exchange = new double[]{0.00007050d, 0.00006456d, 0.0005031d, 0.007592d, 0.00005716d};
......@@ -95,13 +103,6 @@ public class ReviewHookActivity extends BaseActivity {
} else {
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);
QMUIStatusBarHelper.translucent(this);
......@@ -209,7 +210,11 @@ public class ReviewHookActivity extends BaseActivity {
} else {
fragmentLayout.setClickable(true);
}
mTopBar.setAlpha(1);
if (BuildConfig.HIBERNATION) {
mTopBar.setAlpha(1);
} else {
mTopBar.setAlpha(slideOffset);
}
}
@Override
......
......@@ -23,6 +23,7 @@
<LinearLayout
android:id="@+id/activity_review_exchange"
android:layout_width="match_parent"
android:visibility="gone"
android:layout_height="match_parent"
android:background="@color/white"
android:gravity="center_vertical"
......@@ -85,14 +86,12 @@
android:layout_height="190dp"
android:background="@drawable/banner02"
android:clickable="false"
android:longClickable="false"
android:visibility="gone" />
android:longClickable="false" />
<android.support.v7.widget.RecyclerView
android:id="@+id/activity_review_productList_rv"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" />
android:layout_height="match_parent" />
</LinearLayout>
......@@ -112,6 +111,7 @@
android:id="@+id/activity_review_topbar"
android:layout_width="match_parent"
android:layout_height="50dp"
android:alpha="0"
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