Lazarus
Programming => Operating Systems => Android => Topic started by: bmcsoft on February 06, 2021, 07:15:42 pm
-
We use in our program Jbutton as part of the chessboard.
There are 2 problem:
1. On the different Android device Jbutton captions looks very different. I run the same apk file on 2 different devices.
On the first the first device the captions of Jbuttons is good (see attached screenshot 1), but on the second device the captions almost invisible (see attached screenshot 2).
Can this problem be solved? Can Jbutton caption be seen properly on any type of Android device?
2.We need to have 2 different types of pressing JButton. On PC It was left and right mouse click. Can 2 types of pressing be made with the Jbutton? For example short tap and long tap?
-
Can Jbutton caption be seen properly on any type of Android device?
How you set properties "LayoutParamHeight' and LayoutParamWidth" ?
Can 2 types of pressing be made with the Jbutton? For example short tap and long tap?
I will try some solution...
-
Can Jbutton caption be seen properly on any type of Android device?
How you set properties "LayoutParamHeight' and LayoutParamWidth" ?
LayoutParamHeight and LayoutParamWidth = IpExact
Can 2 types of pressing be made with the Jbutton? For example short tap and long tap?
I will try some solution...
Thanks
-
Mihhim and me work together on the same problem. We want to create playable chessboard with figures and symbols on it.
jmpessoa, if we will use jGridView instead of jButton, can we use 2 types of pressing?
Also we need to swipe board left to show chatbox. Where we can read about using navigation gestures in LAMW?
-
LayoutParamHeight and LayoutParamWidth = IpExact
"IpExact" not scale ....
So, on the different Android devices Jbutton looks very different!
You need jPanel and more jPanels.....
I will try to do some example and put here....
-
I will try to do some example and put here....
Good day, J.M. Pessoa. Would you be so kind to add two types of pressing jbutton in LAMW and others manipulations
(specific android gestures)?
The development of our and may be many others android applications is stopped without them. Thanks.
May be this will help:
https://www.androidauthority.com/android-gesture-tutorial-1032515/
-
add two types of pressing jbutton...
What?
and others manipulations
What?
(specific android gestures)?
Where?
-
add two types of pressing jbutton...
What?
We need equivalents left and right type mouse button clicks that is on PC. For example 2 different reactions for Jbutton on touch and double touch on Jbutton. Our game need two different event from Jbutton. It can be realized for example by the simple touch and the double touch of jbutton.
Is it possible? Thanks.
Here is our old version of the Game on English for PC as example.
https://yadi.sk/d/XN9P9hv23YkPjS
New versions is much better, but they are not on English yet.
-
For example 2 different reactions for Jbutton on touch and double touch on Jbutton
double touch? No. But we can try implement LONG touch...
Hint: what about jImageView or jBtnButton ? [not jButton....]
-
For example 2 different reactions for Jbutton on touch and double touch on Jbutton
double touch? No. But we can try implement LONG touch...
Hint: what about jImageView or jBtnButton ? [not jButton....]
Thanks. We've learned your advices. We try to use Jpanel now. We would like to know: how to print some text in it? Is any idea?
-
Placing jtextview inside panel will do the trick :), placing jimageview to represent your bishop character also good idea, i think.
-
Placing jtextview inside panel will do the trick :), placing jimageview to represent your bishop character also good idea, i think.
Thanks!
-
:D :D , read and practice more you'll find answer provided by LAMW of all your questions.