masayukisuda / bubblelayout Goto Github PK
View Code? Open in Web Editor NEWBubble View for Android.
Bubble View for Android.
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).
..
Your project isn't compiling here, I would suggest updating Build Tools, changing compile to implement, etc.
ERROR: Failed to resolve: com.daasuu:BubbleLayout:1.2.1
Look like the dependency is not updated in mvn repository.
implementation 'com.github.MasayukiSuda:BubbleLayout:v1.2.1
doesn't work, but
implementation 'com.daasuu:BubbleLayout:1.2.0
does work.
???
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.
I tried adding android:background="?attr/selectableItemBackground"
but the ripple effect also shows outside the bubble.
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
popupWindow.showAtLocation(v, Gravity.NO_GRAVITY, location[0], location[1]-popupWindow.getHeight());
popupWindow.getHeight()=-2?
BubbleLayout doesn't fit to the length of the text
FAILURE: Build failed with an exception.
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' }
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.