Skip to content

Instantly share code, notes, and snippets.

View wwdablu's full-sized avatar
:octocat:
Looking for other developers to create open source android libraries.

Soumya wwdablu

:octocat:
Looking for other developers to create open source android libraries.
View GitHub Profile
textViewAnimator
.typewrite("Android animation library")
.then(waitFor = 1000) {
imageViewAnimator.flipAndSetImage(Axis.X, R.drawable.ic_love, 300)
textViewAnimator.typewrite("ViewAnimator")
.then(waitFor = 1000) {
var heartBeat = 0
imageViewAnimator.loop({ viewAnimator, callback ->
viewAnimator.scale(2F, 100).then {
it.scale(1F, 100).then {
@wwdablu
wwdablu / lottie_create_item_from_item.java
Last active November 19, 2019 01:48
Create menu item from another menu item
MenuItem item2 = MenuItemBuilder.createFrom(item1)
.selectedLottieName("gift.json")
.unSelectedLottieName("gift.json")
.build();
FontItem fontItem = FontBuilder.create("Dashboard")
.selectedTextColor(Color.BLACK)
.unSelectedTextColor(Color.GRAY)
.selectedTextSize(16) //SP
.unSelectedTextSize(12) //SP
.setTypeface(Typeface.createFromAsset(getAssets(), "coffeesugar.ttf"))
.build();
@wwdablu
wwdablu / lottie_menuitem_builder_sample
Last active November 19, 2019 01:45
Sample of how to use the menuitembuilder
MenuItem item = MenuItemBuilder.create("home.json", MenuItem.Source.Assets, fontItem, "dashboard")
.pausedProgress(1f)
.loop(false)
.build();
var express = require('express');
var port = process.env.PORT || 3000;
var app = express();
app.get('/', function (req, res) {
res.send(JSON.stringify({ identity: 'Mockpress'}));
});
app.listen(port, function () {
console.log('Mockpress is listning...');
@wwdablu
wwdablu / main.js
Last active October 6, 2019 21:29
var express = require('express');
var port = process.env.PORT || 3000;
var app = express();
app.get('/', function (req, res) {
res.send(JSON.stringify({ identity: 'Mockpress'}));
});
app.listen(port, function () {
console.log('Mockpress is listning...');
The application does not send any user specific data to any remote server. All of them are kept in the local phone.
{
"contents" : [
{
"type" : "text",
"content" : "SimplyPdf developer, Soumya Kanti Kar",
"properties" : {
"size" : 24,
"color" : "#000000",
"underline" : true,
"strikethrough" : false
TextProperties textProperties = new TextProperties();
textProperties.textSize = 24;
textProperties.typeface = Typeface.create(Typeface.DEFAULT, Typeface.BOLD);
textProperties.alignment = Layout.Alignment.ALIGN_CENTER;
TextComposer textComposer = new TextComposer(simplyPdfDocument);
textComposer.write("SimplyPDF", textProperties);
simplyPdfDocument = SimplyPdf.with(this, new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "/test.pdf"))
.colorMode(DocumentInfo.ColorMode.COLOR)
.paperSize(PrintAttributes.MediaSize.ISO_A4)
.margin(DocumentInfo.Margins.DEFAULT)
.paperOrientation(DocumentInfo.Orientation.PORTRAIT)
.build();