code string | repo_name string | path string | language string | license string | size int64 |
|---|---|---|---|---|---|
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | zxf-18-test | src/com/ch_linghu/fanfoudroid/fanfou/RetweetDetails.java | Java | asf20 | 5,531 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | zxf-18-test | src/com/ch_linghu/fanfoudroid/fanfou/Configuration.java | Java | asf20 | 10,823 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | zxf-18-test | src/com/ch_linghu/fanfoudroid/fanfou/Paging.java | Java | asf20 | 3,505 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | zxf-18-test | src/com/ch_linghu/fanfoudroid/fanfou/Trends.java | Java | asf20 | 5,799 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | zxf-18-test | src/com/ch_linghu/fanfoudroid/fanfou/Trend.java | Java | asf20 | 3,047 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | zxf-18-test | src/com/ch_linghu/fanfoudroid/fanfou/QueryResult.java | Java | asf20 | 5,759 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | zxf-18-test | src/com/ch_linghu/fanfoudroid/fanfou/Weibo.java | Java | asf20 | 60,114 |
/*
* UserObjectWapper.java created on 2010-7-28 上午08:48:35 by bwl (Liu Daoru)
*/
package com.ch_linghu.fanfoudroid.fanfou;
import java.io.Serializable;
import java.util.List;
/**
* 对User对象列表进行的包装,以支持cursor相关信息传递
*
* @author liudaoru - daoru at sina.com.cn
*/
public class UserWapper implements Se... | zxf-18-test | src/com/ch_linghu/fanfoudroid/fanfou/UserWapper.java | Java | asf20 | 1,286 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | zxf-18-test | src/com/ch_linghu/fanfoudroid/fanfou/Photo.java | Java | asf20 | 3,073 |
/*
Copyright (c) 2007-2009
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following discla... | zxf-18-test | src/com/ch_linghu/fanfoudroid/fanfou/Query.java | Java | asf20 | 6,257 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | zxf-18-test | src/com/ch_linghu/fanfoudroid/fanfou/WeiboResponse.java | Java | asf20 | 8,202 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | zxf-18-test | src/com/ch_linghu/fanfoudroid/fanfou/SavedSearch.java | Java | asf20 | 4,541 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | zxf-18-test | src/com/ch_linghu/fanfoudroid/fanfou/DirectMessage.java | Java | asf20 | 6,727 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | zxf-18-test | src/com/ch_linghu/fanfoudroid/fanfou/WeiboSupport.java | Java | asf20 | 2,420 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | zxf-18-test | src/com/ch_linghu/fanfoudroid/fanfou/User.java | Java | asf20 | 22,419 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | zxf-18-test | src/com/ch_linghu/fanfoudroid/fanfou/RefuseError.java | Java | asf20 | 4,216 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | zxf-18-test | src/com/ch_linghu/fanfoudroid/fanfou/Status.java | Java | asf20 | 11,959 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | zxf-18-test | src/com/ch_linghu/fanfoudroid/fanfou/IDs.java | Java | asf20 | 4,386 |
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | zxf-18-test | src/com/ch_linghu/fanfoudroid/fanfou/RateLimitStatus.java | Java | asf20 | 3,814 |
package com.ch_linghu.fanfoudroid;
import java.util.ArrayList;
import java.util.List;
import android.database.Cursor;
import android.os.Bundle;
import com.ch_linghu.fanfoudroid.data.Tweet;
import com.ch_linghu.fanfoudroid.db.StatusTable;
import com.ch_linghu.fanfoudroid.fanfou.Status;
import com.ch_linghu.fanfoudroi... | zxf-18-test | src/com/ch_linghu/fanfoudroid/BrowseActivity.java | Java | asf20 | 2,120 |
package com.ch_linghu.fanfoudroid.data2;
public class Photo {
private String thumburl;
private String imageurl;
private String largeurl;
public Photo() {
}
public String getThumburl() {
return thumburl;
}
public void setThumburl(String thumburl) {
this.thumburl = thumburl;
}
public String getImageurl... | zxf-18-test | src/com/ch_linghu/fanfoudroid/data2/Photo.java | Java | asf20 | 702 |
package com.ch_linghu.fanfoudroid.data2;
import java.util.Date;
public class User {
private String id;
private String name;
private String screen_name;
private String location;
private String desription;
private String profile_image_url;
private String url;
private boolean isProtected;
private int friends_co... | zxf-18-test | src/com/ch_linghu/fanfoudroid/data2/User.java | Java | asf20 | 3,686 |
package com.ch_linghu.fanfoudroid.data2;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
public class DataUtils {
static SimpleDateFormat sdf = new SimpleDateFormat(
"EEE MMM dd HH:mm:ss z yyyy", Locale.US);
public st... | zxf-18-test | src/com/ch_linghu/fanfoudroid/data2/DataUtils.java | Java | asf20 | 531 |
package com.ch_linghu.fanfoudroid.data2;
import java.util.Date;
public class Status {
private Date created_at;
private String id;
private String text;
private String source;
private boolean truncated;
private String in_reply_to_status_id;
private String in_reply_to_user_id;
private boolean favorited;
privat... | zxf-18-test | src/com/ch_linghu/fanfoudroid/data2/Status.java | Java | asf20 | 3,510 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | zxf-18-test | src/com/ch_linghu/fanfoudroid/app/ImageManager.java | Java | asf20 | 13,800 |
package com.ch_linghu.fanfoudroid.app;
import android.graphics.Bitmap;
import android.widget.ImageView;
import com.ch_linghu.fanfoudroid.TwitterApplication;
import com.ch_linghu.fanfoudroid.app.LazyImageLoader.ImageLoaderCallback;
public class SimpleImageLoader {
public static void display(final ImageView imageVie... | zxf-18-test | src/com/ch_linghu/fanfoudroid/app/SimpleImageLoader.java | Java | asf20 | 789 |
package com.ch_linghu.fanfoudroid.app;
import java.lang.Thread.State;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.TimeUnit;
import android.graphi... | zxf-18-test | src/com/ch_linghu/fanfoudroid/app/LazyImageLoader.java | Java | asf20 | 5,467 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | zxf-18-test | src/com/ch_linghu/fanfoudroid/app/Preferences.java | Java | asf20 | 2,768 |
package com.ch_linghu.fanfoudroid.app;
import java.util.HashMap;
import android.graphics.Bitmap;
public class MemoryImageCache implements ImageCache {
private HashMap<String, Bitmap> mCache;
public MemoryImageCache() {
mCache = new HashMap<String, Bitmap>();
}
@Override
public Bitmap get(Str... | zxf-18-test | src/com/ch_linghu/fanfoudroid/app/MemoryImageCache.java | Java | asf20 | 785 |
package com.ch_linghu.fanfoudroid.app;
import android.text.Spannable;
import android.text.method.LinkMovementMethod;
import android.text.method.MovementMethod;
import android.view.MotionEvent;
import android.widget.TextView;
public class TestMovementMethod extends LinkMovementMethod {
private double mY;
... | zxf-18-test | src/com/ch_linghu/fanfoudroid/app/TestMovementMethod.java | Java | asf20 | 1,229 |
package com.ch_linghu.fanfoudroid.app;
import android.graphics.Bitmap;
import com.ch_linghu.fanfoudroid.R;
import com.ch_linghu.fanfoudroid.TwitterApplication;
public interface ImageCache {
public static Bitmap mDefaultBitmap = ImageManager
.drawableToBitmap(TwitterApplication.mContext.getResources()
... | zxf-18-test | src/com/ch_linghu/fanfoudroid/app/ImageCache.java | Java | asf20 | 457 |
package com.ch_linghu.fanfoudroid.app;
import android.app.Activity;
import android.content.Intent;
import android.widget.Toast;
import com.ch_linghu.fanfoudroid.LoginActivity;
import com.ch_linghu.fanfoudroid.R;
import com.ch_linghu.fanfoudroid.fanfou.RefuseError;
import com.ch_linghu.fanfoudroid.http.HttpAuthExcepti... | zxf-18-test | src/com/ch_linghu/fanfoudroid/app/ExceptionHandler.java | Java | asf20 | 1,794 |
package com.ch_linghu.fanfoudroid;
import java.util.ArrayList;
import java.util.List;
import android.app.ActivityManager;
import android.app.ActivityManager.RunningServiceInfo;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import and... | zxf-18-test | src/com/ch_linghu/fanfoudroid/FanfouWidget.java | Java | asf20 | 8,139 |
package com.ch_linghu.fanfoudroid;
import java.text.MessageFormat;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.ContentValues;
import android.content.DialogInterface;
import android.content.Intent;
import a... | zxf-18-test | src/com/ch_linghu/fanfoudroid/ProfileActivity.java | Java | asf20 | 20,034 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | zxf-18-test | src/com/ch_linghu/fanfoudroid/WriteActivity.java | Java | asf20 | 24,239 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | zxf-18-test | src/com/ch_linghu/fanfoudroid/FavoritesActivity.java | Java | asf20 | 4,647 |
package com.ch_linghu.fanfoudroid;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.ComponentName;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager.NameNotFoundException;
import an... | zxf-18-test | src/com/ch_linghu/fanfoudroid/AboutActivity.java | Java | asf20 | 2,485 |
package com.ch_linghu.fanfoudroid.dao;
import java.util.ArrayList;
import java.util.List;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* Database Helper
*
* @see SQLiteDatabase
*/
public ... | zxf-18-test | src/com/ch_linghu/fanfoudroid/dao/SQLiteTemplate.java | Java | asf20 | 4,913 |
package com.ch_linghu.fanfoudroid.dao;
import java.util.List;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.text.TextUtils;
import android.util.Log;
import com.ch_linghu.fanfoudroid.dao.SQLiteTemplat... | zxf-18-test | src/com/ch_linghu/fanfoudroid/dao/StatusDAO.java | Java | asf20 | 9,581 |
package com.ch_linghu.fanfoudroid.task;
public enum TaskResult {
OK, FAILED, CANCELLED,
NOT_FOLLOWED_ERROR, IO_ERROR, AUTH_ERROR
} | zxf-18-test | src/com/ch_linghu/fanfoudroid/task/TaskResult.java | Java | asf20 | 134 |
package com.ch_linghu.fanfoudroid.task;
import android.app.ProgressDialog;
import android.content.Context;
import android.util.Log;
import android.widget.Toast;
import com.ch_linghu.fanfoudroid.ui.base.WithHeaderActivity;
public abstract class TaskFeedback {
private static TaskFeedback _instance = null;
public st... | zxf-18-test | src/com/ch_linghu/fanfoudroid/task/TaskFeedback.java | Java | asf20 | 3,972 |
package com.ch_linghu.fanfoudroid.task;
public abstract class TaskAdapter implements TaskListener {
public abstract String getName();
public void onPreExecute(GenericTask task) {
};
public void onPostExecute(GenericTask task, TaskResult result) {
};
public void onProgressUpdate(GenericTask task, Object param... | zxf-18-test | src/com/ch_linghu/fanfoudroid/task/TaskAdapter.java | Java | asf20 | 380 |
package com.ch_linghu.fanfoudroid.task;
import android.util.Log;
import com.ch_linghu.fanfoudroid.TwitterApplication;
import com.ch_linghu.fanfoudroid.data.Tweet;
import com.ch_linghu.fanfoudroid.db.StatusTable;
import com.ch_linghu.fanfoudroid.http.HttpException;
import com.ch_linghu.fanfoudroid.ui.base.BaseActivity... | zxf-18-test | src/com/ch_linghu/fanfoudroid/task/TweetCommonTask.java | Java | asf20 | 2,875 |
package com.ch_linghu.fanfoudroid.task;
import java.util.HashMap;
import org.json.JSONException;
import com.ch_linghu.fanfoudroid.http.HttpException;
/**
* 暂未使用,待观察是否今后需要此类
*
* @author lds
*
*/
public class TaskParams {
private HashMap<String, Object> params = null;
public TaskParams() {
params = new H... | zxf-18-test | src/com/ch_linghu/fanfoudroid/task/TaskParams.java | Java | asf20 | 3,044 |
package com.ch_linghu.fanfoudroid.task;
public interface TaskListener {
String getName();
void onPreExecute(GenericTask task);
void onPostExecute(GenericTask task, TaskResult result);
void onProgressUpdate(GenericTask task, Object param);
void onCancelled(GenericTask task);
}
| zxf-18-test | src/com/ch_linghu/fanfoudroid/task/TaskListener.java | Java | asf20 | 287 |
package com.ch_linghu.fanfoudroid.task;
import java.util.Observable;
import java.util.Observer;
import android.os.AsyncTask;
import android.util.Log;
import android.widget.Toast;
import com.ch_linghu.fanfoudroid.TwitterApplication;
import com.ch_linghu.fanfoudroid.ui.module.Feedback;
public abstract class GenericTa... | zxf-18-test | src/com/ch_linghu/fanfoudroid/task/GenericTask.java | Java | asf20 | 2,559 |
package com.ch_linghu.fanfoudroid.task;
import java.util.Observable;
import java.util.Observer;
import android.util.Log;
public class TaskManager extends Observable {
private static final String TAG = "TaskManager";
public static final Integer CANCEL_ALL = 1;
public void cancelAll() {
Log.d(TAG, "All task Can... | zxf-18-test | src/com/ch_linghu/fanfoudroid/task/TaskManager.java | Java | asf20 | 451 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | zxf-18-test | src/com/ch_linghu/fanfoudroid/WriteDmActivity.java | Java | asf20 | 12,345 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | zxf-18-test | src/com/ch_linghu/fanfoudroid/TwitterActivity.java | Java | asf20 | 6,852 |
package com.ch_linghu.fanfoudroid;
import java.util.ArrayList;
import java.util.List;
import android.app.ActivityManager;
import android.app.ActivityManager.RunningServiceInfo;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import and... | zxf-18-test | src/com/ch_linghu/fanfoudroid/FanfouWidgetSmall.java | Java | asf20 | 8,339 |
package com.ch_linghu.fanfoudroid;
import java.text.MessageFormat;
import java.util.List;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ListView;
import com.ch_linghu.fanfoudroid.fanfou.Paging;
import com.ch_linghu.fanfoudroid.http.HttpException;
import com.ch_linghu.fanfoudroid.ui.b... | zxf-18-test | src/com/ch_linghu/fanfoudroid/FollowersActivity.java | Java | asf20 | 2,637 |
package com.ch_linghu.fanfoudroid;
import java.util.ArrayList;
import java.util.List;
import android.app.SearchManager;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.KeyEvent;
import android.view.Lay... | zxf-18-test | src/com/ch_linghu/fanfoudroid/SearchActivity.java | Java | asf20 | 11,514 |
package com.ch_linghu.fanfoudroid.ui.module;
import java.util.ArrayList;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
impor... | zxf-18-test | src/com/ch_linghu/fanfoudroid/ui/module/TweetArrayAdapter.java | Java | asf20 | 5,626 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.widget.ListAdapter;
public interface TweetAdapter extends ListAdapter {
void refresh();
}
| zxf-18-test | src/com/ch_linghu/fanfoudroid/ui/module/TweetAdapter.java | Java | asf20 | 153 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.app.Activity;
import android.view.MotionEvent;
import com.ch_linghu.fanfoudroid.BrowseActivity;
import com.ch_linghu.fanfoudroid.MentionActivity;
import com.ch_linghu.fanfoudroid.R;
import com.ch_linghu.fanfoudroid.TwitterActivity;
/**
* MyActivityFlipper ... | zxf-18-test | src/com/ch_linghu/fanfoudroid/ui/module/MyActivityFlipper.java | Java | asf20 | 1,958 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.graphics.Color;
import android.text.Editable;
import android.text.InputFilter;
import android.text.Selection;
import android.text.TextWatcher;
import android.view.View.OnKeyListener;
import android.widget.EditText;
import android.widget.TextView;
... | zxf-18-test | src/com/ch_linghu/fanfoudroid/ui/module/TweetEdit.java | Java | asf20 | 2,457 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.content.Context;
import android.view.GestureDetector.SimpleOnGestureListener;
import android.view.MotionEvent;
public interface Widget {
Context getContext();
// TEMP
public static interface OnGestureListener {
/**
* @param e1
* The fi... | zxf-18-test | src/com/ch_linghu/fanfoudroid/ui/module/Widget.java | Java | asf20 | 1,270 |
package com.ch_linghu.fanfoudroid.ui.module;
import com.ch_linghu.fanfoudroid.R;
import android.app.Activity;
import android.util.Log;
import android.view.GestureDetector;
import android.view.GestureDetector.SimpleOnGestureListener;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.O... | zxf-18-test | src/com/ch_linghu/fanfoudroid/ui/module/FlingGestureListener.java | Java | asf20 | 4,028 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.AbsListView;
import android.widget.ListView;
public class MyListView extends ListView implements ListView.OnScrollListener {
private int mSc... | zxf-18-test | src/com/ch_linghu/fanfoudroid/ui/module/MyListView.java | Java | asf20 | 1,552 |
package com.ch_linghu.fanfoudroid.ui.module;
public interface IFlipper {
void showNext();
void showPrevious();
}
| zxf-18-test | src/com/ch_linghu/fanfoudroid/ui/module/IFlipper.java | Java | asf20 | 117 |
package com.ch_linghu.fanfoudroid.ui.module;
import java.util.ArrayList;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.graphic... | zxf-18-test | src/com/ch_linghu/fanfoudroid/ui/module/UserArrayAdapter.java | Java | asf20 | 9,914 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | zxf-18-test | src/com/ch_linghu/fanfoudroid/ui/module/MenuDialog.java | Java | asf20 | 6,622 |
/**
*
*/
package com.ch_linghu.fanfoudroid.ui.module;
import android.content.Context;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import... | zxf-18-test | src/com/ch_linghu/fanfoudroid/ui/module/UserCursorAdapter.java | Java | asf20 | 3,612 |
package com.ch_linghu.fanfoudroid.ui.module;
public interface Feedback {
public boolean isAvailable();
public void start(CharSequence text);
public void cancel(CharSequence text);
public void success(CharSequence text);
public void failed(CharSequence text);
public void update(Object arg0);
public void se... | zxf-18-test | src/com/ch_linghu/fanfoudroid/ui/module/Feedback.java | Java | asf20 | 361 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.res.Resources;
import android.graphics.Color;
import android.text.Layout;
import android.text.Spannable;
import android.text.Spanned;
import android.text.style.Foregrou... | zxf-18-test | src/com/ch_linghu/fanfoudroid/ui/module/MyTextView.java | Java | asf20 | 3,502 |
package com.ch_linghu.fanfoudroid.ui.module;
import java.util.ArrayList;
import java.util.List;
import android.app.Activity;
import android.content.Intent;
import android.util.Log;
import android.view.Gravity;
import android.widget.ImageView;
import android.widget.Toast;
import android.widget.ViewSwitcher.ViewFactory... | zxf-18-test | src/com/ch_linghu/fanfoudroid/ui/module/ActivityFlipper.java | Java | asf20 | 6,954 |
package com.ch_linghu.fanfoudroid.ui.module;
import java.util.List;
import android.app.Activity;
import android.content.Context;
import android.util.Log;
import android.view.View;
import android.widget.ProgressBar;
import android.widget.Toast;
import com.ch_linghu.fanfoudroid.R;
public class SimpleFeedback implemen... | zxf-18-test | src/com/ch_linghu/fanfoudroid/ui/module/SimpleFeedback.java | Java | asf20 | 2,632 |
/**
*
*/
package com.ch_linghu.fanfoudroid.ui.module;
import java.text.ParseException;
import java.util.Date;
import android.content.Context;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import ... | zxf-18-test | src/com/ch_linghu/fanfoudroid/ui/module/TweetCursorAdapter.java | Java | asf20 | 6,786 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.AnimationDrawable;
import android.text.TextPaint;
import android.util.Log;
import android.view.View;
import android.view.animation.Animation;
import ... | zxf-18-test | src/com/ch_linghu/fanfoudroid/ui/module/NavBar.java | Java | asf20 | 8,578 |
package com.ch_linghu.fanfoudroid.ui.module;
import android.content.Context;
import android.util.Log;
public class FeedbackFactory {
private static final String TAG = "FeedbackFactory";
public static enum FeedbackType {
DIALOG, PROGRESS, REFRESH
};
public static Feedback create(Context context, FeedbackType t... | zxf-18-test | src/com/ch_linghu/fanfoudroid/ui/module/FeedbackFactory.java | Java | asf20 | 1,165 |
package com.ch_linghu.fanfoudroid.ui.base;
import android.app.Activity;
import android.content.Intent;
import android.graphics.drawable.AnimationDrawable;
import android.graphics.drawable.BitmapDrawable;
import android.text.TextPaint;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
im... | zxf-18-test | src/com/ch_linghu/fanfoudroid/ui/base/WithHeaderActivity.java | Java | asf20 | 8,671 |
package com.ch_linghu.fanfoudroid.ui.base;
import java.util.ArrayList;
import java.util.List;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ListView;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.ch_linghu.fanfoudroid.R;... | zxf-18-test | src/com/ch_linghu/fanfoudroid/ui/base/UserArrayBaseActivity.java | Java | asf20 | 8,557 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | zxf-18-test | src/com/ch_linghu/fanfoudroid/ui/base/UserCursorBaseActivity.java | Java | asf20 | 16,453 |
package com.ch_linghu.fanfoudroid.ui.base;
public interface Refreshable {
void doRetrieve();
}
| zxf-18-test | src/com/ch_linghu/fanfoudroid/ui/base/Refreshable.java | Java | asf20 | 97 |
package com.ch_linghu.fanfoudroid.ui.base;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import android.content.SharedPreferences;
import and... | zxf-18-test | src/com/ch_linghu/fanfoudroid/ui/base/BaseActivity.java | Java | asf20 | 9,412 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | zxf-18-test | src/com/ch_linghu/fanfoudroid/ui/base/TwitterCursorBaseActivity.java | Java | asf20 | 22,940 |
package com.ch_linghu.fanfoudroid.ui.base;
import android.app.ListActivity;
/**
* TODO: 准备重构现有的几个ListActivity
*
* 目前几个ListActivity存在的问题是 : 1. 因为要实现[刷新]这些功能, 父类设定了子类继承时必须要实现的方法,
* 而刷新/获取其实更多的时候可以理解成是ListView的层面, 这在于讨论到底是一个"可刷新的Activity"
* 还是一个拥有"可刷新的ListView"的Activity, 如果改成后者, 则只要在父类拥有一个实现了可刷新接口的ListView即可,
* 而... | zxf-18-test | src/com/ch_linghu/fanfoudroid/ui/base/BaseListActivity.java | Java | asf20 | 1,225 |
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | zxf-18-test | src/com/ch_linghu/fanfoudroid/ui/base/TwitterListBaseActivity.java | Java | asf20 | 9,447 |
package com.ch_linghu.fanfoudroid.ui.base;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.ContextMenu;
import andro... | zxf-18-test | src/com/ch_linghu/fanfoudroid/ui/base/UserListBaseActivity.java | Java | asf20 | 14,085 |
/***
Copyright (c) 2008-2009 CommonsWare, LLC
Portions (c) 2009 Google, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by ap... | zxf-18-test | src/com/commonsware/cwac/sacklist/SackOfViewsAdapter.java | Java | asf20 | 4,702 |
/***
Copyright (c) 2008-2009 CommonsWare, LLC
Portions (c) 2009 Google, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by ap... | zxf-18-test | src/com/commonsware/cwac/merge/MergeAdapter.java | Java | asf20 | 8,691 |
package com.hlidskialf.android.hardware;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
public class ShakeListener implements SensorEventListener {
private static final int FORCE... | zxf-18-test | src/com/hlidskialf/android/hardware/ShakeListener.java | Java | asf20 | 2,826 |
/* Javadoc 样式表 */
/* 在此处定义颜色、字体和其他样式属性以覆盖默认值 */
/* 页面背景颜色 */
body { background-color: #FFFFFF; color:#000000 }
/* 标题 */
h1 { font-size: 145% }
/* 表格颜色 */
.TableHeadingColor { background: #CCCCFF; color:#000000 } /* 深紫色 */
.TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* 淡紫色 */
.TableRowColor ... | zxf-18-test | doc/stylesheet.css | CSS | asf20 | 1,370 |
<html>
<body>
<h2>Sample expressions</h2>
<ul>
<li>simple expression: <em>1+2</em>
<li>variable evaluation: <em>pi</em>
<li>function evaluation: <em>sin(0)</em>
<li>variable definition: <em>a=3.5</em>
<li>function definition: <em>f(x)=x^2-1</em>
<li>parentheses: <em>(1-x)^2</em>
</ul>
To enter an expression cointainin... | zxiyuancd-arity-calculator | assets/help.html | HTML | asf20 | 3,550 |
// Copyright (C) 2009-2010 Mihai Preda
package calculator;
import android.view.MotionEvent;
import android.view.VelocityTracker;
class TouchHandler {
static interface TouchHandlerInterface {
void onTouchDown(float x, float y);
void onTouchMove(float x, float y);
void onTouchUp(float x, fl... | zxiyuancd-arity-calculator | src/calculator/TouchHandler.java | Java | asf20 | 2,601 |
// Copyright (C) 2009 Mihai Preda
package calculator;
import android.view.ViewGroup;
import android.view.View;
import android.view.LayoutInflater;
import android.content.Context;
import android.widget.BaseAdapter;
import android.widget.TextView;
import arity.calculator.R;
class HistoryAdapter extends BaseAdapter {... | zxiyuancd-arity-calculator | src/calculator/HistoryAdapter.java | Java | asf20 | 1,757 |
// Copyright (C) 2009-2010 Mihai Preda
package calculator;
import android.graphics.Bitmap;
import android.os.Environment;
import android.os.Build;
import java.nio.ShortBuffer;
import java.io.*;
class Util {
public static final int SDK_VERSION = getSdkVersion();
private static int getSdkVersion() {
... | zxiyuancd-arity-calculator | src/calculator/Util.java | Java | asf20 | 2,124 |
// Copyright (C) 2009 Mihai Preda
package calculator;
import android.text.Editable;
import android.text.SpannableStringBuilder;
class CalculatorEditable extends SpannableStringBuilder {
static class Factory extends Editable.Factory {
public Editable newEditable(CharSequence source) {
retu... | zxiyuancd-arity-calculator | src/calculator/CalculatorEditable.java | Java | asf20 | 2,209 |
// Copyright (C) 2009 Mihai Preda
package calculator;
class Data {
float[] xs = new float[4];
float[] ys = new float[4];
int size = 0;
int allocSize = 4;
void swap(Data o) {
float savex[] = o.xs;
float savey[] = o.ys;
int ssize = o.size;
int salloc = o.allocSize;
... | zxiyuancd-arity-calculator | src/calculator/Data.java | Java | asf20 | 3,168 |
// Copyright (C) 2010 Mihai Preda
package calculator;
import android.view.MotionEvent;
class MotionEventWrapNew {
static int getPointerCount(MotionEvent event) {
return event.getPointerCount();
}
static float getX(MotionEvent event, int idx) {
return event.getX(idx);
}
s... | zxiyuancd-arity-calculator | src/calculator/MotionEventWrapNew.java | Java | asf20 | 407 |
package calculator;
class FPS {
private int drawCnt;
private long lastTime;
private int fps;
boolean incFrame() {
if (--drawCnt > 0) {
return false;
}
drawCnt = 100;
long now = System.currentTimeMillis();
fps = Math.round(100000f / (now - lastTime));... | zxiyuancd-arity-calculator | src/calculator/FPS.java | Java | asf20 | 426 |
// Copyright (C) 2009 Mihai Preda
package calculator;
import android.app.ListActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import arity.calculator.R;
public class ListDefs extends ListActivity {
p... | zxiyuancd-arity-calculator | src/calculator/ListDefs.java | Java | asf20 | 1,411 |
// Copyright (C) 2009 Mihai Preda
package calculator;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.widget.TextView;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.ArrayAdapter;
import android.widget... | zxiyuancd-arity-calculator | src/calculator/Calculator.java | Java | asf20 | 17,436 |
// Copyright (C) 2010 Mihai Preda
package calculator;
class ZoomTracker {
private float sx1, sy1, sx2, sy2;
private float initialDist;
private float initialValue;
float value;
float moveX, moveY;
void start(float value, float x1, float y1, float x2, float y2) {
sx1 = x1;
sy1 ... | zxiyuancd-arity-calculator | src/calculator/ZoomTracker.java | Java | asf20 | 1,500 |
// Copyright (C) 2009 Mihai Preda
package calculator;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
public class Help extends Activity {
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
WebView view = new WebView(this);
setContentView(v... | zxiyuancd-arity-calculator | src/calculator/Help.java | Java | asf20 | 394 |
// Copyright (C) 2009 Mihai Preda
package calculator;
import android.content.Context;
import java.io.*;
abstract class FileHandler {
private String fileName;
private Context context;
private int version;
boolean fileNotFound;
private DataInputStream openInput() throws IOException {
try {
r... | zxiyuancd-arity-calculator | src/calculator/FileHandler.java | Java | asf20 | 1,550 |
// Copyright (C) 2009 Mihai Preda
package calculator;
import android.content.Context;
import java.io.*;
import java.util.ArrayList;
import org.javia.arity.*;
class Defs extends FileHandler {
private static final int SIZE_LIMIT = 50;
ArrayList<String> lines = new ArrayList<String>();
private Symbols symbo... | zxiyuancd-arity-calculator | src/calculator/Defs.java | Java | asf20 | 1,181 |
package calculator;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import arity.calculator.R;
public class Settings extends PreferenceActivity {
@Override
public void onCreate(Bundle state) {
super.onCreate(state);
addPreferencesFromResource(R.xml.settings);
}
}
| zxiyuancd-arity-calculator | src/calculator/Settings.java | Java | asf20 | 319 |
// Copyright (C) 2009 Mihai Preda
package calculator;
import android.content.Context;
import java.io.*;
import java.util.ArrayList;
class History extends FileHandler {
private static final int SIZE_LIMIT = 30;
ArrayList<HistoryEntry> entries = new ArrayList<HistoryEntry>();
int pos;
HistoryEntry abov... | zxiyuancd-arity-calculator | src/calculator/History.java | Java | asf20 | 2,522 |
// Copyright (C) 2009-2010 Mihai Preda
package calculator;
import java.nio.ByteBuffer;
import java.nio.ShortBuffer;
import java.nio.ByteOrder;
import java.nio.IntBuffer;
import java.nio.FloatBuffer;
import javax.microedition.khronos.opengles.GL10;
import javax.microedition.khronos.opengles.GL11;
import org.javia.ar... | zxiyuancd-arity-calculator | src/calculator/Graph3d.java | Java | asf20 | 9,155 |