-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Menu icons doesnt appears propertly #4
Comments
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, karmil32<[email protected]> 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.
|
XML: Java:
Can I use here vector XML drawable or there must be png with background? |
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, karmil32<[email protected]> wrote:
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?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Ok, i resolved problem with "layer-list" and now I can use vector XML drawable with circle backgroud. Example: |
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. |
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 <[email protected]>:
… 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
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ARTxGeqbX5wDU9lpaRRfeUTPCQyWq8yWks5r7wD-gaJpZM4NhRdt>
.
|
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. |
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
The text was updated successfully, but these errors were encountered: