-
Notifications
You must be signed in to change notification settings - Fork 142
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
when starting activity the circle does not turn fully #25
Comments
hi
|
is it working fine @marcoazeem ? any tips for me? how did you get it worked out?? |
Hi yeah I got it working, I used a
Handler setDelay;
Runnable startDelay;
//Activity Delay
setDelay = new Handler();
//Circle Menu Code
circleMenu = (CircleMenu) findViewById(R.id.circle_menu);
circleMenu.setMainMenu(Color.parseColor("#c02f34"),
R.mipmap.icon_menu, R.mipmap.icon_cancel);
circleMenu.addSubMenu(Color.parseColor("#c02f34"),
R.mipmap.locationwhite)
.addSubMenu(Color.parseColor("#c02f34"),
R.mipmap.calculatorwhite)
.addSubMenu(Color.parseColor("#c02f34"),
R.mipmap.globewhite)
.addSubMenu(Color.parseColor("#c02f34"), R.mipmap.account);
circleMenu.setOnMenuSelectedListener(new OnMenuSelectedListener() {
@OverRide
public void
onMenuSelected(int index) {
switch (index) {
case 0:
startDelay =
new Runnable() {
@OverRide
public
void run() {
startActivity(new Intent(Circle.this, track.class));
}
};
setDelay.postDelayed(startDelay, 800);
break;
case 1:
startDelay =
new Runnable() {
@OverRide
public
void run() {
startActivity(new Intent(Circle.this, calc.class));
}
};
setDelay.postDelayed(startDelay, 800);
…On Fri, Dec 21, 2018, 09:13 sanjum01 ***@***.*** wrote:
is it working fine @marcoazeem <https://github.com/marcoazeem> ? any tips
for me? how did you get it worked out??
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#25 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AlSUWR1eQJzZs8iowQYuwR2Q5LTGXWE0ks5u7F_zgaJpZM4T3BFi>
.
|
Thanks for your comment bro, does each icon on the circle menu leads to new activity connected to that icon? I tried to link one activity with one of the icon by using above code, but its not initiating new activity.. here is the code import android.content.Intent; import com.hitomi.cmlibrary.CircleMenu; public class MainActivity extends AppCompatActivity {
|
package com.example.sanju.circlefinal; import android.support.v7.app.AppCompatActivity; public class fbActivity extends AppCompatActivity {
} |
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
</android.support.constraint.ConstraintLayout> |
`public class Circle extends AppCompatActivity {
//this sets delay so that the circle goes around fully |
With this the circle does not turn fully, it turns half way and open the new activity. how would I solve the issue?
circleMenu.setOnMenuSelectedListener(new OnMenuSelectedListener() {
The text was updated successfully, but these errors were encountered: