2017년 7월 14일 금요일

Sidebar – Side Menu [MIT AI2]


Using AppToMarket 4.1 and Screen2 in your project you can achieve this.
Let us begin by making Screen1 and Screen2 that we will use as sidebar or side menu.
Screen1 Designer:ShowStatusBar: Checked
TitleVisible: Checked
Sizing: I prefer responsive before fixed


Screen2 Designer:
BackgroundColor: None
BackgroundImage: None
CloseScreenAnimation: None
OpenScreenAnimation: None
ShowStatusBar: Checked
TitleVisible: Checked

Main arrangement
BackgroundColor: None
Height: Fill parent
Width: Fill parent
BackgroundImage: None

Left arrangement
For images, buttons, text etc.
Height: Fill parent
Width: 60% or doing this in blocks

Right arrangementFor the simulation of Close Outside.
BackgroundColor: None
BackgroundImage: None
Height: Fill parent
Width: Fill parent

and that’s all in MIT AI2download and save your project.apk in ..AppToMarket_v41\myApks\ folder.
AppToMarket is where the magic is created, but before we start with AppToMarket we need to create a theme and two animations, left to right and right to left, which in turn will take control over our Screen2.
this page was very helpful in understanding the animations.
Launch your AppToMarket and browse for your project.

Decompile

Features & Update ManifestSelect necessary features and update Manifest
Screen: NoTitleBar = TitleVisible: Unchecked
Slider: Set it to Any

Edit Manifest
You’ll have to add android:theme="@style/Theme.myCustomTheme" manually to our Screen2 in the manifest file.

Save Manifest.
and the last thing before you click the Create New.apk button
move your file mycustomtheme.xml to …AppToMarket_v41\temp_myDecompiles\res\values\ folder
move your files slide_from_left_to_right_enter.xml and slide_from_left_to_right_exit.xml to …AppToMarket_v41\temp_myDecompiles\res\anim\ folder

Create New.apk

Sign

Verify

Zip Align

Download


댓글 없음:

댓글 쓰기