BrotherV / Floating-ArcMenu

A prety menu for all application
129 stars 35 forks source link

Menu icons doesnt appears propertly #4

Open karmil32 opened 7 years ago

karmil32 commented 7 years ago

I added this menu to my application and child menu icons doesnt show propertly. There is only icons - no background color like fab menu. Also one of the text label is cut off. Here's screen how it looks: https://www.dropbox.com/s/nn7r3itti08oip0/menu-issue.PNG?dl=0

BrotherV commented 7 years ago

Hi. Is it possible to see your code? Send just menu definition part. Have nice day.

Sent from Yahoo Mail on Android

On Sat, May 20, 2017 at 16:06, karmil32notifications@github.com wrote:
I added this menu to my application and child menu icons doesnt show propertly. There is only icons - no background color like fab menu. Here's screen how it looks: https://www.dropbox.com/s/nn7r3itti08oip0/menu-issue.PNG?dl=0

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

karmil32 commented 7 years ago

XML: <com.bvapp.arcmenulibrary.ArcMenu android:id="@+id/arcMenu" android:layout_width="wrap_content" android:layout_height="wrap_content" arc:menuType="normal" arc:menuChildSize="24dp" arc:menuGravity="Right_Middle" arc:menuClickAnim="true" arc:menuChildAnim="false" arc:menuShadowElevation="true" arc:menuNormalColor="@color/colorAccent" android:layout_gravity="center_horizontal|end"> </com.bvapp.arcmenulibrary.ArcMenu>

Java: `ArcMenu menu = (ArcMenu) view.findViewById(R.id.arcMenu); menu.attachToRecyclerView(mRecyclerView); menu.showTooltip(true); menu.setToolTipBackColor(Color.WHITE); menu.setToolTipCorner(6f); menu.setToolTipPadding(2f); menu.setToolTipTextColor(Color.BLUE); menu.setAnim(300,300,ArcMenu.ANIM_MIDDLE_TO_RIGHT,ArcMenu.ANIM_MIDDLE_TO_RIGHT, ArcMenu.ANIM_INTERPOLATOR_ACCELERATE_DECLERATE,ArcMenu.ANIM_INTERPOLATOR_ACCELERATE_DECLERATE);

    final int itemCount = ITEM_DRAWABLES.length;
    for (int i = 0; i < itemCount; i++) {
        ImageView item = new ImageView(getActivity());
        item.setImageResource(ITEM_DRAWABLES[i]);
        final int position = i;
        menu.addItem(item, STR[i], new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //You can access child click in here
            }
        });
    }`

Can I use here vector XML drawable or there must be png with background?

BrotherV commented 7 years ago

Actucally you can use png vector with bsckground or use internal fab as children for menu and use your png vectors as icon. I'll send this code for you and you'll know how to use internal fab as child.have nice day.

Sent from Yahoo Mail on Android

On Sat, May 20, 2017 at 17:26, karmil32notifications@github.com wrote:
XML:

Java: `ArcMenu menu = (ArcMenu) view.findViewById(R.id.arcMenu); menu.attachToRecyclerView(mRecyclerView); menu.showTooltip(true); menu.setToolTipBackColor(Color.WHITE); menu.setToolTipCorner(6f); menu.setToolTipPadding(2f); menu.setToolTipTextColor(Color.BLUE); menu.setAnim(300,300,ArcMenu.ANIM_MIDDLE_TO_RIGHT,ArcMenu.ANIM_MIDDLE_TO_RIGHT, ArcMenu.ANIM_INTERPOLATOR_ACCELERATE_DECLERATE,ArcMenu.ANIM_INTERPOLATOR_ACCELERATE_DECLERATE); final int itemCount = ITEM_DRAWABLES.length; for (int i = 0; i < itemCount; i++) { ImageView item = new ImageView(getActivity()); item.setImageResource(ITEM_DRAWABLES[i]); final int position = i; menu.addItem(item, STR[i], new View.OnClickListener() { @Override public void onClick(View v) { //You can access child click in here } }); }` Can I use here vector XML drawable or there must be png with background? — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
karmil32 commented 7 years ago

Ok, i resolved problem with "layer-list" and now I can use vector XML drawable with circle backgroud.

Example: `<?xml version="1.0" encoding="utf-8"?>

`
BrotherV commented 7 years ago

Hello my friend, send me a direct email then I'll send you another instruction which you'll be able to add internal fab as child. Have nice day.

karmil32 commented 7 years ago

Ok, send me the instruction. Will be nice if You will put sample on github. Thanks alot.

2017-05-20 17:04 GMT+02:00 Mohsen Hatami notifications@github.com:

Hello my friend, send me a direct email then I'll send you another instruction which you'll be able to add internal fab as child. Have nice day.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BrotherV/Floating-ArcMenu/issues/4#issuecomment-302878580, or mute the thread https://github.com/notifications/unsubscribe-auth/ARTxGeqbX5wDU9lpaRRfeUTPCQyWq8yWks5r7wD-gaJpZM4NhRdt .

BrotherV commented 7 years ago

Hello again, Actually I checked readme.me and I saw there was some instruction for this work but I put this instruction for first part. Have nice day