0
I’m starting a short time with programming, I’ve researched a lot but I need help in this doubt
I will use a menu in my app called Boom Menu https://github.com/Nightonke/BoomMenu
My question is, where do I put the reference to call Activity when clicking the button?
I’ve searched the entire library, and I have no idea
Has anyone used or knows where it puts?
I chose this code button style below:
Easeactivity.java
package com.nightonke.boommenusample;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.nightonke.boommenu.BoomMenuButton;
public class EaseActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_ease);
initBmb(R.id.bmb4);
}
private BoomMenuButton initBmb(int res) {
BoomMenuButton bmb = (BoomMenuButton) findViewById(res);
assert bmb != null;
for (int i = 0; i < bmb.getPiecePlaceEnum().pieceNumber(); i++)
bmb.addBuilder(BuilderManager.getSimpleCircleButtonBuilder());
return bmb;
}
}
activity_ease.xml
<com.nightonke.boommenu.BoomMenuButton
android:id="@+id/bmb4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
app:bmb_normalColor="@android:color/holo_green_light"
app:bmb_highlightedColor="@android:color/holo_green_dark"
app:bmb_buttonEnum="simpleCircle"
app:bmb_piecePlaceEnum="piecePlace_dot_9_1"
app:bmb_buttonPlaceEnum="buttonPlace_sc_9_1"
app:bmb_showMoveEaseEnum="outElastic"
app:bmb_showScaleEaseEnum="outElastic"
app:bmb_showRotateEaseEnum="outElastic"
app:bmb_hideMoveEaseEnum="inElastic"
app:bmb_hideScaleEaseEnum="inElastic"
app:bmb_hideRotateEaseEnum="inElastic"
app:bmb_showDelay="0"
app:bmb_hideDelay="0"
/>
Stênio, the button is only one, but it opens 6 more buttons, if I do it your way, will only open an Activity? There is another way to do it?
– michaelsc
I saw the link you passed, you want to call several buttons by the floating button of Activity. What I understood is that you wanted to call an Activity. Something else you already downloaded the link example.
– Stênio Barroso de Moraes