This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
protected void onScrollChanged(int l, int t, int oldl, int oldt) { | |
super.onScrollChanged(l, t, oldl, oldt); | |
WebTitle webTitle = mBrowser.getTabsActionBar().getTitle(); | |
if (t > oldt) { | |
Tracer.debug("SCROLL", "tbar = " + webTitle.getY() + " t height = " + webTitle.getHeight()); | |
if (-(webTitle.getY() - (t - oldt)) > webTitle.getHeight()) | |
webTitle.setTranslationY(-webTitle.getHeight()); | |
else | |
webTitle.setY(webTitle.getY() - (t - oldt)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="#ffff" > | |
<com.example.wwwithscrolltest.CustomScrollView | |
android:id="@+id/scroll" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" > |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.wwwithscrolltest; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.webkit.WebView; | |
import android.webkit.WebViewClient; | |
import android.widget.EditText; | |
public class MainActivity extends Activity { | |
WebView wv; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.wwwithscrolltest; | |
import android.content.Context; | |
import android.util.AttributeSet; | |
import android.util.Log; | |
import android.widget.EditText; | |
import android.widget.ScrollView; | |
public final class CustomScrollView extends ScrollView { | |
public EditText title; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.wwwithscrolltest; | |
import android.content.Context; | |
import android.content.res.Resources; | |
import android.graphics.Canvas; | |
import android.graphics.Matrix; | |
import android.graphics.Rect; | |
import android.util.AttributeSet; | |
import android.util.Log; | |
import android.util.TypedValue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.statist.grap; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.OutputStreamWriter; | |
import java.util.ArrayList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void sendInfoToServer(int serverId) { | |
sendCount = 0; | |
final File logFile = new File(Environment.getExternalStorageDirectory(), "/temp/statist/logs.txt"); | |
if (!logFile.exists()) | |
return; | |
final JSONArray jsonToSendArray = new JSONArray(); | |
try { | |
FileInputStream inputStream = new FileInputStream(Environment.getExternalStorageDirectory().getAbsolutePath() + "/temp/statist/logs.txt"); | |
if (inputStream != null) { | |
InputStreamReader inputStreamReader = new InputStreamReader(inputStream); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
class StatController extends Controller | |
{ | |
public $layout = '//layouts/clear'; | |
public function actionIndex() | |
{ | |
$ids = array(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.firepush.adnet | |
{ | |
/** | |
* ... | |
* @author marinat | |
*/ | |
import flash.external.ExtensionContext; | |
public class FirePushExtension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.firepush.adnet; | |
import com.adobe.fre.FREContext; | |
import com.adobe.fre.FREExtension; | |
public class FirePushExtension implements FREExtension { | |
@Override | |
public FREContext createContext(String arg0) { | |
return new FirePushContext(); | |
} |
OlderNewer