Giter Club home page Giter Club logo

bottomsheetlayout's People

Contributors

qhutch avatar tcqq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bottomsheetlayout's Issues

have issue with seekbar

Many thanks for great work, however, when I add a seek bar, it doesn't work. I need your urgent help.
thank you

BottomSheetLayout with a RecycleView

I have a problem, because i tried to put a RecycleView into a BottomSheetLayout, but my recycleView don't scroll. Have a way to make this works?

ListView

How to make ListView scrollable inside bottomsheetlayout?

Views with selectors doesnt work

I am adding background selectors in the items inside bottomsheetLayout but it seems that doesnt work.

IDK why.

this is the layout:

<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="match_parent"
    android:background="@color/background_menu"
    android:orientation="vertical">

    <LinearLayout
        android:id="@+id/llToggle"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/mako"
        android:clickable="true"
        android:gravity="center"
        android:padding="5dp">

        <ImageView
            android:id="@+id/ivToggle"
            android:layout_width="50dp"
            android:layout_height="50dp"
            android:padding="15dp"
            android:src="@drawable/down" />
    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

        <android.support.constraint.ConstraintLayout
            android:id="@+id/clLive"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1">

            <View
                android:layout_width="0dp"
                android:layout_height="0dp"
                android:background="@drawable/selector_bg_abbey"
                android:clickable="true"
                android:focusable="true"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent" />

            <ImageView
                android:id="@+id/ivLive"
                android:layout_width="24.7dp"
                android:layout_height="24.7dp"
                android:layout_marginEnd="8dp"
                android:layout_marginStart="8dp"
                android:clickable="false"
                android:focusable="false"
                android:src="@drawable/ic_live"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintHorizontal_bias="0.15"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent" />

            <TextView
                android:id="@+id/tvLive"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="@dimen/spacing_lg"
                android:clickable="false"
                android:focusable="false"
                android:text="@string/menu_live"
                android:textColor="@color/cyan"
                android:textSize="20.7sp"
                app:layout_constraintBottom_toBottomOf="@+id/ivLive"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintHorizontal_bias="0.0"
                app:layout_constraintStart_toEndOf="@+id/ivLive"
                app:layout_constraintTop_toTopOf="@+id/ivLive" />

            <View
                android:layout_width="0dp"
                android:layout_height="1dp"
                android:background="@color/mako"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintStart_toStartOf="parent" />
        </android.support.constraint.ConstraintLayout>

        <android.support.constraint.ConstraintLayout
            android:id="@+id/clVideoHistory"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            android:background="@drawable/selector_bg_abbey"
            android:clickable="true"
            android:focusable="true">

            <ImageView
                android:id="@+id/ivVideoHistory"
                android:layout_width="24.7dp"
                android:layout_height="24.7dp"
                android:layout_marginEnd="8dp"
                android:layout_marginStart="8dp"
                android:clickable="false"
                android:focusable="false"
                android:src="@drawable/ic_video_history_off"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintHorizontal_bias="0.15"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent" />

            <TextView
                android:id="@+id/tvVideoHistory"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="@dimen/spacing_lg"
                android:clickable="false"
                android:focusable="false"
                android:text="@string/menu_video_history"
                android:textColor="@color/white"
                android:textSize="20.7sp"
                app:layout_constraintBottom_toBottomOf="@+id/ivVideoHistory"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintHorizontal_bias="0.0"
                app:layout_constraintStart_toEndOf="@+id/ivVideoHistory"
                app:layout_constraintTop_toTopOf="@+id/ivVideoHistory" />

            <View
                android:layout_width="0dp"
                android:layout_height="1dp"
                android:background="@color/mako"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintStart_toStartOf="parent" />
        </android.support.constraint.ConstraintLayout>
    </LinearLayout>
</LinearLayout>

This is the selector (selector_bg_abbey.xml):

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
   <item android:drawable="@color/black_25percent" android:state_pressed="true" />
   <item android:drawable="@color/abbey" />
</selector>

The thing is that no one of the ConstraintLsyout do nothing with that background.

There are a few different test to try to understand this behavior.

Max Expanded Height

Is there a way to set max expanded height? i don't want it to cover the whole view.

Top sheet ?

Hi,
I want to use this as a top and bottom sheet layout, the problem is that when you use it on top it will disappear, is there any way to use on top just like it is used at bottom ?

can we use Menu item instead of imageView for the button(i.e: imageViewArrow) ?

can we use Menu item instead of imageView for the button (i.e: imageViewArrow) ?
please answer me quickly.

menu.xml >> bottom_navigation_menu.xml

<menu>
 <item android:id="@+id/profileFragment"
        android:title="Profile"
        android:icon="@drawable/ic_baseline_person_24"
        app:showAsAction="always" />
</menu>

Activity.kt

 profileFragment.setOnClickListener { bottomBarLayout.toggle() }
       bottomBarLayout.setOnProgressListener { progress -> rotateArrow(progress)}

Here profileFragment giving an error (unresolved symbol : profileFragment)
and a suggestion Create abstract property 'profileFragment'

@qhutch please help

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.