Re: [fpc-pascal] gritwiev layout issue

2021-07-23 Thread Mgr. Janusz Chmiel via fpc-pascal

Dear specialists,

    I AM very sorry that I have spammed this mailing list by using my 
messages on HTMl format. Unfortunately, I can not find out, how to setup 
Microsoft E-mail Windows 10 app available on Windows store to send 
messages in plain text. So I have decided to communicate by using 
Thunderbird on this mailing list.



I would like to plea some advanced developers here, if somebody would 
write Me, how to convert The following XML attributes to Pandroid 
package compatible format.



android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:stretchMode="spacingWidthUniform"


Here are my settings.

Adapter := AWArrayAdapter.create(Self, 
AR.innerLayout.simple_list_item_1, items);

GridView.setVerticalSpacing(24);
GridView.setHorizontalSpacing(10);
GridView.setStretchMode(AR.Innerattr.COLUMNWIDTH);

But how to add

stretchMode="spacingWidthUniform"

To get PPCJVM Android JVM target compatible line of code.



  GridView.setColumnWidth(100);
  GridView.setNumColumns(AWGridView.AUTO_FIT);
I Am working with Pandroid for Windows package available from here:


zeljkoc/PandroidPackage: Package for Lazarus , Create android 
application (github.com) 


I Am calling AndroidR25 APi functions because I need to have ignore 
battery optimisations feature working.


Thank you very much for yours help and for yours programmers time.

With deepest appreciation and with The kindness regards.

Janusz Chmiel


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] gritwiev layout issue

2021-07-22 Thread Bo Berglund via fpc-pascal
On Tue, 20 Jul 2021 12:43:03 +0200, "Mgr. Janusz Chmiel via fpc-pascal"
 wrote:

>xmlns:w="urn:schemas-microsoft-com:office:word" 
>xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"; 
>xmlns="http://www.w3.org/TR/REC-html40";>content="text/html; charset=utf-8">style='word-wrap:break-word'>I AM 
>using Pandroid for Windows package available here.href="https://github.com/zeljkoc/PandroidPackage";>https://github.com/zeljkoc/PandroidPackage class=MsoNormal>I need to setup The following XMl attributes to make Gritwiev 
>to look more attractively.    
>android:layout_width="match_parent"    
>android:layout_height="match_parent"    
>android:gravity="center"    
>android:columnWidth="100dp"    
>android:numColumns="auto_fit"    
>android:verticalSpacing="24dp"    
>android:horizontalSpacing="10dp"    
>android:stretchMode="spacingWidthUniform"class=MsoNormal> I have followed The 
>tutorial available from here. class=MsoNormal>https://www.raywenderlich.com/995-android-gridview-tutorial class=MsoNormal> I have issue how to 
>create FPCJVM compatible line class=MsoNormal>    
>android:stretchMode="spacingWidthUniform"class=MsoNormal> And also linesclass=MsoNormal>    
>android:layout_width="match_parent"class=MsoNormal>    
>android:layout_height="match_parent"class=MsoNormal>    android:gravity="center"class=MsoNormal> are problematic 
>too. I AM 
>calling AndroidR25 API Pascal headers created by MR Željko
>Cvijanovi?. I need to call those new API functions version to be able to 
>recall Ignore optimisation dialog window on Android. I know, that MR Bart have 
>used much mmore different approach. He has used other technique so user could 
>create androidmanifest.xml with The same official format. So XMl attributes 
>could be simply pasted from The article which I have followed. Unfortunately, 
>I AM not sure, if The approach from MR Bart can be safely used also with new 
>Android Pascal Api header files.I Am writing about app 
>which is available here and it is excellent example of The programmers 
>technique to build running Android apps by using only FPCJVM Android JVM 
>target. href="https://lazarus.lazarus.freepascal.narkive.com/37AJSzpC/finished-full-jvm-android-application";>https://lazarus.lazarus.freepascal.narkive.com/37AJSzpC/finished-full-jvm-android-application class=MsoNormal>Do you think, that I
>could use this older approach to over come some issue with XML tags? So I do 
>not have to transfer XML format to Pascal compatible format?class=MsoNormal>I do not see at all but I want to create acceptable user 
>interfaces also for sighted majority.class=MsoNormal> 

Could yu please stop posting in unreadable HTML format?
These mail lists are designed to use plaintext only.


-- 
Bo Berglund
Developer in Sweden

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


[fpc-pascal] gritwiev layout issue

2021-07-21 Thread Mgr. Janusz Chmiel via fpc-pascal
I AM using Pandroid for Windows package available here.https://github.com/zeljkoc/PandroidPackageI need to setup The following XMl attributes to make Gritwiev to look more attractively.    android:layout_width="match_parent"    android:layout_height="match_parent"    android:gravity="center"    android:columnWidth="100dp"    android:numColumns="auto_fit"    android:verticalSpacing="24dp"    android:horizontalSpacing="10dp"    android:stretchMode="spacingWidthUniform" I have followed The tutorial available from here. https://www.raywenderlich.com/995-android-gridview-tutorial I have issue how to create FPCJVM compatible line android:stretchMode="spacingWidthUniform" And also lines    android:layout_width="match_parent"    android:layout_height="match_parent"    android:gravity="center" are problematic too. I AM calling AndroidR25 API Pascal headers created by MR Željko Cvijanović. I need to call those new API functions version to be able to recall Ignore optimisation dialog window on Android. I know, that MR Bart have used much mmore different approach. He has used other technique so user could create androidmanifest.xml with The same official format. So XMl attributes could be simply pasted from The article which I have followed. Unfortunately, I AM not sure, if The approach from MR Bart can be safely used also with new Android Pascal Api header files.I Am writing about app which is available here and it is excellent example of The programmers technique to build running Android apps by using only FPCJVM Android JVM target. https://lazarus.lazarus.freepascal.narkive.com/37AJSzpC/finished-full-jvm-android-applicationDo you think, that I could use this older approach to over come some issue with XML tags? So I do not have to transfer XML format to Pascal compatible format?I do not see at all but I want to create acceptable user interfaces also for sighted majority. 
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal