Commit 0cb91aed authored by wanglei's avatar wanglei

..

parent bf7655b6
......@@ -185,7 +185,7 @@ class CreateFragment : BaseFragment<FragmentCreateBinding>(FragmentCreateBinding
super.onResumeOneShoot()
adapter?.changeGuide()
binding.root.post {
binding.root.viewTreeObserver.addOnGlobalLayoutListener {
showGuideScan()
}
}
......
......@@ -3,7 +3,6 @@ package com.base.scanqrclear.ui.widget.guideview;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.Toast;
import com.base.scanqrclear.R;
......@@ -17,7 +16,7 @@ public class LottieComponent implements Component {
public View getView(LayoutInflater inflater) {
LinearLayout ll = (LinearLayout) inflater.inflate(R.layout.layout_lottie_guide, null);
ll.setOnClickListener(view -> Toast.makeText(view.getContext(), "引导层被点击了", Toast.LENGTH_SHORT).show());
// ll.setOnClickListener(view -> Toast.makeText(view.getContext(), "引导层被点击了", Toast.LENGTH_SHORT).show());
return ll;
}
......
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
......
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