Remove unused functions, libs, imports, etc for externals
This commit is contained in:
parent
73c75b7a79
commit
2b9926d397
Binary file not shown.
|
@ -1,68 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/change"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/list_selector"
|
||||
android:orientation="horizontal"
|
||||
android:padding="5dip" >
|
||||
|
||||
<!-- ListRow Left Thumbnail image -->
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/thumbnail"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_marginRight="5dip"
|
||||
android:background="@drawable/image_bg"
|
||||
android:padding="3dip" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/avatar"
|
||||
android:layout_width="60dip"
|
||||
android:layout_height="60dip"
|
||||
android:gravity="center"
|
||||
android:src="@drawable/ic_github" />
|
||||
</LinearLayout>
|
||||
<!-- Main Commit Content -->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/committer"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dip"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:text="GitHub Committer"
|
||||
android:textColor="#040404"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold"
|
||||
android:typeface="sans" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/committer"
|
||||
android:layout_marginTop="2dip"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:text="GitHub Commit Message"
|
||||
android:textColor="#343434"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<!-- Right Date -->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/date"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignTop="@id/thumbnail"
|
||||
android:layout_marginRight="5dip"
|
||||
android:gravity="right"
|
||||
android:text="January 25, 2012"
|
||||
android:textColor="#10bcc9"
|
||||
android:textSize="12sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</RelativeLayout>
|
|
@ -1,32 +0,0 @@
|
|||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/toast_layout_root"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:background="#50FFFFFF"
|
||||
android:orientation="horizontal"
|
||||
android:padding="5dp"
|
||||
android:alpha="0.5">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/image"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:adjustViewBounds="true"
|
||||
android:maxHeight="80dip"
|
||||
android:maxWidth="80dip" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toRightOf="@+id/image"
|
||||
android:layout_marginLeft="5dip"
|
||||
android:includeFontPadding="false"
|
||||
android:lineSpacingMultiplier="1.0"
|
||||
android:textColor="#000000"
|
||||
android:textSize="18dip"
|
||||
android:typeface="sans" />
|
||||
|
||||
</RelativeLayout>
|
|
@ -1,15 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_gravity="center"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<WebView
|
||||
android:id="@+id/webframe"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:scrollbars="none" />
|
||||
|
||||
</LinearLayout>
|
|
@ -17,7 +17,6 @@
|
|||
<string name="missing_flash">The Dreamcast Flash is missing. A dump of the Dreamcast Flash is required for this emulator to work. Make sure the Flash file is named "dc_flash.bin" and is in %1$s/data/dc_flash.bin</string>
|
||||
<string name="require_bios">You have to provide a Dreamcast BIOS.</string>
|
||||
<string name="data_folder">The current data folder is assumed.</string>
|
||||
<string name="git_broken">GitHub Native is unavailable!</string>
|
||||
|
||||
<string name="folder_bios">Boot BIOS</string>
|
||||
<string name="folder_select">Select current folder</string>
|
||||
|
|
|
@ -5,7 +5,6 @@ import java.io.IOException;
|
|||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.pm.PackageManager.NameNotFoundException;
|
||||
import android.os.Bundle;
|
||||
import android.support.v4.app.Fragment;
|
||||
|
|
|
@ -115,32 +115,6 @@ public class Config {
|
|||
JNIdc.dreamtime(DreamTime.getDreamtime());
|
||||
}
|
||||
|
||||
public static void customNotify(Activity activity, int icon, int message) {
|
||||
LayoutInflater inflater = activity.getLayoutInflater();
|
||||
View layout = inflater.inflate(R.layout.toast_layout,
|
||||
(ViewGroup) activity.findViewById(R.id.toast_layout_root));
|
||||
|
||||
ImageView image = (ImageView) layout.findViewById(R.id.image);
|
||||
if (icon != -1) {
|
||||
image.setImageResource(icon);
|
||||
} else {
|
||||
image.setImageResource(R.drawable.ic_launcher);
|
||||
}
|
||||
|
||||
TextView text = (TextView) layout.findViewById(R.id.text);
|
||||
text.setText(activity.getString(message));
|
||||
|
||||
DisplayMetrics metrics = activity.getResources().getDisplayMetrics();
|
||||
final float scale = metrics.density;
|
||||
int toastPixels = (int) ((metrics.widthPixels * scale + 0.5f) / 14);
|
||||
|
||||
Toast toast = new Toast(activity);
|
||||
toast.setGravity(Gravity.BOTTOM, 0, toastPixels);
|
||||
toast.setDuration(Toast.LENGTH_SHORT);
|
||||
toast.setView(layout);
|
||||
toast.show();
|
||||
}
|
||||
|
||||
/**
|
||||
* Read the output of a shell command
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue