Answer the question
In order to leave comments, you need to log in
How to customize buttons through libraries in android?
There is a library https://android-arsenal.com/details/1/702#!descri.. which makes a button that is divided into three when pressed. There is also a library https://android-arsenal.com/details/1/2296#!descr.. which divides the button into two parts.
Separately, they work fine, but how can I implement so that when a button is pressed, three buttons divided into two parts pop up. Roughly speaking, combine two libraries.
<lt.lemonlabs.android.expandablebuttonmenu.ExpandableMenuOverlay
android:id="@+id/button_menu"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:src="@drawable/ic_roundicons_freeset_04" //тут вместо картинок нужно принять как то кнопку из второй библиотеки
ebm:closeButtonSrc="@drawable/ic_roundicons_freeset_04"
ebm:leftButtonSrc="@drawable/ic_roundicons_freeset_04"
ebm:midButtonSrc="@drawable/ic_roundicons_freeset_04"
ebm:rightButtonSrc="@drawable/ic_roundicons_freeset_04"
ebm:leftButtonText="@string/action_left"
ebm:midButtonText="@string/action_mid"
ebm:rightButtonText="@string/action_right"
/>
<com.victor.ringbutton.RingButton
android:id="@+id/ringButton"
app:upText="Take Photo"
app:downText="Hand Write"
app:upDrawable="@drawable/ic_android_black_24dp"
app:downDrawable="@drawable/ic_android_black_24dp"
android:layout_centerInParent="true"
android:layout_width="240dp"
android:layout_height="240dp"/>
Answer the question
In order to leave comments, you need to log in
It's not so easy! Therefore, it is necessary to avoid the use of libraries, especially from "anyone".
In any case, first - analyze the source code of both libraries, and see where you can do dependency injection, at best, there will really be a way to use them together with one button, at worst, you will have to take the code from one and transfer it to another, and this is without experience and developed analytical thinking will result in "hemorrhoids", maybe it will be easier for you to write your own from scratch, slowly copying only the principle from the existing ones, and implementing it yourself, this is individual and depends on luck.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question