Commit 75eb6cd4 authored by fallenstardust's avatar fallenstardust

布局规范化

parent b0cd625c
...@@ -8,7 +8,7 @@ android { ...@@ -8,7 +8,7 @@ android {
applicationId "cn.garymb.ygomobile" applicationId "cn.garymb.ygomobile"
minSdkVersion 16 minSdkVersion 16
targetSdkVersion 26 targetSdkVersion 26
versionCode 330701024 versionCode 330701025
versionName "3.3.7" versionName "3.3.7"
flavorDimensions "versionCode" flavorDimensions "versionCode"
vectorDrawables.useSupportLibrary = true vectorDrawables.useSupportLibrary = true
......
package android.support.v7.widget; package android.support.v7.widget;
import android.support.v4.view.GestureDetectorCompat; import android.support.v4.view.GestureDetectorCompat;
import android.support.v7.widget.RecyclerView;
import android.view.GestureDetector; import android.view.GestureDetector;
import android.view.MotionEvent; import android.view.MotionEvent;
import android.view.View; import android.view.View;
......
...@@ -25,13 +25,11 @@ import java.io.IOException; ...@@ -25,13 +25,11 @@ import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.util.Map; import java.util.Map;
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.zip.ZipEntry; import java.util.zip.ZipEntry;
import java.util.zip.ZipFile; import java.util.zip.ZipFile;
import cn.garymb.ygomobile.Constants;
import cn.garymb.ygomobile.AppsSettings; import cn.garymb.ygomobile.AppsSettings;
import cn.garymb.ygomobile.Constants;
import cn.garymb.ygomobile.core.IrrlichtBridge; import cn.garymb.ygomobile.core.IrrlichtBridge;
import cn.garymb.ygomobile.lite.R; import cn.garymb.ygomobile.lite.R;
import cn.garymb.ygomobile.utils.BitmapUtil; import cn.garymb.ygomobile.utils.BitmapUtil;
......
package cn.garymb.ygomobile.ui.cards; package cn.garymb.ygomobile.ui.cards;
import android.app.ProgressDialog;
import android.os.Bundle; import android.os.Bundle;
import android.support.annotation.Nullable; import android.support.annotation.Nullable;
import android.support.v4.widget.DrawerLayout; import android.support.v4.widget.DrawerLayout;
......
...@@ -4,15 +4,14 @@ package cn.garymb.ygomobile.ui.cards; ...@@ -4,15 +4,14 @@ package cn.garymb.ygomobile.ui.cards;
import android.content.Context; import android.content.Context;
import android.graphics.Color; import android.graphics.Color;
import android.text.TextUtils; import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View; import android.view.View;
import android.view.View.OnClickListener; import android.view.View.OnClickListener;
import android.view.KeyEvent;
import android.view.inputmethod.InputMethodManager;
import android.view.inputmethod.EditorInfo; import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputMethodManager;
import android.widget.AdapterView; import android.widget.AdapterView;
import android.widget.Button; import android.widget.Button;
import android.widget.EditText; import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.Spinner; import android.widget.Spinner;
import android.widget.TextView; import android.widget.TextView;
import android.widget.TextView.OnEditorActionListener; import android.widget.TextView.OnEditorActionListener;
...@@ -21,15 +20,15 @@ import java.util.ArrayList; ...@@ -21,15 +20,15 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
import cn.garymb.ygomobile.AppsSettings; import cn.garymb.ygomobile.AppsSettings;
import cn.garymb.ygomobile.loader.ICardLoader;
import cn.garymb.ygomobile.lite.R; import cn.garymb.ygomobile.lite.R;
import cn.garymb.ygomobile.loader.ICardLoader;
import cn.garymb.ygomobile.ui.adapters.SimpleSpinnerAdapter; import cn.garymb.ygomobile.ui.adapters.SimpleSpinnerAdapter;
import cn.garymb.ygomobile.ui.adapters.SimpleSpinnerItem; import cn.garymb.ygomobile.ui.adapters.SimpleSpinnerItem;
import cn.garymb.ygomobile.ui.plus.DialogPlus; import cn.garymb.ygomobile.ui.plus.DialogPlus;
import ocgcore.data.CardSet;
import ocgcore.data.LimitList;
import ocgcore.LimitManager; import ocgcore.LimitManager;
import ocgcore.StringManager; import ocgcore.StringManager;
import ocgcore.data.CardSet;
import ocgcore.data.LimitList;
import ocgcore.enums.CardAttribute; import ocgcore.enums.CardAttribute;
import ocgcore.enums.CardCategory; import ocgcore.enums.CardCategory;
import ocgcore.enums.CardOt; import ocgcore.enums.CardOt;
......
...@@ -16,11 +16,10 @@ import android.widget.ListView; ...@@ -16,11 +16,10 @@ import android.widget.ListView;
import android.widget.TextView; import android.widget.TextView;
import android.widget.Toast; import android.widget.Toast;
import java.io.File; import java.io.File;
import cn.garymb.ygomobile.ui.activities.BaseActivity;
import cn.garymb.ygomobile.lite.R; import cn.garymb.ygomobile.lite.R;
import cn.garymb.ygomobile.ui.activities.BaseActivity;
public class FileActivity extends BaseActivity implements AdapterView.OnItemClickListener, AdapterView.OnItemLongClickListener public class FileActivity extends BaseActivity implements AdapterView.OnItemClickListener, AdapterView.OnItemLongClickListener
......
...@@ -11,7 +11,6 @@ import android.support.design.widget.NavigationView; ...@@ -11,7 +11,6 @@ import android.support.design.widget.NavigationView;
import android.support.v7.widget.DividerItemDecoration; import android.support.v7.widget.DividerItemDecoration;
import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.LinearLayoutManager;
import android.text.TextUtils; import android.text.TextUtils;
import android.util.Log;
import android.util.SparseArray; import android.util.SparseArray;
import android.view.Gravity; import android.view.Gravity;
import android.view.Menu; import android.view.Menu;
...@@ -23,7 +22,6 @@ import android.view.inputmethod.EditorInfo; ...@@ -23,7 +22,6 @@ import android.view.inputmethod.EditorInfo;
import android.widget.Button; import android.widget.Button;
import android.widget.EditText; import android.widget.EditText;
import android.widget.ListView; import android.widget.ListView;
import android.widget.ProgressBar;
import android.widget.Toast; import android.widget.Toast;
import com.base.bj.trpayjar.utils.TrPay; import com.base.bj.trpayjar.utils.TrPay;
......
...@@ -10,7 +10,6 @@ import android.os.Build; ...@@ -10,7 +10,6 @@ import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import android.support.annotation.NonNull; import android.support.annotation.NonNull;
import android.support.v4.app.ActivityCompat; import android.support.v4.app.ActivityCompat;
import android.view.WindowManager;
import java.io.IOException; import java.io.IOException;
...@@ -29,7 +28,8 @@ import cn.garymb.ygomobile.utils.NetUtils; ...@@ -29,7 +28,8 @@ import cn.garymb.ygomobile.utils.NetUtils;
import static cn.garymb.ygomobile.Constants.ACTION_RELOAD; import static cn.garymb.ygomobile.Constants.ACTION_RELOAD;
import static cn.garymb.ygomobile.Constants.NETWORK_IMAGE; import static cn.garymb.ygomobile.Constants.NETWORK_IMAGE;
import static cn.garymb.ygomobile.ui.home.ResCheckTask.*; import static cn.garymb.ygomobile.ui.home.ResCheckTask.ResCheckListener;
import static cn.garymb.ygomobile.ui.home.ResCheckTask.getDatapath;
public class MainActivity extends HomeActivity{ public class MainActivity extends HomeActivity{
private GameUriManager mGameUriManager; private GameUriManager mGameUriManager;
......
...@@ -4,8 +4,8 @@ package cn.garymb.ygomobile.utils; ...@@ -4,8 +4,8 @@ package cn.garymb.ygomobile.utils;
import android.content.Context; import android.content.Context;
import android.content.res.AssetManager; import android.content.res.AssetManager;
import android.os.Build; import android.os.Build;
import android.util.Log;
import android.text.TextUtils; import android.text.TextUtils;
import android.util.Log;
import java.io.Closeable; import java.io.Closeable;
import java.io.File; import java.io.File;
...@@ -22,6 +22,7 @@ public class IOUtils { ...@@ -22,6 +22,7 @@ public class IOUtils {
private static final String TAG = "ioUtils"; private static final String TAG = "ioUtils";
public static void close(Closeable closeable) { public static void close(Closeable closeable) {
Log.i("关了没","closeable的值"+ closeable);
if (closeable != null) { if (closeable != null) {
try { try {
closeable.close(); closeable.close();
......
package net.kk.xml; package net.kk.xml;
import net.kk.xml.annotations.XmlAttribute; import net.kk.xml.annotations.XmlAttribute;
import net.kk.xml.annotations.XmlIgnore;
import net.kk.xml.annotations.XmlElementText;
import net.kk.xml.annotations.XmlElement; import net.kk.xml.annotations.XmlElement;
import net.kk.xml.annotations.XmlElementText;
import net.kk.xml.annotations.XmlIgnore;
import java.lang.reflect.Constructor; import java.lang.reflect.Constructor;
import java.lang.reflect.Field; import java.lang.reflect.Field;
......
...@@ -3,9 +3,9 @@ package net.kk.xml; ...@@ -3,9 +3,9 @@ package net.kk.xml;
import net.kk.xml.adapter.XmlConstructorAdapter; import net.kk.xml.adapter.XmlConstructorAdapter;
import net.kk.xml.adapter.XmlTextAdapter; import net.kk.xml.adapter.XmlTextAdapter;
import net.kk.xml.annotations.XmlAttribute; import net.kk.xml.annotations.XmlAttribute;
import net.kk.xml.annotations.XmlElement;
import net.kk.xml.annotations.XmlElementText; import net.kk.xml.annotations.XmlElementText;
import net.kk.xml.bean.TagObject; import net.kk.xml.bean.TagObject;
import net.kk.xml.annotations.XmlElement;
import java.lang.reflect.AnnotatedElement; import java.lang.reflect.AnnotatedElement;
import java.lang.reflect.Field; import java.lang.reflect.Field;
......
package net.kk.xml; package net.kk.xml;
import net.kk.xml.bean.AttributeObject;
import net.kk.xml.adapter.XmlTextAdapter; import net.kk.xml.adapter.XmlTextAdapter;
import net.kk.xml.annotations.XmlElement; import net.kk.xml.annotations.XmlElement;
import net.kk.xml.bean.AttributeObject;
import net.kk.xml.bean.TagObject; import net.kk.xml.bean.TagObject;
import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParser;
......
package ocgcore; package ocgcore;
import android.text.TextUtils;
import android.util.Log; import android.util.Log;
import java.io.BufferedReader; import java.io.BufferedReader;
...@@ -12,11 +11,10 @@ import java.util.List; ...@@ -12,11 +11,10 @@ import java.util.List;
import cn.garymb.ygomobile.AppsSettings; import cn.garymb.ygomobile.AppsSettings;
import cn.garymb.ygomobile.utils.IOUtils; import cn.garymb.ygomobile.utils.IOUtils;
import cn.garymb.ygomobile.utils.MD5Util;
import ocgcore.data.LimitList; import ocgcore.data.LimitList;
import static cn.garymb.ygomobile.Constants.CORE_LIMIT_PATH;
import static cn.garymb.ygomobile.Constants.CORE_CUSTOM_LIMIT_PATH; import static cn.garymb.ygomobile.Constants.CORE_CUSTOM_LIMIT_PATH;
import static cn.garymb.ygomobile.Constants.CORE_LIMIT_PATH;
public class LimitManager { public class LimitManager {
private static LimitManager sManager = new LimitManager(); private static LimitManager sManager = new LimitManager();
......
...@@ -56,6 +56,7 @@ public class CardManager { ...@@ -56,6 +56,7 @@ public class CardManager {
}); });
//读取全部卡片 //读取全部卡片
if (files != null) { if (files != null) {
Log.i("数量","数量" + files.length);
for (File file : files) { for (File file : files) {
final String path = file.getAbsolutePath(); final String path = file.getAbsolutePath();
String md5 = MD5Util.getFileMD5(path); String md5 = MD5Util.getFileMD5(path);
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical"> android:orientation="vertical">
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<menu xmlns:tools="http://schemas.android.com/tools" <menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"> xmlns:app="http://schemas.android.com/apk/res-auto">
<item <item
android:id="@+id/action_search" android:id="@+id/action_search"
......
package tests; package tests;
import org.junit.Test;
import java.util.Locale;
public class A { public class A {
/*@Test /*@Test
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment