stickscrollview's People
Forkers
qimingnan glengithub byc4426 ldbsoft2022 a237112263 jiyiqini longzekai cplasf1925 jingyangwang fsh596847 hsf25737 1004 jinsiryan 15321657258 gandroidproject fulixin tom916 hujun519191086 git-levo sunnyboolean devzwy doujinhai123stickscrollview's Issues
红米note4 android4.4版本ChildRecyclerView无法滑动
setContentView方法bug
你好,mStickScrollView.setContentView的方法我设置的没有问题,但是我是把tablayout换成了linelayout,然后linelayout往上滑动的时候,不能完全展示出来,会继续往上滑动接近一半的长度
相比Android现成的系统控件实现,此自定义的优势有哪些?
如题,希望解答,谢谢
子ScrollView 中的控件设置点击事件后,子ScrollView 不能捕获滑动事件?
红米2,Android4.4
下面fragment当中的列表不能滚动。滚动时候tablayout上面的布局滚动的高度也不对
里面为scrollview时布局怎么写,按你文档里面的完全没用啊
华为有虚拟按键的时候判断距离不对
不行, ll_stick_list LinearLayout 并没有在头部
`
<View
android:layout_width="match_parent"
android:layout_height="@dimen/statusBar_height"
android:background="@color/white_color" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_48"
android:background="@color/white_color"
android:paddingStart="@dimen/dp_16"
android:paddingEnd="@dimen/dp_16">
<TextView
android:id="@+id/tv_choose_area"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableEnd="@drawable/ico_down_arrow_333"
android:drawablePadding="@dimen/dp_4"
android:text="重庆"
android:textColor="@color/black_333"
android:textSize="@dimen/sp_16"
android:visibility="invisible"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tv_titlebar_search"
android:layout_width="0dp"
android:layout_height="28dp"
android:layout_marginStart="@dimen/dp_12"
android:layout_marginEnd="@dimen/dp_12"
android:background="@drawable/search_ev_bg"
android:drawableStart="@drawable/ic_search"
android:drawablePadding="@dimen/dp_10"
android:gravity="center_vertical"
android:hint="搜索商品"
android:maxLines="1"
android:paddingStart="@dimen/dp_16"
android:singleLine="true"
android:textColor="@color/black_333"
android:textSize="@dimen/sp_16"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/cl_to_msg"
app:layout_constraintStart_toEndOf="@+id/tv_choose_area"
app:layout_constraintTop_toTopOf="parent" />
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/cl_to_msg"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/iv_to_msg"
android:layout_width="32dp"
android:layout_height="32dp"
android:padding="@dimen/dp_4"
android:src="@drawable/ico_home_msg"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/iv_is_has_unred"
android:layout_width="4dp"
android:layout_height="4dp"
android:layout_marginTop="@dimen/dp_8"
android:layout_marginEnd="@dimen/dp_6"
android:background="@color/red_dark"
app:layout_constraintEnd_toEndOf="@+id/iv_to_msg"
app:layout_constraintTop_toTopOf="@+id/iv_to_msg" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
<com.gds.ypw.support.view.CustomPullRefreshLayout
android:id="@+id/pull_to_refresh"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/activity_bg_color"
android:scrollbars="none">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<wellijohn.org.scrollviewwithstickheader.ScrollViewWithStickHeader
android:id="@+id/stick_scroll_view"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:id="@+id/ll"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:descendantFocusability="blocksDescendants"
android:focusableInTouchMode="true"
android:orientation="vertical">
<LinearLayout
android:id="@+id/rlayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<include
android:id="@+id/banner_content"
layout="@layout/layout_banner"
android:layout_width="match_parent"
android:layout_height="186dp" />
<com.gds.ypw.support.view.FullGridView
android:id="@+id/main_type_grid"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white_color"
android:cacheColorHint="@android:color/transparent"
android:listSelector="@android:color/transparent"
android:numColumns="5"
android:padding="16dp"
android:stretchMode="columnWidth"
android:verticalSpacing="16dp" />
<LinearLayout
android:id="@+id/ll_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:descendantFocusability="blocksDescendants"
android:orientation="vertical" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_stick_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<com.google.android.material.tabs.TabLayout
android:id="@+id/order_manager_tabs"
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="#FFFFFF"
tools:tabGravity="fill"
tools:tabMode="fixed" />
<androidx.viewpager.widget.ViewPager
android:id="@+id/vp"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
</wellijohn.org.scrollviewwithstickheader.ScrollViewWithStickHeader>
</RelativeLayout>
</com.gds.ypw.support.view.CustomPullRefreshLayout>
</LinearLayout>`
README.md里的布局已经过时啦
现在的控件名是 wellijohn.org.scrollviewwithstickheader.ScrollViewWithStickHeader
而且最好把java代码里必要设置写出来吧
mStickScrollView.setContentView(mLLStickList);
mStickScrollView.setSuspensionView(mViewBottom);
setContentView后还是 头部还是被隐藏了
<LinearLayout
android:id="@+id/top_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<View
android:layout_width="match_parent"
android:layout_height="25dp"
android:background="@color/transparent" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/toolbar_height"
android:layout_marginRight="@dimen/video_item_margin"
android:background="@color/transparent"
>
<ImageView
android:id="@+id/btn_back"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:src="@drawable/nav_back" />
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerInParent="true"
android:layout_toLeftOf="@id/btn_feedback"
android:layout_toRightOf="@id/btn_back"
android:ellipsize="end"
android:gravity="center"
android:maxEms="15"
android:maxLines="1"
android:textColor="@color/text_color"
android:textSize="17sp" />
<ImageView
android:id="@+id/btn_share"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:src="@drawable/nav_share_white" />
</RelativeLayout>
</LinearLayout>
<com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/game_poster"
android:layout_width="match_parent"
android:layout_height="221dp"
app:actualImageScaleType="centerCrop"
app:placeholderImage="@drawable/video_loading"
app:placeholderImageScaleType="centerCrop" />
<RelativeLayout
android:id="@+id/layout_remark"
android:layout_width="match_parent"
android:layout_height="74dp"
android:layout_alignParentBottom="true">
<ImageView
android:id="@+id/btn_remark"
android:layout_width="match_parent"
android:layout_height="44dp"
android:layout_centerInParent="true"
android:src="@drawable/detail_bt_comment" />
</RelativeLayout>
<wellijohn.org.scrollviewwithstickheader.ScrollViewWithStickHeader
android:id="@+id/scrollview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@id/layout_remark"
android:layout_below="@id/top_bar"
app:autoscroll="false">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:descendantFocusability="blocksDescendants"
android:focusableInTouchMode="true"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/transparent"
android:orientation="vertical"
android:paddingTop="100dp">
<com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/game_cover"
android:layout_width="120dp"
android:layout_height="204dp"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_marginStart="22dp"
app:actualImageScaleType="centerCrop"
app:placeholderImage="@drawable/video_loading"
app:placeholderImageScaleType="centerCrop"
app:roundedCornerRadius="12dp" />
</RelativeLayout>
<LinearLayout
android:id="@+id/layout_stick"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<com.flyco.tablayout.SlidingTabLayout
android:id="@+id/tab"
android:layout_width="wrap_content"
android:layout_height="51dp"
android:layout_below="@id/layout_remark_info"
android:layout_gravity="left"
app:tl_divider_padding="13dp"
app:tl_indicator_bounce_enable="true"
app:tl_indicator_color="#FAC000"
app:tl_indicator_corner_radius="2dp"
app:tl_indicator_height="3dp"
app:tl_indicator_width="21dp"
app:tl_tab_padding="22dp"
app:tl_textBold="SELECT"
app:tl_textSelectColor="@color/text_color"
app:tl_textUnselectColor="@color/text_tab_un_select_color"
app:tl_textsize="18sp" />
<android.support.v4.view.ViewPager
android:id="@+id/vp_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/tab" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_below="@id/tab"
android:background="#ECECEC" />
</LinearLayout>
</LinearLayout>
</wellijohn.org.scrollviewwithstickheader.ScrollViewWithStickHeader>
这能运行???
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.