Custom memo or text selection in Delphi Firemonkey for mobile? - android

Is it possible to create a custom memo in firemonkey to implement things like syntax highlighting?
I wrote my own component on a Frame but it doesnt support mobile text selecting on android... Is there any way to create a custom memo or implement the native text selection into my own component on a TFrame?
What i mean is this:
Hold touch to select text, selected text gets hovered with blue background and on top the toolbar comes down.

There is one full native android TMemo with the design you post available for Delphi. You can find the source code here: https://svn.code.sf.net/p/alcinoe/code/ (i gave the link because the code is too big to be post on SO)
You can also download the demo apk to see it in action:
https://svn.code.sf.net/p/alcinoe/code/demos/ALFmxControls/Android/Release/ALFmxControls/bin/ALFmxControls.apk

Related

How to change font of textbox drop-down menu in HTML using Alpha Anywhere

I am writing a mobile app for Android and iOS using the Alpha Anywhere framework. I have a dropdown textbox which currently displays two options "King Kong" and "Peter Jackson". How do I change the font size of these names in Alpha Anywhere?
If you know of a solution using JavaScript or Xbasic in the software suite that would also useful, and appreciated.
Are you using a ControlBar control? If so, that is where you would style it. On the other hand, if it is simply a drop-down control in a header, you could click on the object in the UX editor, and edit it's style in the Properties column on the right.

Is it possible to make a memo transparent in Android app using Delphi

Hi I would like to know is it possible to make a memo transparent? If so, how is it done? I want the user to be able to see the text displaced as well as the background image instead of the just the white background of the memo.
I'm using Embarcadero RAD Studio XE5
Thank you
Just set the Opacity property to a value lower than 1. I haven't tested this component for Android but buttons, toolbars, images, etc. do work. I tested the TMemo for windows and that too works.
I have XE2, so editing the style may be a little different in XE5. In XE2, you can right-click the TMemo and choose "Edit Custom Style..." from the popup menu.
Find the style for the memo (not the scroll bar), then expand the style down to the background TRectangle.
Set the Fill color and the stroke color for the TRectangle to Null, then click the "Apply and Close" button, and the TMemo will now be "Transparent".
If the steps are different for editing the style in XE5, please let us know. Also, if this isn't what you're looking for, please provide an image demonstrating what you're going for.

Expandable Tab menu

everybody
Currently i am working on Android Native App .I wish to create a expandable tab without any HTML or JavasScript file. My App is totally native App.
I wish to show something like above picture.
You can try background image for Button/image.
Set one background-1 for default, use another for hover/ click/ select effect.

how to open combobox on type # in textarea in android 2.2

I am working with android 2.2. i want following functionality how can i achieve this.
I have one textarea and I am writing text in that but when I type # it will open combobox to select value from combo box.
like
can anyone idea about this how can i perform this?
Here is the link for the custom design of PopupWindow. android.widget.PopupWindow can be used to display an arbitrary view. The popup windows is a floating container that appears on top of the current activity. Also here is link for some popWindow usage
Please check here http://developer.android.com/guide/topics/ui/controls/spinner.html, i think you want this:
Anyhow if you want to customize it, you can do it. Thanks

C# Listview Control equivalent in Android?

I'm trying to build an application in android wherein I need to display the items in the list in a manner similar to the Icon View in Windows File Explorer (only the thumbnail and the name is displayed). In C#, I can achieved this through the ListView control. Is there an equivalent component in Android that has the same functionality as a ListView control in C#?
EDIT
Here's a link to an image similar to what I want to achieved.
http://goo.gl/vGsgJ
Based on your image, you're looking for the GridView widget:
http://developer.android.com/reference/android/widget/GridView.html
Also, there's a great tutorial on how to load images into a GridView on the Android training site:
http://developer.android.com/training/displaying-bitmaps/display-bitmap.html#gridview

Categories

Resources