底部划动菜单,滑动时背景图透明度渐变,支持嵌套 ListView 或 ScrollView

Overview

SlideBottomPanel SlideBottomPanel

底部划出视图,轻松实现「知乎日报β版」效果(效果见底部效果图)
可以划出的视图可以包裹 ListView 及 ScrollView。并且 ListView 及 ScrollView 可以在第二级或第三级视图中。
Demo apk 下载地址:SlideBottomPanelDemo 下载

ListView 效果

推荐使用 Android Support Library 23.2 提供的 BottomSheet

了解更多:Android Support Library 23.2
如何使用:Teach you how to use Design Support Library: Bottom Sheets

更新日志

  • 1.0.6 版本:添加了 displayPanel() 方法,直接控制视图显示
  • 1.0.3 版本修复了多重嵌套时,隐藏 PanelTitle 时 Panel 出现跳动的 Bug

How to use 如何使用

###导入项目

Gradle
  compile 'com.github.kingideayou:SlideBottomPanel:1.0.6'
Import

首先下载 SlideBottomPanel,将 SlideBottomPanel 文件夹拷贝到项目的目录下面,然后在setting.gradle文件中增加文件夹名称

  include ":SlideBottomPanel"

然后在我们需要依赖这个模块的module中的build.gradle文件中加入如下代码:

  compile project(':SlideBottomPanel')

布局文件

导入成功后,只需要在 XML 文件中添加如下视图(层级比较简单 FrameLayout 的子视图直接包含 ListView 或者 ScrollView)
下面布局只作简单演示,复杂效果请看 Demo.

  <!-- sbp_hide_panel_title 为滑动过程中及子视图显示是是否需要隐藏标题,默认显示(目前只支持 FrameLayout) -->
  <!-- background_layout 为首页显示在滑块底部的视图(下面的示例图中的 WebView) -->
  <me.next.slidebottompanel.SlideBottomPanel
    android:id="@+id/sbv"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:sbp_title_height_no_display="55dp"
    app:sbp_panel_height="380dp"
    app:sbp_hide_panel_title="true"
    app:sbp_background_layout="@layout/background_layout">


    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="380dp"
        android:background="#ffffff"
        android:orientation="vertical">

        <ListView
            android:id="@+id/list_view"
            android:layout_width="match_parent"
            android:layout_height="match_parent"/>
            
        <!-- 标题,如果需要完整显示标题,设置 sbp_title_height_no_display="标题的高度" -->
        <TextView
            android:layout_width="match_parent"
            android:layout_height="55dp"
            text="我是标题"
            android:orientation="horizontal"
            android:gravity="center_vertical"
            android:paddingLeft="@dimen/activity_horizontal_margin"
            android:paddingRight="@dimen/activity_horizontal_margin"
            android:background="#ffffff"/>

    </FrameLayout>

</me.next.slidebottompanel.SlideBottomPanel>

同时也支持复杂一点的效果(知乎日报β版),子视图 FrameLayout 中包含 ViewGroup,ViewGroup 包含 ListView 或 ScrollView

<me.next.slidebottompanel.SlideBottomPanel
    android:id="@+id/sbv"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:sbp_hide_panel_title="true"
    app:sbp_title_height_no_display="55dp"
    app:sbp_panel_height="380dp"
    app:sbp_background_layout="@layout/background_layout">
  
  
    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="380dp"
        android:background="#ffffff"
        android:orientation="vertical">

        <LinearLayout
            android:weightSum="9"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical">
            
            <ListView
                android:id="@+id/list_view"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_weight="8"/>
            
            <TextView
                android:id="@+id/tv_edit"
                android:layout_weight="1"
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:layout_gravity="center_vertical"
                android:gravity="center_vertical"
                android:layout_marginLeft="@dimen/activity_horizontal_margin"
                android:text="写点评..."/>

        </LinearLayout>
    </FrameLayout>
    
    <TextView
        android:layout_width="match_parent"
        android:layout_height="55dp"
        text="我是标题"
        android:orientation="horizontal"
        android:gravity="center_vertical"
        android:paddingLeft="@dimen/activity_horizontal_margin"
        android:paddingRight="@dimen/activity_horizontal_margin"
        android:background="#ffffff"/>

</me.next.slidebottompanel.SlideBottomPanel>

