简体   繁体   中英

Opening new activity with fixed width and height in android

I am creating an enterprise app on android 2.3 which is like the default launcher app with some modifications. The home and back button of the device is hidden behind an enclosing, thus a user won't be able to click them. My problem is that: once users launch an app from the launcher then how do I give them an option to go back (as they wont be able to click the back button of the device). I was thinking of inserting a bar at bottom with a button - clicking on which takes the user back, more like what happens in Android 3.0.

So my question is: Is there a way to limit the height and width of launched activity and also can I show a bar with a button on it below other activities?

Inside the layout you can add the some header or footer kind of bar.some thing like this..

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM