Code Monkey home page Code Monkey logo

bubblelayout's People

Contributors

bernaferrari avatar jzeferino avatar luongvo avatar masayukisuda avatar piasy avatar pocket7878 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bubblelayout's Issues

Upgrade to androidx

It would be great if this could be updated to androidx (that dependency on com.android.support:appcompat-v7:) so we can avoid using Jetifier for this dependancy. (Jetifier makes our builds a bit slow).

Update Gradle

Your project isn't compiling here, I would suggest updating Build Tools, changing compile to implement, etc.

gradle implementation doesn't work

implementation 'com.github.MasayukiSuda:BubbleLayout:v1.2.1
doesn't work, but
implementation 'com.daasuu:BubbleLayout:1.2.0
does work.

???

Change shape arrow

Hi MasayukiSuda.
I am using your library, it is very helpful, thank you very much.
I have a issue. I want to change shape arrow, like image image
For top left and top right.
Can i help me, i really need it.
Thank you.

Ripple effect for click

I tried adding android:background="?attr/selectableItemBackground" but the ripple effect also shows outside the bubble.

initPadding(), resetPadding() calculate incorrect

First, i'm sorry that i am not good at english.

In my case, mArroHeight variable is prime number.

So, Every time you call the method, the value changes.
(ex. setArrowPosition())

because, float to int type casting

Adding drop shadow

Is there anyway I can add drop shadow to the bubble layout? Example below:

screen shot 2018-08-15 at 11 42 52

Android resource linking failed, incompatible with attribute bl_cornersRadius

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:processDebugResources'.

A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
Android resource linking failed
ERROR:/Users/ram/Desktop/Ram/workspace/reactnative/android/app/src/main/res/layout/text_row_left.xml:45: AAPT: error: '16' is incompatible with attribute bl_cornersRadius (attr) reference|dimension [weak].

Code :

<com.daasuu.bl.BubbleLayout
            android:padding="12dp"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:bl_arrowDirection="left"
            app:bl_arrowHeight="11dp"
            app:bl_arrowPosition="14dp"
            app:bl_arrowWidth="6dp"
            app:bl_cornersRadius="16"
            app:bl_strokeColor="@color/grey_1"
            app:bl_strokeWidth="1dp">

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:maxWidth="200dp"
                android:textColor="@color/black"
                android:textSize="14sp" />
        </com.daasuu.bl.BubbleLayout>

implementation 'com.github.MasayukiSuda:BubbleLayout:v1.2.2'

maven { url 'https://www.jitpack.io' }

setBubbleColor always gray

The issue could be specific to when populating through an adapter. Inside the poplateView I have:

protected void populateView(View v, ChatMessage model, int position) {
 BubbleLayout bubble;
 bubble = (BubbleLayout) v.findViewById(R.id.bubble);

 if (model.getMessageUser() != null && messageAuthor.equals(currentUsername)) {
            RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) bubble.getLayoutParams();
            params.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);

            bubble.setArrowDirection(ArrowDirection.RIGHT);
            bubble.setBubbleColor(R.color.colorPrimary);
        }

The arrow direction works well, but the bubbles always looks dark gray regardless of the value of R.color.colorPrimary in the values resource folder. Setting the color of the bubble in the xml layout works (displays the right color) for the bubbles that don't meet the condition in the above statement.

not able to add dependency

when im trying to add dependency in build.gradle file then it giving me error. please help me out.
compile 'com.daasuu:BubbleLayout:1.2.0'
Error:(74, 13) Failed to resolve: com.daasuu:BubbleLayout:1.2.0

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.