代码控制

完成布局文件后,在 Activity 中将对应的视图填充即可。

  //隐藏 SlideBottomPanel
    if (sbv.isPanelShowing()) {
        sbv.hide();
    }


  //显示 SlideBottomPanel
  sbv.displayPanel()

效果图

SlideBottomPanel

SlideBottomPanel

动图展示:

知乎效果

ListView 效果

鸣谢

此项目的完成要感谢 MultiCardMenu

License

Copyright 2015 NeXT

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
You might also like...
A small android library for tagging views inside a ScrollView as "sticky" making them stick to the top of the scroll container until a new sticky view comes and takes it's place

StickyScrollViewItems StickyScrollViewItems is a ScrollView subclass that allowed you to mark items inside the ScrollView as sticky. The items marked

A tiling scrollview to display large picture (similar to iOS "CATiledLayer")

Project is not maintained right now. Please see the note at the end of this file. Introduction This Android widget aims to provide a scalable way to d

FadingToolbar is an animation library which fades out your footer view in a ScrollView/RecyclerView and fades in a toolbar title
FadingToolbar is an animation library which fades out your footer view in a ScrollView/RecyclerView and fades in a toolbar title

FadingToolbar is an animation library which fades out your footer view in a ScrollView/RecyclerView and fades in a toolbar title (analogue of the LargeTitle animation in iOS)

This is a project designed to help controlling Android MediaPlayer class. It makes it easier to use MediaPlayer ListView and RecyclerView. Also it tracks the most visible item in scrolling list. When new item in the list become the most visible, this library gives an API to track it. [] A swipe menu for ListView.
[] A swipe menu for ListView.

SwipeMenuListView A swipe menu for ListView. Demo Usage Add dependency dependencies { compile 'com.baoyz.swipemenulistview:library:1.3.0' } Step 1

Android ListView that mimics a GridView with asymmetric items. Supports items with row span and column span
Android ListView that mimics a GridView with asymmetric items. Supports items with row span and column span

AsymmetricGridView An Android custom ListView that implements multiple columns and variable sized elements. Please note that this is currently in a pr

ListView with blur/parallax/sticky capabilities

BlurStickyHeaderListView What is BlurStickyHeaderListView? It is a custom ListView with a header that displays pictures from an URL. It then adds a ni

This project aims to provide a working page flip implementation for usage in ListView.

Changes: Made clickable views like a button clickable inside the FlipViewPager. Use RecyclerView. Updated to API 23. Added support for close clicks on

[] An Android library which allows developers to easily add animations to ListView items
[] An Android library which allows developers to easily add animations to ListView items

DEPRECATED ListViewAnimations is deprecated in favor of new RecyclerView solutions. No new development will be taking place, but the existing versions

Renderers is an Android library created to avoid all the boilerplate needed to use a RecyclerView/ListView with adapters.
Renderers is an Android library created to avoid all the boilerplate needed to use a RecyclerView/ListView with adapters.

Renderers Renderers is an Android library created to avoid all the RecyclerView/Adapter boilerplate needed to create a list/grid of data in your app a

Android - A ListView adapter with support for multiple choice modal selection
Android - A ListView adapter with support for multiple choice modal selection

MultiChoiceAdapter MultiChoiceAdapter is an implementation of ListAdapter which adds support for modal multiple choice selection as in the native Gmai

This library provides GridAdapters(ListGridAdapter & CursorGridAdapter) which enable you to bind your data in grid card fashion within android.widget.ListView, Also provides many other features related to GridListView.
This library provides GridAdapters(ListGridAdapter & CursorGridAdapter) which enable you to bind your data in grid card fashion within android.widget.ListView, Also provides many other features related to GridListView.

GridListViewAdapters This libarary enables you to implement GridView like card layout within ListView with added capabilites like Paginations, Additio

[] A swipe menu for ListView.
[] A swipe menu for ListView.

SwipeMenuListView A swipe menu for ListView. Demo Usage Add dependency dependencies { compile 'com.baoyz.swipemenulistview:library:1.3.0' } Step 1

Easy to use ListView with pinned sections for Android.
Easy to use ListView with pinned sections for Android.

Easy to use ListView with pinned sections for Android 2.1 and higher. Pinned section is a header view which sticks to the top of the list until at lea

