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
public Camera FirstPersonCamera;
public GameObject DetectedPlanePrefab;
public GameObject DiabloGameObject;
void Update () {
_UpdateApplicationLifecycle();
// Hide snackbar when currently tracking at least one plane.
Session.GetTrackables<DetectedPlane>(m_AllPlanes);
This application by default does not track or record anything of the user explicitly.
This application by default does not track or record anything of the user explicitly.
@wwdablu
wwdablu / lottie_menu_item.xml
Created December 3, 2018 21:43
This is the layout of the menu item which is displayed in the lottiebottomnav
<?xml version="1.0" encoding="utf-8"?>
<layout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/menu_container"
android:background="@android:color/transparent"
android:orientation="vertical">
@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();
@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();
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();
textComposer = simplyPdfDocument.getTextComposer();
TextComposer.Properties textProperties = new TextComposer.Properties();
textProperties.textSize = 24;
textProperties.typeface = Typeface.create(Typeface.DEFAULT, Typeface.BOLD);
textProperties.alignment = Layout.Alignment.ALIGN_CENTER;
textComposer.write("SimplyPDF", textProperties);
textProperties.typeface = null;
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();
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);