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.thu.ttlgm.component; | |
import android.content.Context; | |
import android.util.AttributeSet; | |
import android.view.MotionEvent; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.FrameLayout; | |
import android.widget.ImageView; |
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
public class CallbackExample { | |
public interface OnNetworkFinish{ | |
void OnFinish(String Data); | |
void OnFail(); | |
} | |
class GetGoogleData{ | |
List<OnNetworkFinish> mListener; | |
void getGoogleTitle(){ |
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
public static class ScaleToFitWidhtHeigthTransform implements Transformation { | |
private int mSize; | |
private boolean isHeightScale; | |
public ScaleToFitWidhtHeigthTransform(int size, boolean isHeightScale){ | |
mSize =size; | |
this.isHeightScale = isHeightScale; | |
} |
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.thu.ttlgm.fragment.vote; | |
import android.animation.ObjectAnimator; | |
import android.animation.ValueAnimator; | |
import android.app.Activity; | |
import android.app.DialogFragment; | |
import android.app.Fragment; | |
import android.content.Context; | |
import android.content.res.Resources; | |
import android.graphics.Bitmap; |
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
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context=".MainActivity"> | |
<ImageView | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@drawable/bkg_o_vote" |
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
<RelativeLayout | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
android:gravity="center" | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto"> | |
<com.makeramen.RoundedImageView | |
android:id="@+id/avatar" | |
android:layout_width="100dp" | |
android:layout_height="100dp" |
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.asus.feedbacksdk.util; | |
import java.io.IOException; | |
import java.io.StringReader; | |
import java.text.DecimalFormat; | |
import java.util.ArrayList; | |
import java.util.Date; | |
import java.util.List; | |
import java.util.Locale; |
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 int getScreenInches(Context context) { | |
WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); | |
Display display = wm.getDefaultDisplay(); | |
DisplayMetrics displayMetrics = new DisplayMetrics(); | |
display.getMetrics(displayMetrics); | |
int widthPixels = displayMetrics.widthPixels; | |
int heightPixels = displayMetrics.heightPixels; | |
float widthDpi = displayMetrics.xdpi; | |
float heightDpi = displayMetrics.ydpi; |
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
Intent showImageIntent = new Intent(Intent.ACTION_VIEW); | |
if (uri != null) { | |
showImageIntent.setDataAndType(uri, "image/*"); | |
} else { | |
showImageIntent.setDataAndType(Uri.parse("file://" + dataPath), "image/*"); | |
} | |
showImageIntent.setClassName("com.asus.gallery", "com.asus.gallery.app.EPhoto"); | |
showImageIntent.putExtra("launch-from-camera", true); |
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
this.wl = this.a("GoogleAnalytics", "4.0", VERSION.RELEASE, an.a(Locale.getDefault()), Build.MODEL, Build.ID); | |
String a(String var1, String var2, String var3, String var4, String var5, String var6) { | |
return String.format("%s/%s (Linux; U; Android %s; %s; %s Build/%s)", new Object[]{var1, var2, var3, var4, var5, var6}); | |
} | |
public static String a(Locale var0) { | |
if(var0 == null) { | |
return null; | |
} else if(TextUtils.isEmpty(var0.getLanguage())) { |
OlderNewer