CUBA Platform - How to customize front web app screen? - java

I start up my project in CUBA Studio, and click the /app link. It comes up with a blank screen:
There's absolutely nothing in my Screens tab in CUBA Studio.
Is it possible in any way to customize this "homepage" with a GUI screen?
If not, is there a way to have one of the tabs be opened by default, say, open the "Dashboard" tab in Administration?

Go to the Screens section in CUBA Studio, and you can click "Create Main Window". There, you can design your layout, and when you go to the app page it'll show right after login.

If you go to the screens section in CUBA studio there is a button that says "Create main window". This will create the main window that you can edit in the screen designer.

Related

How to open little popup menu for selecting wifi in android?

I noticed this half screen wifi selection menu in some Android Apps.
I would like to use this menu in my own app, to give the user the possibility to select the wifi without jumping to settings app.
I didn't find any instruction how to do this. However AndroidStudios Layout Inspector showed me that its belonging to the system, not to the app.
Anyone knows how to open this menu ?
It's called a Settings Panel:
https://medium.com/google-developer-experts/exploring-android-q-settings-panels-d308525b8345
You are looking for Settings Panel
This is for Android Q.
Here's an example to how to call it.
startActivityForResult(Intent(Settings.Panel.ACTION_INTERNET_CONNECTIVITY), INTERNET_SETTINGS_REQUEST)

How to view Layout Editor instead of XML code in Android Studio?

Android Studio Problem Screenshot
I'm new to android programming, but when I opened android studio, I can't see the layout editor. I've tried opening new projects from scratch, but the same thing happens. It just shows the XML code editor instead of the "drag and drop" layout editor. Does anyone know how to fix this?
Thanks.
In the SS you have posted there is build running, and layout editor is available only after build is finished.
nonetheless, after build is finished you can easily access layout editor in android studio 3.6 by pressing the buttons near top-right corner
There are three options for viewing your layout resources. You can view the XML, the XML along with the design, or just the design. You can navigate through these options by clicking the buttons of the top right of this image
Did you check by pressing Control+B, Kindly press Ctrl + B on the design screen and it will open the XML layout for you.

How to make a pop up window while the app icon clicked instead of opening Activity?

I want make an app by which I want to open it in small screen/view like popup window instead of Full Screen Activity.
Suppose,when a user click on the application icon in his device it will show a popup window (contains various buttons/options) instead of opening any full screen activity!
Is there any way ? If possible then, How can I proceed ?
Wishing code snapshots or any demo or necessary suggestions regarding this problem!
Not exactly a popup, but you can use the Dialog theme and make your Activity appear like a dialog box by using:
<activity android:theme="#android:style/Theme.Dialog">

Slide out menu android java

I made an application for my Samsung device. Samsung phones generally have a menu button on the bottom side of the phone which is a problem for those devices who do not. I tried my app out on a Nexus, but since it did not have the physical menu button, I couldn't open the menu.
Now I want to make another option to to open the menu in my app. I though a slide out menu would be nice. I want to use the same menu but another way to open it. I want to be able to open it from the side of the screen by swiping to the right, and from the menu button.
P.S. Normally there is a titlebar on top of the screen in an app with a menu button/option on it to. But I hide my titlebar (in my AndroidManifest), so that's the issue why I need another solution..
Use Navigation Drawers for slide out menu. You can use Navigation for two menus, one from left other from right using different listview.
If you want to design a custom slide out menu using navigation drawer here is a tutorial.
http://www.androidhive.info/2013/11/android-sliding-menu-using-navigation-drawer/

change icon displayed in title bar for a java desktop app

I have a Java Desktop Application project created with NetBeans. The icon that is displayed in my main window's titlebar, by default, is the java logo. The same logo is displayed when I minimize this window to the Taskbar.
I would like to change this icon with one specific to my application, but didn't find how.
Thanks
Please have a look at these links:
how-do-i-change-the-default-application-icon-in-java
how-do-i-set-an-applications-icon-globally-in-swing

Categories

Resources