Android 创建iOS应用程序样式的菜单

Android 创建iOS应用程序样式的菜单,android,ios,menu,Android,Ios,Menu,我下载了CNN iOS应用程序,看到了精彩的菜单 我发布了2个屏幕 现在我在问如何在我的应用程序中创建它。我将在iOS和Android上开发,但同样的Android应用程序没有这个菜单 可以在ANDROID中创建此菜单吗? 有没有人给我一些建议 提前感谢您获得解决方案:使用ListView创建一个视图,使用背景照片创建一个按钮。然后将视图移出屏幕。如果视图为x=320 y=300,则在sotryboard元素位置设置中设置y=-300,并将按钮置于上角。 在按钮操作上,为y=+300的2个图

我下载了CNN iOS应用程序,看到了精彩的菜单

我发布了2个屏幕

现在我在问如何在我的应用程序中创建它。我将在iOS和Android上开发,但同样的Android应用程序没有这个菜单

可以在ANDROID中创建此菜单吗? 有没有人给我一些建议


提前感谢您

获得解决方案:使用ListView创建一个视图,使用背景照片创建一个按钮。然后将视图移出屏幕。如果视图为x=320 y=300,则在sotryboard元素位置设置中设置y=-300,并将按钮置于上角。 在按钮操作上,为y=+300的2个图形对象制作动画。就这些

- (IBAction)makeTheMagicWithButton:(id)sender {

//at first click y + 300 and view comes in
//at the 2nd click y - 300 and return back out the screen
float y;
[sender setSelected:![sender isSelected]];
if ([sender isSelected]) {
    y = +300;
    self.buttonImage = [UIImage imageNamed:@"menuICONSreturn.png"];

} else {
    y = -300;
    self.buttonImage = [UIImage imageNamed:@"menuICONS.png"];
}


//animation move the view
[UIView transitionWithView:self.view duration:0.5 options:UIViewAnimationOptionAllowAnimatedContent animations:^{[self.magicView setFrame:CGRectOffset(self.magicView.frame, 0, y)];}
                completion:nil];

//animation move button menu
[UIView transitionWithView:self.view duration:0.5 options:UIViewAnimationOptionAllowAnimatedContent animations:^{[self.magicButton setFrame:CGRectOffset(self.magicButton.frame, 0, y)];}
                completion:nil];
//change icon
[self.magicButton setBackgroundImage:self.buttonImage forState:UIControlStateNormal];
}
希望它能帮助别人