Comments (4)
@sahilwebmazix, I can't reproduce your issue. Can you please show your layout
?
from circle-menu-android.
<com.ramotion.circlemenu.CircleMenuView
android:id="@+id/circle_menu"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
app:button_colors="@array/colors"
app:button_icons="@array/icons"
app:icon_color="@color/color_share_bg"
app:icon_menu="@drawable/ic_menu_share" />
final CircleMenuView menu = (CircleMenuView) dialogView.findViewById(R.id.circle_menu);
menu.open(true);
from circle-menu-android.
Try this code, if you want to open menu on dialog creation. Also update circle-menu
to 0.2.1
version.
public class CircleMenuDialog extends DialogFragment {
...
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
final CircleMenuView menu = view.findViewById(R.id.circle_menu);
menu.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
@Override
public void onGlobalLayout() {
menu.getViewTreeObserver().removeOnGlobalLayoutListener(this);
menu.open(true);
}
});
}
...
from circle-menu-android.
Thanks a lot @dvg4000 Its working now :)
from circle-menu-android.
Related Issues (20)
- how to perform click progrmetically HOT 1
- Manifest merger failed with minSdkVersion 21, targetSdkVersion 28 HOT 3
- could not setbackground insteed of setIcon for buttons HOT 1
- How to add title for each child menu button?? HOT 1
- Allow the menu to be opened or closed from the xml HOT 1
- All Your Libraries Have Issue's HOT 1
- Menu open? HOT 2
- How to know if the menu is already open ? HOT 1
- com.ramotion.circlemenu.RingEffectView cannot be cast to com.ramotion.circlemenu.CircleMenuView HOT 1
- can i only display icon without color? HOT 3
- label for buttons HOT 1
- change width circle item HOT 1
- tools:context="com.ramotion.circlemenu.example.simple.MainActivity">
- Add text with the menu item
- Fab menu
- Circle menu
- Create circlemenu from code HOT 1
- how to hide menu main icon-
- How to change icon image?
- Put the circle menu on the corner
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from circle-menu-android.