Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: CBXE8 - About screen size control in Android.


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 4 - Last Post: Aug 12, 2015 6:37 PM Last Post By: GAI CHEW KAI
GAI CHEW KAI

Posts: 117
Registered: 7/25/14
CBXE8 - About screen size control in Android.  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 26, 2015 6:28 PM
I am using Embarcadero® C++Builder XE8 Version 22.0.19027.8951.

I have a tablet with screen resolution of 1024x768.

QUESTIONS:

1. How CBXE8 handles the different screen size of mobile devices, if created Android 3.5" Phone and Android 7" Tablet under Master->View->Created, does this means, the APK installed, will run according to the screen resolution automatically or we have to manually specify or activate certain API to use particular design view during program execution ?

2. How to create a form size of 1024x768 if there is only "inch" measurement in Master->view->Available for Android ?

Please advise.
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: CBXE8 - About screen size control in Android.  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 26, 2015 7:19 PM   in response to: GAI CHEW KAI in response to: GAI CHEW KAI
GAI wrote:

1. How CBXE8 handles the different screen size of mobile devices

It uses Views. You can have multiple Views in your project, each for a different
type of device or screen size. FireMonkey will use the View that most closely
matches the device your app is running on.

http://docwiki.embarcadero.com/RADStudio/XE8/en/Using_FireMonkey_Views

if created Android 3.5" Phone and Android 7" Tablet under
Master->View->Created, does this means, the APK installed, will
run according to the screen resolution automatically or we have
to manually specify or activate certain API to use particular design
view during program execution ?

Create separate Views for the 3.5" and 7" screens.

--
Remy Lebeau (TeamB)

Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: CBXE8 - About screen size control in Android.  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 26, 2015 8:43 PM   in response to: GAI CHEW KAI in response to: GAI CHEW KAI
GAI wrote:

1. How CBXE8 handles the different screen size of mobile devices

It uses Views. You can have multiple Views in your project, each for a different
type of device or screen size. FireMonkey will use the View that most closely
matches the device your app is running on.

http://docwiki.embarcadero.com/RADStudio/XE8/en/Using_FireMonkey_Views

if created Android 3.5" Phone and Android 7" Tablet under
Master->View->Created, does this means, the APK installed, will
run according to the screen resolution automatically or we have
to manually specify or activate certain API to use particular design
view during program execution ?

Create separate Views for the 3.5" and 7" screens.

--
Remy Lebeau (TeamB)

Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: CBXE8 - About screen size control in Android.  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 27, 2015 6:52 PM   in response to: GAI CHEW KAI in response to: GAI CHEW KAI
GAI wrote:

1. How CBXE8 handles the different screen size of mobile devices

It uses Views. You can have multiple Views in your project, each for a different
type of device or screen size. FireMonkey will use the View that most closely
matches the device your app is running on.

http://docwiki.embarcadero.com/RADStudio/XE8/en/Using_FireMonkey_Views

if created Android 3.5" Phone and Android 7" Tablet under
Master->View->Created, does this means, the APK installed, will
run according to the screen resolution automatically or we have
to manually specify or activate certain API to use particular design
view during program execution ?

Create separate Views for the 3.5" and 7" screens.

--
Remy Lebeau (TeamB)

GAI CHEW KAI

Posts: 117
Registered: 7/25/14
Re: CBXE8 - About screen size control in Android.  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 12, 2015 6:37 PM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
>FireMonkey will use the View that most closely matches the device your app is running on.
- I have created an app at view option of "Android 4" Phone" when deployed to a physical phone ( Samsung Galaxy S2 ), it seems the application cannot auto adjust itself to current phone resolution.
- Here is the picture link to the issues encountered with phone specification stated.

https://www.dropbox.com/s/t2kb3j7u1gv6i1o/CBXE8%20-%20Desktop%20IDE%20vs%20Phone.jpg?dl=0
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02