Android widget with pull to refresh for all the views,and support loadMore for ListView , RecyclerView, GridView and SwipeRefreshLayout.
Android widget with pull to refresh for all the views,and support loadMore for ListView , RecyclerView, GridView and SwipeRefreshLayout.

CommonPullToRefresh Android widget with pull to refresh for all the views,and support loadMore for ListView,RecyclerView,GridView and SwipeRefreshLayo

A ListView with pinned section headers for Android

PinnedHeaderListView This library provides a sectioned ListView with pinned headers. It looks and feels much like the default contacts app does on And

A generic, customizable, open source Android ListView implementation that has 'Pull to Refresh' functionality.
A generic, customizable, open source Android ListView implementation that has 'Pull to Refresh' functionality.

Android 'Pull to Refresh' ListView library Demo video: http://www.youtube.com/watch?v=VjmdELnm3GI Project A generic, customizable, open source Android

 android custom listview,with interaction pattern load more and pull to refresh to load data  dinamically
android custom listview,with interaction pattern load more and pull to refresh to load data dinamically

The first thing that i have to say is render thanks to johannilsson because all the part of pull to refresh listview is based in the code of his repos

Awesome Listview filter functionality in Android.
Awesome Listview filter functionality in Android.

About Awesome Listview filter functionality in Android. See it in Action: https://www.youtube.com/watch?v=RO54U1ES5CA Listview with beautiful transpar

Comments
  • 小哥 AS用gradle引入后 运行时报错 崩溃 只写了布局xml

    小哥 AS用gradle引入后 运行时报错 崩溃 只写了布局xml

    11-18 17:05:57.704 3268-3268/com.bob.demo.bobdemo E/InputEventReceiver: Exception dispatching input event. 11-18 17:05:57.704 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: Exception in MessageQueue callback: handleReceiveCallback 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: java.lang.NullPointerException 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at me.next.slidebottompanel.SlideBottomPanel.displayPanel(SlideBottomPanel.java:335) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at me.next.slidebottompanel.SlideBottomPanel.handleActionUp(SlideBottomPanel.java:191) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at me.next.slidebottompanel.SlideBottomPanel.dispatchTouchEvent(SlideBottomPanel.java:166) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2205) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1948) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2205) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1948) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2205) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1948) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2205) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1948) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2205) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1948) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2205) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1948) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1959) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1411) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at android.app.Activity.dispatchTouchEvent(Activity.java:2410) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1907) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at android.view.View.dispatchPointerEvent(View.java:7426) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at android.view.ViewRootImpl.deliverPointerEvent(ViewRootImpl.java:3262) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:3207) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:4334) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:4313) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:4405) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:179) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at android.os.MessageQueue.nativePollOnce(Native Method) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at android.os.MessageQueue.next(MessageQueue.java:125) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at android.os.Looper.loop(Looper.java:124) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at android.app.ActivityThread.main(ActivityThread.java:5074) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at java.lang.reflect.Method.invokeNative(Native Method) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at java.lang.reflect.Method.invoke(Method.java:511) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo E/MessageQueue-JNI: at dalvik.system.NativeStart.main(Native Method) 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo D/AndroidRuntime: Shutting down VM 11-18 17:05:57.714 3268-3268/com.bob.demo.bobdemo W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x414ecac8) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: FATAL EXCEPTION: main 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: java.lang.NullPointerException 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at me.next.slidebottompanel.SlideBottomPanel.displayPanel(SlideBottomPanel.java:335) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at me.next.slidebottompanel.SlideBottomPanel.handleActionUp(SlideBottomPanel.java:191) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at me.next.slidebottompanel.SlideBottomPanel.dispatchTouchEvent(SlideBottomPanel.java:166) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2205) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1948) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2205) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1948) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2205) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1948) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2205) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1948) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2205) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1948) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2205) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1948) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1959) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1411) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at android.app.Activity.dispatchTouchEvent(Activity.java:2410) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1907) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at android.view.View.dispatchPointerEvent(View.java:7426) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at android.view.ViewRootImpl.deliverPointerEvent(ViewRootImpl.java:3262) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:3207) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:4334) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:4313) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:4405) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:179) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at android.os.MessageQueue.nativePollOnce(Native Method) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at android.os.MessageQueue.next(MessageQueue.java:125) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at android.os.Looper.loop(Looper.java:124) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5074) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:511) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) 11-18 17:05:57.724 3268-3268/com.bob.demo.bobdemo E/AndroidRuntime: at dalvik.system.NativeStart.main(Native Method)

    向上面一滑动就崩溃了

    opened by maobon 1
  • Bug: cannot import for some reason

    Bug: cannot import for some reason

    I keep getting errors while importing, so I tried to update the various components on gradle:

        classpath 'com.android.tools.build:gradle:1.5.0'
    
    compileSdkVersion 23
    buildToolsVersion "23.0.2"
    
    defaultConfig {
        minSdkVersion 14
        targetSdkVersion 22
        versionCode 1
        versionName version
    }
    
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.nineoldandroids:library:2.4.0'
    

    But even now, I get this error: C:\Users\user\AndroidStudioProjects\SlideBottomPanel\app\build\intermediates\res\merged\debug\values-v23\values-v23.xml Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'. Error:(24) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'. Error:Execution failed for task ':app:processDebugResources'.

    com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files (x86)\Android\android-sdk\build-tools\22.0.1\aapt.exe'' finished with non-zero exit value 1

    opened by AndroidDeveloperLB 0
