Localizator - Collect all strings not found in strings.db [B4A]
Localizator - Collect all strings not found in strings.db [B4A]
@fredo · 2017-03-06
Localizator - Export application strings to the log [B4A]
Localizator - Export application strings to the log [B4A]
@FrenchDeveloper · 2017-03-04
Print to a Bluetooth POS printer with matching codepage
Print to a Bluetooth POS printer with matching codepage
@KMatle · 2017-03-02
Rings (with sources)
Rings (with sources)
@BeneBarros · 2017-02-23
TabStripViewPager with FontAwesome / Material Icons
TabStripViewPager with FontAwesome / Material Icons
@Erel · 2017-02-22
CallSubDelayed & ScrollView.ScrollPosition
Often a Scrollview doesn''t scroll as you expect when you add a lot of views to it and then want to scroll it to the last added view. It seems as the message isn''t properly handled because the system is still busy with the SV itsself. The following code works for me. Just put the Scroll command to another sub and call it with "CallSubDelayed2".
@KMatle · 2017-02-16
Subs to Move or Swap List Items
I use Lists a lot and discovered there were no built-in methods to Move an item from one index location to another index location, and there is no method to Swap two items.
@Widget · 2017-02-16
Combining a Fontawesome Icon And Text on a View Using Richstring
Erelâs recent code snippet regarding Material Icons and Richtsring inspired me to write the following snippet combining a FontAwesome Icon, text and Richstring to put text on a label, button, edittext, etc. The following code which can be enhanced, is the entire project
@Mahares · 2017-02-10
Rotate a view (degrees)
Rotate a view (degrees)
@KMatle · 2017-02-06
Auto-connect without predefined client or server
A post that Erel made on Facebook about client/server auto-connect reminded me that I had this code & should probably share it because it doesn''t require either device to be "hard" configured as either a client or a server.
@Computersmith64 · 2017-01-30
UDP Broadcast Address
This code uses JavaObject to go over the device network interfaces and find the first UDP broadcast address. This address can be used to send a UDP packet to all devices listening to a specific port.
@Erel · 2017-01-29
cGrid
cGrid class and cGridx (code module) to have a scrolling grid
@Robert Valentino · 2017-01-19
JarFileLoader: Embed Files to Libraries
JarFileLoader: Embed Files to Libraries
@Mashiane · 2017-01-19
AES 128 Key generation
Instead of generating AES keys using just Agraham''s Encryption library, we can improve it, specify the length of the key (128, 192 or 256) and the Bouncy Castle provider using Javaobject and Reflection library
@Javier Alonso · 2017-01-16
Fireworks
Fireworks
@BeneBarros · 2017-01-03
NotificationListener get small icon
I have been using notificationListener for a while now and could not find the way on how to get the small icon, so I''m sharing this code that works for me, it gets the small icon but not the background color (don''t know how to get it).
@jtare · 2017-01-03
NumberFormat3
Number.Format3 operates in a similar manner to NumberFormat2 with additional parameters to provide specified separators, diferent number formats [IE scientific notation] and limit the number of characters for display
@Roger Daley · 2016-12-28
Button Text Autosizer
A helper to size the text on buttons, when they need to be dynamically sized. It supports a very wide range of device layouts.
@Martin Beukes · 2016-12-26
Exploring SQLite Core Functions, Part Three
Exploring SQLite Core Functions, Part Three
@Mahares · 2016-12-19
Dotted lines
A sub that draws dotted lines along a panel top or left with the choice of stroke width, as well as dot length and line color. A boolean parameter Vertical indicates if the line is to be along top or left.
@MitchBu · 2016-12-11
Exploring SQLite Core Functions, Part Two
This is the second part of a three part series regarding exploring SQLite core functions which are explained in the following link, http://www.sqlite.org/lang_corefunc.html but lack examples. In this snippet I show examples for each of the next 13 functions that are available in SQLite by default . The SQL statement syntax and examples are listed below for these 13 functions: sqlite_version(), sqlite_source_id(), RANDOM(), REPLACE(X,Y, Z), SUBSTR(X,Y,Z), SUBSTR(X,Y), TRIM(X), RTRIM(X), LTRIM(X), RTRIM(X,Y), LTRIM(X,Y), TRIM(X,Y), total_changes()
@Mahares · 2016-12-11
Exploring SQLite Core Functions, Part One
Exploring SQLite Core Functions, Part One
@Mahares · 2016-12-07
A good method to handle an uncaught exception
A good method to handle an uncaught exception
@LucaMs · 2016-11-15
Change colors alpha value to a given color
According to Material Design guidelines it is recommended to set the opacity of an color to a special value instead of making the color lighter or darker. Since the color scheme may change at runtime it is eventually neccessary to adapt the alpha value of a textcolor.
@fredo · 2016-11-08
Change RadioButton
An easy way to change the bitmaps of a radiobutton.
@Robert Valentino · 2016-11-05
SETTING
Android > 6 code to automatically open the settings window
@MarcoRome · 2016-10-28
No Action Bar on Appcompat Apps (app launching animation)
Useful when you have to code an app that needs appcompat library (for example, NumberMorphView from Johan Schoeman) but you don''t need the action bar and don''t want to appear on app launching windows
@inakigarm · 2016-10-26
GetBitmapSizeinBytes
Gets the size in bytes of a bitmap in a Bitmap Drawable.Should give an idea to understand better the "in-memory size of the bitmap".
@moster67 · 2016-10-25
ColorStateList as object for view properties
While working with @DonManfred ''s wrap of the VectorCompat library I needed to set a ColorStateList to a VectorDrawable ForegroundTintList property. After fiddling around with xml files in the drawable folder I needed a more flexible way to set the foreground colors and found a snippet from @stevel05 here and modified it a little bit to use it as object.
@fredo · 2016-10-01
Sample Splash Screen
As requested by Fhren Meza after seeing a sample video I posted on YouTube, here is a sample splash screen. In the end I abandoned the transparent background with fade to black because the very top title bar area always looks a little ametuerish. Anyhow, please see the attached project if wanting to re-create the look shown here...
@RandomCoder · 2016-09-29