[fpc-pascal] gritwiev layout issue
Bo Berglund
bo.berglund at gmail.com
Thu Jul 22 23:09:29 CEST 2021
On Tue, 20 Jul 2021 12:43:03 +0200, "Mgr. Janusz Chmiel via fpc-pascal"
<fpc-pascal at lists.freepascal.org> wrote:
><html xmlns:o="urn:schemas-microsoft-com:office:office" 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"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
>/* Font Definitions */
>@font-face
> {font-family:"Cambria Math";
> panose-1:2 4 5 3 5 4 6 3 2 4;}
>@font-face
> {font-family:Calibri;
> panose-1:2 15 5 2 2 2 4 3 2 4;}
>/* Style Definitions */
>p.MsoNormal, li.MsoNormal, div.MsoNormal
> {margin:0cm;
> font-size:11.0pt;
> font-family:"Calibri",sans-serif;}
>a:link, span.MsoHyperlink
> {mso-style-priority:99;
> color:blue;
> text-decoration:underline;}
>.MsoChpDefault
> {mso-style-type:export-only;}
>@page WordSection1
> {size:612.0pt 792.0pt;
> margin:70.85pt 70.85pt 70.85pt 70.85pt;}
>div.WordSection1
> {page:WordSection1;}
>--></style></head><body lang=CS link=blue vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>I AM using Pandroid for Windows package available here.</p><p class=MsoNormal><a href="https://github.com/zeljkoc/PandroidPackage">https://github.com/zeljkoc/PandroidPackage</a></p><p class=MsoNormal>I need to setup The following XMl attributes to make Gritwiev to look more attractively.</p><p class=MsoNormal> android:layout_width="match_parent"</p><p class=MsoNormal> android:layout_height="match_parent"</p><p class=MsoNormal> android:gravity="center"</p><p class=MsoNormal> android:columnWidth="100dp"</p><p class=MsoNormal> android:numColumns="auto_fit"</p><p class=MsoNormal> android:verticalSpacing="24dp"</p><p class=MsoNormal> android:horizontalSpacing="10dp"</p><p class=MsoNormal> android:stretchMode="spacingWidthUniform"</p><p
>class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have followed The tutorial available from here.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>https://www.raywenderlich.com/995-android-gridview-tutorial</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have issue how to create FPCJVM compatible line</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> android:stretchMode="spacingWidthUniform"<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>And also lines</p><p class=MsoNormal> android:layout_width="match_parent"<o:p></o:p></p><p class=MsoNormal> android:layout_height="match_parent"<o:p></o:p></p><p class=MsoNormal> android:gravity="center"<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>are problematic too.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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.</p><p class=MsoNormal>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.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><a 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</a></p><p 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?</p><p class=MsoNormal>I do not see at all but I want to create acceptable user interfaces also for sighted majority.</p><p class=MsoNormal><o:p> </o:p></p></div></body></html>
Could yu please stop posting in unreadable HTML format?
These mail lists are designed to use plaintext only.
--
Bo Berglund
Developer in Sweden
More information about the fpc-pascal
mailing list