Owner
NeXT
▬◙▬▬▬▬▬▬ ◂◂  ►  ▐ ▌  ■  ▸▸
NeXT
Using RecyclerView to display data instead of ScrollView or lInearLayout for a strong app. It replaces the ScrollView used in trackMySleep app.

RecyclerView - SleepQualityTracker with RecyclerView app This is the toy app for Lesson 7 of the Android App Development in Kotlin course on Udacity.

Espérant GADA 0 Oct 18, 2021
This library provides Easy Android ListView Adapters(EasyListAdapter & EasyCursorAdapter) which makes designing Multi-Row-Type ListView very simple & cleaner, It also provides many useful features for ListView.

EasyListViewAdapters Whenever you want to display custom items in listview, then only way to achieve this is to implement your own subclass of BaseAda

Biraj Patel 132 Nov 25, 2022
An Android custom ListView and ScrollView with pull to zoom-in.

PullZoomView An Android custom ListView and ScrollView with pull to zoom-in. Features Set ZoomView enable Add HeaderView Custom ZoomView Parallax or N

Frank-Zhu 2.3k Dec 26, 2022
An Android custom ListView and ScrollView with pull to zoom-in.

PullZoomView An Android custom ListView and ScrollView with pull to zoom-in. Features Set ZoomView enable Add HeaderView Custom ZoomView Parallax or N

Frank-Zhu 2.3k Dec 26, 2022
Parallax ScrollView and ListView for Android

Parallax Scrolls Parallax ListView and ScrollView for Android This project includes ScrollView with one or more parallaxed views ListView with paralla

Nir Hartmann 851 Dec 3, 2022
An Android Library that allows users to pull down a menu and select different actions. It can be implemented inside ScrollView, GridView, ListView.

AndroidPullMenu AndroidPullMenu is an Open Source Android library that allows developers to easily create applications with pull menu. The aim of this

Armando TBA 181 Nov 29, 2022
A custom SwipeRefreshLayout to support the pull-to-refresh featrue.RecyclerView,ListView,GridView,NestedScrollView,ScrollView are supported.

SuperSwipeRefreshLayout A custom SwipeRefreshLayout to support the pull-to-refresh featrue.You can custom your header view and footer view. RecyclerVi

Zheng Haibo(莫川) 1.3k Dec 13, 2022
Android library to display a ListView whose cells are not rigid but flabby and react to ListView scroll.

FlabbyListView This library is not maintained anymore and there will be no further releases Android library to display a ListView which cells are not

JPARDOGO 762 Nov 23, 2022
HorizontalListView is an Android ListView widget which scrolls in a horizontal manner (in contrast with the SDK-provided ListView which scrolls vertically).

HorizontalListView HorizontalListView is an Android ListView widget which scrolls in a horizontal manner (in contrast with the SDK-provided ListView w

MeetMe 722 Nov 10, 2022
Android library to display a ListView whose cells are not rigid but flabby and react to ListView scroll.

FlabbyListView This library is not maintained anymore and there will be no further releases Android library to display a ListView which cells are not

JPARDOGO 762 Nov 23, 2022