It is a simple gist to realize the UI ANIMATION IN PHOTOSHOP – TUTORIAL #1 provided by Taylor Ling .
Due to shadow and Z-animation, this code can work only on L-devices.
var loading = require('functions').loading; | |
loading.setMessage('Autenticando...'); | |
loading.show(); | |
setTimeout(function(){ | |
loading.hide(); | |
},5000); | |
It is a simple gist to realize the UI ANIMATION IN PHOTOSHOP – TUTORIAL #1 provided by Taylor Ling .
Due to shadow and Z-animation, this code can work only on L-devices.
// | |
// Start the app while being offline | |
// Then after these requests have been cache - go back online | |
// | |
var HTTPHelper = require("networkHelper"); | |
// simulate some request while being offline | |
for(var i = 0; i < 5; i++){ | |
setTimeout(function(){ |
package com.example.scrollyheadedlistthingy; | |
import java.util.ArrayList; | |
import android.support.v4.app.FragmentActivity; | |
import android.view.View; | |
import android.view.ViewGroup.MarginLayoutParams; | |
import android.widget.AbsListView; | |
import android.widget.ArrayAdapter; | |
import android.widget.ListView; |
var win = Titanium.UI.createWindow(); | |
var t = Ti.UI.create2DMatrix(); | |
var identityTransform = Ti.UI.create2DMatrix(); | |
var a = Titanium.UI.createAnimation(); | |
a.transform = t; | |
a.duration = 1000; | |
//Function to process the current orientation |
package com.example.popup_test; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.os.Bundle; | |
import android.text.Editable; | |
import android.text.TextWatcher; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.view.ViewStub; |
<?xml version="1.0" encoding="utf-8"?> | |
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:id="@+id/toolbar" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:minHeight="?attr/actionBarSize" | |
android:background="?attr/colorPrimary" | |
android:elevation="4dp" | |
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" |
// ============================================================================== | |
// Create custom loading indicator | |
// ============================================================================== | |
var indWin = null; | |
var actWin = null; | |
var indicatorShowing = false; | |
var actInd; | |
var actIndAndroid; | |
var screenWidth = Titanium.Platform.displayCaps.platformWidth; |
//Send data to webView in Titanium | |
var timeGraph = Ti.UI.createWebView({ url:'graphs/timeGraph.html', touchEnabled:true }); | |
timeGraph.addEventListener('load', function(){ | |
Ti.App.fireEvent('graphCareer', series); | |
}); | |
<!-- Receive data in webView --> | |
<script type="text/javascript"> |
//On iOS the default is 'Search', On Android the default is empty | |
$.search.hintText = 'Deep Search' | |
if(OS_IOS){ | |
//Equals to tableRow.js new property | |
$.table.filterAttribute="filter"; | |
} | |
if(OS_ANDROID){ |