android - coordinatorLayout嵌套recyclerview
问题描述
<?xml version='1.0' encoding='utf-8'?>
<RelativeLayout
xmlns:android='http://schemas.android.com/apk/res/android'xmlns:app='http://schemas.android.com/apk/res-auto'android:layout_width='match_parent'android:layout_height='match_parent'android:background='@color/bg_grey'android:clickable='true'><android.support.design.widget.CoordinatorLayout android:layout_width='match_parent' android:layout_height='match_parent'> <android.support.design.widget.AppBarLayoutandroid:background='@null'android: android:layout_width='match_parent'android:layout_height='wrap_content' ><RelativeLayout app:contentScrim='#30469b' app:expandedTitleMarginStart='0dp' app:layout_scrollFlags='scroll|exitUntilCollapsed|snap' android:layout_width='match_parent' android:layout_height='wrap_content' android:layout_weight='1'> <TextViewandroid: android:layout_width='wrap_content'android:layout_height='wrap_content'android:layout_centerHorizontal='true'android:layout_gravity='center'android:layout_marginBottom='8dp'android:layout_marginTop='10dp'android:text='室内门禁终端'android:textColor='#2196F3' /> <LinearLayoutandroid: android:layout_width='match_parent'android:layout_height='wrap_content'android:layout_below='@+id/text1'android:layout_marginBottom='8dp'android:layout_marginRight='13dp'android:layout_marginTop='2dp'android:orientation='vertical'/> <TextViewandroid: android:layout_width='wrap_content'android:layout_height='wrap_content'android:layout_below='@+id/family_list'android:layout_centerHorizontal='true'android:layout_gravity='center_horizontal'android:layout_marginBottom='8dp'android:layout_marginTop='10dp'android:text='联系人'android:textColor='#2196F3' /></RelativeLayout> </android.support.design.widget.AppBarLayout> <android.support.v7.widget.RecyclerViewandroid: android:layout_width='match_parent'android:layout_height='wrap_content'android:layout_marginRight='13dp'app:layout_behavior='@string/appbar_scrolling_view_behavior'/></android.support.design.widget.CoordinatorLayout><com.jingxi.smartlife.user.widget.ZSideBar android: android:layout_width='15dp' android:layout_height='match_parent' android:layout_alignParentEnd='true' android:layout_gravity='right' android:layout_marginRight='3dp'/></RelativeLayout>这是我的布局现在问题是ZSideBar是一个自定义字母控件 这是个联系人列表现在的问题是点击ZSideBar的时候没有滚动正确 比如我点击的是Z但是没有滚动到Z的位置 大神们这是什么问题

问题解答
回答1:我都改成用一个reclerview就没有这个问题了
回答2:楼主暴力膜蛤不可取
相关文章:
1. css3 - Firefox 字号相对IE、Chrome更大,如何在CSS中统一?2. php - mysql多表查询3. 为什么标题文字前面加的小色块标识不显示4. javascript - 小白求解,请问这个dom对象的为什么能用jquery方法?5. python - pymongo复制数据库中的表6. nginx错误日志莫名有很多zhidao.baidu.com的连接这个是怎么回事?7. javascript - js解析多层嵌套json数据,递归调用8. javascript - angular多项复选框取值问题9. java - 根据月份查询多个表里的内容怎么实现好?10. 如何通过shell抓取执行的mysql错误并报所在表

网公网安备