From a6edd76511c9c74ad71810f0edbbbdbccc0cc4e3 Mon Sep 17 00:00:00 2001 From: maning <154292322@qq.com> Date: Thu, 15 Oct 2020 21:01:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E9=97=B4=E7=94=B5=E8=AF=9D=E5=8C=BA?= =?UTF-8?q?=E5=8F=B7=E5=88=97=E8=A1=A8=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/AndroidManifest.xml | 2 +- .../rolltools/WorldPhoneCodeResultBean.java | 58 ++++++++ .../http/rolltools/APIRolltoolsService.java | 8 + .../gankmm/http/rolltools/RolltoolsApi.java | 9 ++ .../gankmm/ui/activity/MoreActivity.java | 6 +- .../ui/activity/tools/BankCardActivity.java | 12 +- .../ui/activity/tools/DictionaryActivity.java | 12 +- .../activity/tools/IDCardQueryActivity.java | 12 +- .../ui/activity/tools/IPQueryActivity.java | 17 +-- .../ui/activity/tools/IdiomActivity.java | 137 ----------------- .../activity/tools/PhoneAddressActivity.java | 12 +- .../ui/activity/tools/PostCodeActivity.java | 12 +- .../tools/WorldPhoneCodeActivity.java | 111 ++++++++++++++ ...er.java => RecycleCommonQueryAdapter.java} | 13 +- .../gankmm/ui/adapter/RecycleMoreAdapter.java | 50 ++----- .../ui/adapter/RecycleMoreItemAdapter.java | 140 +++++++++--------- .../gank_icon_tools_rubbish.png | Bin 3064 -> 0 bytes .../res/drawable/gank_icon_tools_baiyin.xml | 30 ---- .../res/drawable/gank_icon_tools_bank.xml | 27 ---- .../res/drawable/gank_icon_tools_gold.xml | 88 ----------- .../drawable/gank_icon_tools_guijinshu.xml | 136 ----------------- .../res/drawable/gank_icon_tools_guzhi.xml | 44 ------ .../res/drawable/gank_icon_tools_money.xml | 56 ------- .../drawable/gank_icon_tools_phone_code.xml | 18 +++ .../res/drawable/gank_icon_tools_rubbish.xml | 9 ++ app/src/main/res/layout/activity_idiom.xml | 56 ------- .../res/layout/activity_world_phone_code.xml | 15 ++ ...em_mob_query.xml => item_common_query.xml} | 0 .../main/res/layout/item_common_query2.xml | 28 ++++ 29 files changed, 392 insertions(+), 726 deletions(-) create mode 100644 app/src/main/java/com/maning/gankmm/bean/rolltools/WorldPhoneCodeResultBean.java delete mode 100644 app/src/main/java/com/maning/gankmm/ui/activity/tools/IdiomActivity.java create mode 100644 app/src/main/java/com/maning/gankmm/ui/activity/tools/WorldPhoneCodeActivity.java rename app/src/main/java/com/maning/gankmm/ui/adapter/{RecycleMobQueryAdapter.java => RecycleCommonQueryAdapter.java} (78%) delete mode 100644 app/src/main/res/drawable-xxhdpi/gank_icon_tools_rubbish.png delete mode 100644 app/src/main/res/drawable/gank_icon_tools_baiyin.xml delete mode 100644 app/src/main/res/drawable/gank_icon_tools_bank.xml delete mode 100644 app/src/main/res/drawable/gank_icon_tools_gold.xml delete mode 100644 app/src/main/res/drawable/gank_icon_tools_guijinshu.xml delete mode 100644 app/src/main/res/drawable/gank_icon_tools_guzhi.xml delete mode 100644 app/src/main/res/drawable/gank_icon_tools_money.xml create mode 100644 app/src/main/res/drawable/gank_icon_tools_phone_code.xml create mode 100644 app/src/main/res/drawable/gank_icon_tools_rubbish.xml delete mode 100644 app/src/main/res/layout/activity_idiom.xml create mode 100644 app/src/main/res/layout/activity_world_phone_code.xml rename app/src/main/res/layout/{item_mob_query.xml => item_common_query.xml} (100%) create mode 100644 app/src/main/res/layout/item_common_query2.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index f481f5c..2f474f6 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -252,7 +252,7 @@ - + diff --git a/app/src/main/java/com/maning/gankmm/bean/rolltools/WorldPhoneCodeResultBean.java b/app/src/main/java/com/maning/gankmm/bean/rolltools/WorldPhoneCodeResultBean.java new file mode 100644 index 0000000..eae9811 --- /dev/null +++ b/app/src/main/java/com/maning/gankmm/bean/rolltools/WorldPhoneCodeResultBean.java @@ -0,0 +1,58 @@ +package com.maning.gankmm.bean.rolltools; + +import java.util.List; + +/** + * @author : maning + * @date : 2020-10-15 + * @desc : + */ +public class WorldPhoneCodeResultBean extends RollToolsBaseBean { + + + private List data; + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public static class DataEntity { + /** + * zhCn : 中国 + * enUs : China + * phoneCode : +86 + */ + + private String zhCn; + private String enUs; + private String phoneCode; + + public String getZhCn() { + return zhCn; + } + + public void setZhCn(String zhCn) { + this.zhCn = zhCn; + } + + public String getEnUs() { + return enUs; + } + + public void setEnUs(String enUs) { + this.enUs = enUs; + } + + public String getPhoneCode() { + return phoneCode; + } + + public void setPhoneCode(String phoneCode) { + this.phoneCode = phoneCode; + } + } +} diff --git a/app/src/main/java/com/maning/gankmm/http/rolltools/APIRolltoolsService.java b/app/src/main/java/com/maning/gankmm/http/rolltools/APIRolltoolsService.java index 221d754..04fb817 100644 --- a/app/src/main/java/com/maning/gankmm/http/rolltools/APIRolltoolsService.java +++ b/app/src/main/java/com/maning/gankmm/http/rolltools/APIRolltoolsService.java @@ -7,6 +7,7 @@ import com.maning.gankmm.bean.rolltools.MobileLocationResultBean; import com.maning.gankmm.bean.rolltools.RubbishTypeResultBean; import com.maning.gankmm.bean.rolltools.WeatherFuturedaysResultBean; +import com.maning.gankmm.bean.rolltools.WorldPhoneCodeResultBean; import com.maning.gankmm.constant.Constants; import retrofit2.Call; @@ -92,4 +93,11 @@ Call getIpLocation( @Query("ip") String ip ); + @Headers({ + "app_id:" + Constants.ROLL_TOOLS_APP_ID, + "app_secret:" + Constants.ROLL_TOOLS_APP_SECRET + }) + @GET("phone_code/list") + Call getWorldPhoneCode(); + } diff --git a/app/src/main/java/com/maning/gankmm/http/rolltools/RolltoolsApi.java b/app/src/main/java/com/maning/gankmm/http/rolltools/RolltoolsApi.java index 4763cdc..8e222c4 100644 --- a/app/src/main/java/com/maning/gankmm/http/rolltools/RolltoolsApi.java +++ b/app/src/main/java/com/maning/gankmm/http/rolltools/RolltoolsApi.java @@ -7,6 +7,7 @@ import com.maning.gankmm.bean.rolltools.MobileLocationResultBean; import com.maning.gankmm.bean.rolltools.RubbishTypeResultBean; import com.maning.gankmm.bean.rolltools.WeatherFuturedaysResultBean; +import com.maning.gankmm.bean.rolltools.WorldPhoneCodeResultBean; import com.maning.gankmm.http.BuildApi; import com.maning.gankmm.http.callback.CommonHttpCallback; @@ -95,5 +96,13 @@ public static void getIpLocation(String ip, CommonHttpCallback htt BuildApi.getRooltoolsAPIService().getIpLocation(ip).enqueue(httpCallback); } + /** + * 获取世界电话区号列表。 + * @param httpCallback + */ + public static void getWorldPhoneCode(CommonHttpCallback httpCallback) { + BuildApi.getRooltoolsAPIService().getWorldPhoneCode().enqueue(httpCallback); + } + } diff --git a/app/src/main/java/com/maning/gankmm/ui/activity/MoreActivity.java b/app/src/main/java/com/maning/gankmm/ui/activity/MoreActivity.java index 83f8394..9b5b0d7 100644 --- a/app/src/main/java/com/maning/gankmm/ui/activity/MoreActivity.java +++ b/app/src/main/java/com/maning/gankmm/ui/activity/MoreActivity.java @@ -74,10 +74,10 @@ private void initRecyclerView() { private void initAdapter() { ArrayList mDatas = new ArrayList<>(); - mDatas.add("生活常用"); - mDatas.add("金融基金"); - mDatas.add("休闲旅游"); mDatas.add("便民服务"); + mDatas.add("生活阅读"); + mDatas.add("休闲旅游"); + mDatas.add("工具集合"); recycleMoreAdapter = new RecycleMoreAdapter(this, mDatas); recyclerView.setAdapter(recycleMoreAdapter); diff --git a/app/src/main/java/com/maning/gankmm/ui/activity/tools/BankCardActivity.java b/app/src/main/java/com/maning/gankmm/ui/activity/tools/BankCardActivity.java index 776e5ff..a7d933a 100644 --- a/app/src/main/java/com/maning/gankmm/ui/activity/tools/BankCardActivity.java +++ b/app/src/main/java/com/maning/gankmm/ui/activity/tools/BankCardActivity.java @@ -14,7 +14,7 @@ import com.maning.gankmm.http.mob.MobApi; import com.maning.gankmm.http.callback.MyCallBack; import com.maning.gankmm.skin.SkinManager; -import com.maning.gankmm.ui.adapter.RecycleMobQueryAdapter; +import com.maning.gankmm.ui.adapter.RecycleCommonQueryAdapter; import com.maning.gankmm.ui.base.BaseActivity; import com.maning.gankmm.ui.view.MClearEditText; import com.maning.gankmm.utils.KeyboardUtils; @@ -38,7 +38,7 @@ public class BankCardActivity extends BaseActivity { MClearEditText editTextInput; @Bind(R.id.recyclerView) RecyclerView recyclerView; - private RecycleMobQueryAdapter recycleMobQueryAdapter; + private RecycleCommonQueryAdapter recycleCommonQueryAdapter; @Override protected void onCreate(Bundle savedInstanceState) { @@ -125,11 +125,11 @@ private void initAdapter(MobBankCard result) { mDatas.put("3", new CommonItemEntity("卡号长度:", String.valueOf(result.getCardNumber()))); mDatas.put("4", new CommonItemEntity("bin码:", result.getBin())); - if (recycleMobQueryAdapter == null) { - recycleMobQueryAdapter = new RecycleMobQueryAdapter(this, mDatas); - recyclerView.setAdapter(recycleMobQueryAdapter); + if (recycleCommonQueryAdapter == null) { + recycleCommonQueryAdapter = new RecycleCommonQueryAdapter(this, mDatas); + recyclerView.setAdapter(recycleCommonQueryAdapter); } else { - recycleMobQueryAdapter.updateDatas(mDatas); + recycleCommonQueryAdapter.updateDatas(mDatas); } } diff --git a/app/src/main/java/com/maning/gankmm/ui/activity/tools/DictionaryActivity.java b/app/src/main/java/com/maning/gankmm/ui/activity/tools/DictionaryActivity.java index 9735953..9d8f1be 100644 --- a/app/src/main/java/com/maning/gankmm/ui/activity/tools/DictionaryActivity.java +++ b/app/src/main/java/com/maning/gankmm/ui/activity/tools/DictionaryActivity.java @@ -14,7 +14,7 @@ import com.maning.gankmm.http.callback.CommonHttpCallback; import com.maning.gankmm.http.rolltools.RolltoolsApi; import com.maning.gankmm.skin.SkinManager; -import com.maning.gankmm.ui.adapter.RecycleMobQueryAdapter; +import com.maning.gankmm.ui.adapter.RecycleCommonQueryAdapter; import com.maning.gankmm.ui.base.BaseActivity; import com.maning.gankmm.ui.view.MClearEditText; import com.maning.gankmm.utils.KeyboardUtils; @@ -37,7 +37,7 @@ public class DictionaryActivity extends BaseActivity { MClearEditText editText; @Bind(R.id.recyclerView) RecyclerView recyclerView; - private RecycleMobQueryAdapter recycleMobQueryAdapter; + private RecycleCommonQueryAdapter recycleCommonQueryAdapter; @Override protected void onCreate(Bundle savedInstanceState) { @@ -117,11 +117,11 @@ private void initAdapter(DictionaryResultBean.DataEntity dataEntity) { mDatas.put("4", new CommonItemEntity("汉字释义:", dataEntity.getExplanation())); mDatas.put("5", new CommonItemEntity("汉字笔画数:", String.valueOf(dataEntity.getStrokes()))); - if (recycleMobQueryAdapter == null) { - recycleMobQueryAdapter = new RecycleMobQueryAdapter(this, mDatas); - recyclerView.setAdapter(recycleMobQueryAdapter); + if (recycleCommonQueryAdapter == null) { + recycleCommonQueryAdapter = new RecycleCommonQueryAdapter(this, mDatas); + recyclerView.setAdapter(recycleCommonQueryAdapter); } else { - recycleMobQueryAdapter.updateDatas(mDatas); + recycleCommonQueryAdapter.updateDatas(mDatas); } } diff --git a/app/src/main/java/com/maning/gankmm/ui/activity/tools/IDCardQueryActivity.java b/app/src/main/java/com/maning/gankmm/ui/activity/tools/IDCardQueryActivity.java index c59212d..d6f64a8 100644 --- a/app/src/main/java/com/maning/gankmm/ui/activity/tools/IDCardQueryActivity.java +++ b/app/src/main/java/com/maning/gankmm/ui/activity/tools/IDCardQueryActivity.java @@ -14,7 +14,7 @@ import com.maning.gankmm.http.mob.MobApi; import com.maning.gankmm.http.callback.MyCallBack; import com.maning.gankmm.skin.SkinManager; -import com.maning.gankmm.ui.adapter.RecycleMobQueryAdapter; +import com.maning.gankmm.ui.adapter.RecycleCommonQueryAdapter; import com.maning.gankmm.ui.base.BaseActivity; import com.maning.gankmm.ui.view.MClearEditText; import com.maning.gankmm.utils.KeyboardUtils; @@ -38,7 +38,7 @@ public class IDCardQueryActivity extends BaseActivity { MClearEditText editTextPhone; @Bind(R.id.recyclerView) RecyclerView recyclerView; - private RecycleMobQueryAdapter recycleMobQueryAdapter; + private RecycleCommonQueryAdapter recycleCommonQueryAdapter; @Override protected void onCreate(Bundle savedInstanceState) { @@ -123,11 +123,11 @@ private void initAdapter(MobIdCardEntity result) { mDatas.put("1", new CommonItemEntity("生日:", result.getBirthday())); mDatas.put("2", new CommonItemEntity("性别:", result.getSex())); - if (recycleMobQueryAdapter == null) { - recycleMobQueryAdapter = new RecycleMobQueryAdapter(this, mDatas); - recyclerView.setAdapter(recycleMobQueryAdapter); + if (recycleCommonQueryAdapter == null) { + recycleCommonQueryAdapter = new RecycleCommonQueryAdapter(this, mDatas); + recyclerView.setAdapter(recycleCommonQueryAdapter); } else { - recycleMobQueryAdapter.updateDatas(mDatas); + recycleCommonQueryAdapter.updateDatas(mDatas); } } diff --git a/app/src/main/java/com/maning/gankmm/ui/activity/tools/IPQueryActivity.java b/app/src/main/java/com/maning/gankmm/ui/activity/tools/IPQueryActivity.java index 041d91d..56e0f39 100644 --- a/app/src/main/java/com/maning/gankmm/ui/activity/tools/IPQueryActivity.java +++ b/app/src/main/java/com/maning/gankmm/ui/activity/tools/IPQueryActivity.java @@ -7,25 +7,20 @@ import android.support.v7.widget.Toolbar; import android.text.TextUtils; import android.view.MenuItem; -import android.widget.Button; import com.maning.gankmm.R; import com.maning.gankmm.bean.CommonItemEntity; -import com.maning.gankmm.bean.mob.MobIpEntity; import com.maning.gankmm.bean.rolltools.IpResultBean; import com.maning.gankmm.http.callback.CommonHttpCallback; -import com.maning.gankmm.http.callback.MyCallBack; -import com.maning.gankmm.http.mob.MobApi; import com.maning.gankmm.http.rolltools.RolltoolsApi; import com.maning.gankmm.skin.SkinManager; -import com.maning.gankmm.ui.adapter.RecycleMobQueryAdapter; +import com.maning.gankmm.ui.adapter.RecycleCommonQueryAdapter; import com.maning.gankmm.ui.base.BaseActivity; import com.maning.gankmm.ui.view.MClearEditText; import com.maning.gankmm.utils.KeyboardUtils; import com.maning.gankmm.utils.MySnackbar; import java.util.HashMap; -import java.util.List; import butterknife.Bind; import butterknife.ButterKnife; @@ -42,7 +37,7 @@ public class IPQueryActivity extends BaseActivity { MClearEditText editTextPhone; @Bind(R.id.recyclerView) RecyclerView recyclerView; - private RecycleMobQueryAdapter recycleMobQueryAdapter; + private RecycleCommonQueryAdapter recycleCommonQueryAdapter; @Override protected void onCreate(Bundle savedInstanceState) { @@ -140,11 +135,11 @@ private void initAdapter(IpResultBean.DataEntity data) { mDatas.put("2", new CommonItemEntity("IP描述:", data.getDesc())); mDatas.put("3", new CommonItemEntity("城市:", data.getProvince() + " " + data.getCity())); - if (recycleMobQueryAdapter == null) { - recycleMobQueryAdapter = new RecycleMobQueryAdapter(this, mDatas); - recyclerView.setAdapter(recycleMobQueryAdapter); + if (recycleCommonQueryAdapter == null) { + recycleCommonQueryAdapter = new RecycleCommonQueryAdapter(this, mDatas); + recyclerView.setAdapter(recycleCommonQueryAdapter); } else { - recycleMobQueryAdapter.updateDatas(mDatas); + recycleCommonQueryAdapter.updateDatas(mDatas); } } diff --git a/app/src/main/java/com/maning/gankmm/ui/activity/tools/IdiomActivity.java b/app/src/main/java/com/maning/gankmm/ui/activity/tools/IdiomActivity.java deleted file mode 100644 index c871309..0000000 --- a/app/src/main/java/com/maning/gankmm/ui/activity/tools/IdiomActivity.java +++ /dev/null @@ -1,137 +0,0 @@ -package com.maning.gankmm.ui.activity.tools; - -import android.os.Bundle; -import android.support.v7.widget.DefaultItemAnimator; -import android.support.v7.widget.LinearLayoutManager; -import android.support.v7.widget.RecyclerView; -import android.support.v7.widget.Toolbar; -import android.text.TextUtils; -import android.view.MenuItem; - -import com.maning.gankmm.R; -import com.maning.gankmm.bean.mob.MobIdiomEntity; -import com.maning.gankmm.bean.CommonItemEntity; -import com.maning.gankmm.http.mob.MobApi; -import com.maning.gankmm.http.callback.MyCallBack; -import com.maning.gankmm.skin.SkinManager; -import com.maning.gankmm.ui.adapter.RecycleMobQueryAdapter; -import com.maning.gankmm.ui.base.BaseActivity; -import com.maning.gankmm.ui.view.MClearEditText; -import com.maning.gankmm.utils.KeyboardUtils; -import com.maning.gankmm.utils.MySnackbar; - -import java.util.HashMap; -import java.util.List; - -import butterknife.Bind; -import butterknife.ButterKnife; -import butterknife.OnClick; - -/** - * 成语大全 - */ -public class IdiomActivity extends BaseActivity { - - @Bind(R.id.toolbar) - Toolbar toolbar; - @Bind(R.id.editText) - MClearEditText editText; - @Bind(R.id.recyclerView) - RecyclerView recyclerView; - private RecycleMobQueryAdapter recycleMobQueryAdapter; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_idiom); - ButterKnife.bind(this); - - initMyToolBar(); - - initRecyclerView(); - - } - - private void initRecyclerView() { - LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false); - recyclerView.setLayoutManager(linearLayoutManager); - recyclerView.setItemAnimator(new DefaultItemAnimator()); - } - - private void initMyToolBar() { - int currentSkinType = SkinManager.getCurrentSkinType(this); - if (SkinManager.THEME_DAY == currentSkinType) { - initToolBar(toolbar, "成语查询", R.drawable.gank_ic_back_white); - } else { - initToolBar(toolbar, "成语查询", R.drawable.gank_ic_back_night); - } - } - - @Override - public boolean onOptionsItemSelected(MenuItem item) { - switch (item.getItemId()) { - case android.R.id.home: - this.finish(); - return true; - } - return super.onOptionsItemSelected(item); - } - - - @OnClick(R.id.btn_query) - public void btnQuery() { - - KeyboardUtils.hideSoftInput(this); - - //获取输入 - String content = editText.getText().toString(); - - if (TextUtils.isEmpty(content)) { - MySnackbar.makeSnackBarRed(toolbar, "输入内容不能为空"); - return; - } - - showProgressDialog("正在查询..."); - MobApi.queryIdiom(content, 0x001, new MyCallBack() { - @Override - public void onSuccess(int what, Object object) { - dissmissProgressDialog(); - if (object != null) { - MobIdiomEntity result = (MobIdiomEntity) object; - initAdapter(result); - } - } - - @Override - public void onSuccessList(int what, List results) { - - } - - @Override - public void onFail(int what, String result) { - dissmissProgressDialog(); - MySnackbar.makeSnackBarRed(toolbar, result); - } - }); - - } - - private void initAdapter(MobIdiomEntity result) { - - HashMap mDatas = new HashMap<>(); - mDatas.put("0", new CommonItemEntity("拼音:", result.getPinyin())); - mDatas.put("1", new CommonItemEntity("释义:", result.getPretation())); - mDatas.put("2", new CommonItemEntity("出自:", result.getSource())); - mDatas.put("3", new CommonItemEntity("示例:", result.getSample())); - mDatas.put("4", new CommonItemEntity("示例出自:", result.getSampleFrom())); - - if (recycleMobQueryAdapter == null) { - recycleMobQueryAdapter = new RecycleMobQueryAdapter(this, mDatas); - recyclerView.setAdapter(recycleMobQueryAdapter); - } else { - recycleMobQueryAdapter.updateDatas(mDatas); - } - - } - -} diff --git a/app/src/main/java/com/maning/gankmm/ui/activity/tools/PhoneAddressActivity.java b/app/src/main/java/com/maning/gankmm/ui/activity/tools/PhoneAddressActivity.java index 9983400..fb1a6dd 100644 --- a/app/src/main/java/com/maning/gankmm/ui/activity/tools/PhoneAddressActivity.java +++ b/app/src/main/java/com/maning/gankmm/ui/activity/tools/PhoneAddressActivity.java @@ -14,7 +14,7 @@ import com.maning.gankmm.http.callback.CommonHttpCallback; import com.maning.gankmm.http.rolltools.RolltoolsApi; import com.maning.gankmm.skin.SkinManager; -import com.maning.gankmm.ui.adapter.RecycleMobQueryAdapter; +import com.maning.gankmm.ui.adapter.RecycleCommonQueryAdapter; import com.maning.gankmm.ui.base.BaseActivity; import com.maning.gankmm.ui.view.MClearEditText; import com.maning.gankmm.utils.GankUtils; @@ -38,7 +38,7 @@ public class PhoneAddressActivity extends BaseActivity { MClearEditText editTextPhone; @Bind(R.id.recyclerView) RecyclerView recyclerView; - private RecycleMobQueryAdapter recycleMobQueryAdapter; + private RecycleCommonQueryAdapter recycleCommonQueryAdapter; @Override protected void onCreate(Bundle savedInstanceState) { @@ -119,11 +119,11 @@ private void initAdapter(MobileLocationResultBean.DataEntity mobPhone) { mDatas.put("1", new CommonItemEntity("归属地省份:", mobPhone.getProvince())); mDatas.put("2", new CommonItemEntity("归属地描述:", mobPhone.getCarrier())); - if (recycleMobQueryAdapter == null) { - recycleMobQueryAdapter = new RecycleMobQueryAdapter(this, mDatas); - recyclerView.setAdapter(recycleMobQueryAdapter); + if (recycleCommonQueryAdapter == null) { + recycleCommonQueryAdapter = new RecycleCommonQueryAdapter(this, mDatas); + recyclerView.setAdapter(recycleCommonQueryAdapter); } else { - recycleMobQueryAdapter.updateDatas(mDatas); + recycleCommonQueryAdapter.updateDatas(mDatas); } } diff --git a/app/src/main/java/com/maning/gankmm/ui/activity/tools/PostCodeActivity.java b/app/src/main/java/com/maning/gankmm/ui/activity/tools/PostCodeActivity.java index ad10d1a..50aaa5a 100644 --- a/app/src/main/java/com/maning/gankmm/ui/activity/tools/PostCodeActivity.java +++ b/app/src/main/java/com/maning/gankmm/ui/activity/tools/PostCodeActivity.java @@ -14,7 +14,7 @@ import com.maning.gankmm.http.mob.MobApi; import com.maning.gankmm.http.callback.MyCallBack; import com.maning.gankmm.skin.SkinManager; -import com.maning.gankmm.ui.adapter.RecycleMobQueryAdapter; +import com.maning.gankmm.ui.adapter.RecycleCommonQueryAdapter; import com.maning.gankmm.ui.base.BaseActivity; import com.maning.gankmm.ui.view.MClearEditText; import com.maning.gankmm.utils.KeyboardUtils; @@ -38,7 +38,7 @@ public class PostCodeActivity extends BaseActivity { MClearEditText editTextPhone; @Bind(R.id.recyclerView) RecyclerView recyclerView; - private RecycleMobQueryAdapter recycleMobQueryAdapter; + private RecycleCommonQueryAdapter recycleCommonQueryAdapter; @Override protected void onCreate(Bundle savedInstanceState) { @@ -125,11 +125,11 @@ private void initAdapter(MobPostCodeEntity result) { mDatas.put("2", new CommonItemEntity("区县:", result.getDistrict())); mDatas.put("3", new CommonItemEntity("详细地址:", result.getAddress().toString())); - if (recycleMobQueryAdapter == null) { - recycleMobQueryAdapter = new RecycleMobQueryAdapter(this, mDatas); - recyclerView.setAdapter(recycleMobQueryAdapter); + if (recycleCommonQueryAdapter == null) { + recycleCommonQueryAdapter = new RecycleCommonQueryAdapter(this, mDatas); + recyclerView.setAdapter(recycleCommonQueryAdapter); } else { - recycleMobQueryAdapter.updateDatas(mDatas); + recycleCommonQueryAdapter.updateDatas(mDatas); } } diff --git a/app/src/main/java/com/maning/gankmm/ui/activity/tools/WorldPhoneCodeActivity.java b/app/src/main/java/com/maning/gankmm/ui/activity/tools/WorldPhoneCodeActivity.java new file mode 100644 index 0000000..fa37f9e --- /dev/null +++ b/app/src/main/java/com/maning/gankmm/ui/activity/tools/WorldPhoneCodeActivity.java @@ -0,0 +1,111 @@ +package com.maning.gankmm.ui.activity.tools; + +import android.os.Bundle; +import android.support.v7.widget.DefaultItemAnimator; +import android.support.v7.widget.LinearLayoutManager; +import android.support.v7.widget.RecyclerView; +import android.support.v7.widget.Toolbar; +import android.view.MenuItem; + +import com.maning.gankmm.R; +import com.maning.gankmm.bean.CommonItemEntity; +import com.maning.gankmm.bean.rolltools.WorldPhoneCodeResultBean; +import com.maning.gankmm.http.callback.CommonHttpCallback; +import com.maning.gankmm.http.rolltools.RolltoolsApi; +import com.maning.gankmm.skin.SkinManager; +import com.maning.gankmm.ui.adapter.RecycleCommonQueryAdapter; +import com.maning.gankmm.ui.base.BaseActivity; +import com.maning.gankmm.utils.MySnackbar; + +import java.util.HashMap; +import java.util.List; + +import butterknife.Bind; +import butterknife.ButterKnife; + +/** + * 世界电话区号列表 + */ +public class WorldPhoneCodeActivity extends BaseActivity { + + @Bind(R.id.toolbar) + Toolbar toolbar; + @Bind(R.id.recyclerView) + RecyclerView recyclerView; + private RecycleCommonQueryAdapter recycleCommonQueryAdapter; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_world_phone_code); + ButterKnife.bind(this); + + initMyToolBar(); + + initRecyclerView(); + + queryDatas(); + + } + + private void queryDatas() { + showProgressDialog(); + RolltoolsApi.getWorldPhoneCode(new CommonHttpCallback() { + @Override + public void onSuccess(WorldPhoneCodeResultBean result) { + dissmissProgressDialog(); + List data = result.getData(); + + HashMap mDatas = new HashMap<>(); + for (int i = 0; i < data.size(); i++) { + WorldPhoneCodeResultBean.DataEntity dataEntity = data.get(i); + mDatas.put("" + i, new CommonItemEntity(dataEntity.getZhCn() + "(" + dataEntity.getEnUs() + ")", dataEntity.getPhoneCode())); + } + initAdapter(mDatas); + } + + @Override + public void onFail(int code, String message) { + dissmissProgressDialog(); + MySnackbar.makeSnackBarRed(toolbar, message); + } + }); + } + + private void initRecyclerView() { + LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false); + recyclerView.setLayoutManager(linearLayoutManager); + recyclerView.setItemAnimator(new DefaultItemAnimator()); + } + + private void initMyToolBar() { + int currentSkinType = SkinManager.getCurrentSkinType(this); + if (SkinManager.THEME_DAY == currentSkinType) { + initToolBar(toolbar, "世界电话区号", R.drawable.gank_ic_back_white); + } else { + initToolBar(toolbar, "世界电话区号", R.drawable.gank_ic_back_night); + } + } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + switch (item.getItemId()) { + case android.R.id.home: + this.finish(); + return true; + } + return super.onOptionsItemSelected(item); + } + + + private void initAdapter(HashMap mDatas) { + if (recycleCommonQueryAdapter == null) { + recycleCommonQueryAdapter = new RecycleCommonQueryAdapter(this, mDatas, 1); + recyclerView.setAdapter(recycleCommonQueryAdapter); + } else { + recycleCommonQueryAdapter.updateDatas(mDatas); + } + + } + +} diff --git a/app/src/main/java/com/maning/gankmm/ui/adapter/RecycleMobQueryAdapter.java b/app/src/main/java/com/maning/gankmm/ui/adapter/RecycleCommonQueryAdapter.java similarity index 78% rename from app/src/main/java/com/maning/gankmm/ui/adapter/RecycleMobQueryAdapter.java rename to app/src/main/java/com/maning/gankmm/ui/adapter/RecycleCommonQueryAdapter.java index d1b5414..9d17d20 100644 --- a/app/src/main/java/com/maning/gankmm/ui/adapter/RecycleMobQueryAdapter.java +++ b/app/src/main/java/com/maning/gankmm/ui/adapter/RecycleCommonQueryAdapter.java @@ -18,15 +18,22 @@ /** * 更多功能的Adapter */ -public class RecycleMobQueryAdapter extends RecyclerView.Adapter { +public class RecycleCommonQueryAdapter extends RecyclerView.Adapter { private Context context; + //0布局,1左右布局 + private int type = 0; private LayoutInflater layoutInflater; private HashMap mDatas; - public RecycleMobQueryAdapter(Context context, HashMap mDatas) { + public RecycleCommonQueryAdapter(Context context, HashMap mDatas) { + this(context, mDatas, 0); + } + + public RecycleCommonQueryAdapter(Context context, HashMap mDatas, int type) { this.context = context; this.mDatas = mDatas; + this.type = type; layoutInflater = LayoutInflater.from(this.context); } @@ -37,7 +44,7 @@ public void updateDatas(HashMap mDatas) { @Override public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { - View inflate = layoutInflater.inflate(R.layout.item_mob_query, parent, false); + View inflate = layoutInflater.inflate(type == 0 ? R.layout.item_common_query : R.layout.item_common_query2, parent, false); return new MyViewHolder(inflate); } diff --git a/app/src/main/java/com/maning/gankmm/ui/adapter/RecycleMoreAdapter.java b/app/src/main/java/com/maning/gankmm/ui/adapter/RecycleMoreAdapter.java index a782617..5f51c45 100644 --- a/app/src/main/java/com/maning/gankmm/ui/adapter/RecycleMoreAdapter.java +++ b/app/src/main/java/com/maning/gankmm/ui/adapter/RecycleMoreAdapter.java @@ -12,7 +12,6 @@ import com.maning.gankmm.R; import com.maning.gankmm.listeners.OnItemClickListener; -import com.maning.gankmm.ui.activity.tools.BankCardActivity; import com.maning.gankmm.ui.activity.tools.CarListActivity; import com.maning.gankmm.ui.activity.tools.ChineseCalendarActivity; import com.maning.gankmm.ui.activity.tools.CookMenuActivity; @@ -22,7 +21,7 @@ import com.maning.gankmm.ui.activity.tools.HistoryTodayActivity; import com.maning.gankmm.ui.activity.tools.IDCardQueryActivity; import com.maning.gankmm.ui.activity.tools.IPQueryActivity; -import com.maning.gankmm.ui.activity.tools.IdiomActivity; +import com.maning.gankmm.ui.activity.tools.WorldPhoneCodeActivity; import com.maning.gankmm.ui.activity.tools.LotteryCategoryActivity; import com.maning.gankmm.ui.activity.tools.OilPriceActivity; import com.maning.gankmm.ui.activity.tools.PhoneAddressActivity; @@ -72,21 +71,19 @@ public void onBindViewHolder(final RecyclerView.ViewHolder viewHolder, final int ArrayList mDatasItem = new ArrayList<>(); if (position == 0) { - mDatasItem.add("手机号码归属地"); - mDatasItem.add("IP地址"); + //便民服务 + mDatasItem.add("垃圾分类"); + mDatasItem.add("新华字典"); // mDatasItem.add("邮编查询"); // mDatasItem.add("菜谱查询"); // mDatasItem.add("身份证查询"); // mDatasItem.add("中国彩票开奖结果"); // mDatasItem.add("微信精选"); } else if (position == 1) { -// mDatasItem.add("银行卡信息"); - mDatasItem.add("货币汇率"); -// mDatasItem.add("黄金数据"); -// mDatasItem.add("白银数据"); -// mDatasItem.add("国内现货交易所贵金属"); -// mDatasItem.add("全球股指查询"); + //生活阅读 + mDatasItem.add("历史上的今天"); } else if (position == 2) { + //休闲旅游 mDatasItem.add("周公解梦"); mDatasItem.add("婚姻匹配"); mDatasItem.add("八字算命"); @@ -96,9 +93,10 @@ public void onBindViewHolder(final RecyclerView.ViewHolder viewHolder, final int // mDatasItem.add("火车票查询"); // mDatasItem.add("航班信息查询"); } else if (position == 3) { - mDatasItem.add("垃圾分类"); - mDatasItem.add("历史上的今天"); - mDatasItem.add("新华字典"); + //工具集合 + mDatasItem.add("手机号码归属地"); + mDatasItem.add("IP地址"); + mDatasItem.add("世界电话区号"); // mDatasItem.add("全国省市今日油价"); // mDatasItem.add("汽车信息查询"); // mDatasItem.add("驾考题库"); @@ -125,23 +123,7 @@ public void onItemClick(View view, int position) { context.startActivity(new Intent(context, LotteryCategoryActivity.class)); } else if (title.equals("微信精选")) { context.startActivity(new Intent(context, WXArticleActivity.class)); - } - - if (title.equals("银行卡信息")) { - context.startActivity(new Intent(context, BankCardActivity.class)); - } else if (title.equals("货币汇率")) { - MySnackbar.makeSnackBarGreen(myViewHolder.recyclerViewItem, "功能暂未开通,敬请期待"); - } else if (title.equals("货币汇率")) { - MySnackbar.makeSnackBarGreen(myViewHolder.recyclerViewItem, "功能暂未开通,敬请期待"); - } else if (title.equals("白银数据")) { - MySnackbar.makeSnackBarGreen(myViewHolder.recyclerViewItem, "功能暂未开通,敬请期待"); - } else if (title.equals("国内现货交易所贵金属")) { - MySnackbar.makeSnackBarGreen(myViewHolder.recyclerViewItem, "功能暂未开通,敬请期待"); - } else if (title.equals("全球股指查询")) { - MySnackbar.makeSnackBarGreen(myViewHolder.recyclerViewItem, "功能暂未开通,敬请期待"); - } - - if (title.equals("周公解梦")) { + }else if (title.equals("周公解梦")) { IntentUtils.startToWebActivity(context, "工具", "周公解梦", "http://tools.2345.com/zhgjm.htm"); } else if (title.equals("婚姻匹配")) { IntentUtils.startToWebActivity(context, "工具", "婚姻匹配", "http://www.jjdzc.com/peidui/hehun.html"); @@ -157,14 +139,12 @@ public void onItemClick(View view, int position) { context.startActivity(new Intent(context, FlightActivity.class)); } else if (title.equals("足球五大联赛")) { MySnackbar.makeSnackBarGreen(myViewHolder.recyclerViewItem, "功能暂未开通,敬请期待"); - } - - if (title.equals("垃圾分类")) { + }else if (title.equals("垃圾分类")) { context.startActivity(new Intent(context, RubbishActivity.class)); } else if (title.equals("历史上的今天")) { context.startActivity(new Intent(context, HistoryTodayActivity.class)); - } else if (title.equals("成语大全")) { - context.startActivity(new Intent(context, IdiomActivity.class)); + } else if (title.equals("世界电话区号")) { + context.startActivity(new Intent(context, WorldPhoneCodeActivity.class)); } else if (title.equals("新华字典")) { context.startActivity(new Intent(context, DictionaryActivity.class)); } else if (title.equals("全国省市今日油价")) { diff --git a/app/src/main/java/com/maning/gankmm/ui/adapter/RecycleMoreItemAdapter.java b/app/src/main/java/com/maning/gankmm/ui/adapter/RecycleMoreItemAdapter.java index 4928a12..dc82763 100644 --- a/app/src/main/java/com/maning/gankmm/ui/adapter/RecycleMoreItemAdapter.java +++ b/app/src/main/java/com/maning/gankmm/ui/adapter/RecycleMoreItemAdapter.java @@ -4,6 +4,7 @@ import android.support.v7.widget.DefaultItemAnimator; import android.support.v7.widget.GridLayoutManager; import android.support.v7.widget.RecyclerView; +import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -12,7 +13,10 @@ import com.maning.gankmm.R; import com.maning.gankmm.listeners.OnItemClickListener; +import com.socks.library.KLog; +import com.socks.library.KLogUtil; +import java.util.HashMap; import java.util.List; import butterknife.Bind; @@ -23,6 +27,21 @@ */ public class RecycleMoreItemAdapter extends RecyclerView.Adapter { + private static HashMap titleIconMap = new HashMap() { + { + put("垃圾分类", R.drawable.gank_icon_tools_rubbish); + put("新华字典", R.drawable.gank_icon_tools_zidian); + put("历史上的今天", R.drawable.gank_icon_tools_history); + put("周公解梦", R.drawable.gank_icon_tools_zhougong); + put("婚姻匹配", R.drawable.gank_icon_tools_hunyin); + put("八字算命", R.drawable.gank_icon_tools_suanming); + put("老黄历", R.drawable.gank_icon_tools_huangli); + put("手机号码归属地", R.drawable.gank_icon_tools_phone_address); + put("IP地址", R.drawable.gank_icon_tools_ip); + put("世界电话区号", R.drawable.gank_icon_tools_phone_code); + } + }; + private Context context; private List mDatas; private LayoutInflater layoutInflater; @@ -55,74 +74,58 @@ public void onClick(View view) { String title = mDatas.get(position); myViewHolder.tv_title_more_item.setText(title); - - if (title.equals("手机号码归属地")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_phone_address); - } else if (title.equals("邮编查询")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_postcode); - } else if (title.equals("菜谱查询")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_cookbook); - } else if (title.equals("身份证查询")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_idcard_query); - } else if (title.equals("IP地址")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_ip); - } else if (title.equals("中国彩票开奖结果")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_lottery); - } else if (title.equals("微信精选")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_weixin); - } - - if (title.equals("银行卡信息")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_bank); - } else if (title.equals("白银数据")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_baiyin); - } else if (title.equals("黄金数据")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_gold); - } else if (title.equals("货币汇率")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_money); - } else if (title.equals("国内现货交易所贵金属")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_guijinshu); - } else if (title.equals("全球股指查询")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_guzhi); - } - - if (title.equals("周公解梦")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_zhougong); - } else if (title.equals("婚姻匹配")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_hunyin); - } else if (title.equals("手机号码查吉凶")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_jixiong); - } else if (title.equals("八字算命")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_suanming); - } else if (title.equals("老黄历")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_huangli); - } else if (title.equals("电影票房")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_movie); - } else if (title.equals("火车票查询")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_train); - } else if (title.equals("航班信息查询")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_plane); - } else if (title.equals("足球五大联赛")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_football); - } - - if (title.equals("健康知识")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_jiankang); - } else if (title.equals("历史上的今天")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_history); - } else if (title.equals("成语大全")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_chengyu); - } else if (title.equals("新华字典")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_zidian); - } else if (title.equals("全国省市今日油价")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_youjia); - } else if (title.equals("汽车信息查询")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_car); - } else if (title.equals("驾考题库")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_tiku_car); - }else if (title.equals("垃圾分类")) { - myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_rubbish); - } + Integer iconMap = titleIconMap.get(title); + myViewHolder.iv_more_item.setImageResource(iconMap == null ? R.drawable.gank_icon_more_tools : iconMap.intValue()); + +// if (title.equals("手机号码归属地")) { +// myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_phone_address); +// } else if (title.equals("邮编查询")) { +// myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_postcode); +// } else if (title.equals("菜谱查询")) { +// myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_cookbook); +// } else if (title.equals("身份证查询")) { +// myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_idcard_query); +// } else if (title.equals("IP地址")) { +// myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_ip); +// } else if (title.equals("中国彩票开奖结果")) { +// myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_lottery); +// } else if (title.equals("微信精选")) { +// myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_weixin); +// } else if (title.equals("周公解梦")) { +// myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_zhougong); +// } else if (title.equals("婚姻匹配")) { +// myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_hunyin); +// } else if (title.equals("手机号码查吉凶")) { +// myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_jixiong); +// } else if (title.equals("八字算命")) { +// myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_suanming); +// } else if (title.equals("老黄历")) { +// myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_huangli); +// } else if (title.equals("电影票房")) { +// myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_movie); +// } else if (title.equals("火车票查询")) { +// myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_train); +// } else if (title.equals("航班信息查询")) { +// myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_plane); +// } else if (title.equals("足球五大联赛")) { +// myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_football); +// }else if (title.equals("健康知识")) { +// myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_jiankang); +// } else if (title.equals("历史上的今天")) { +// myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_history); +// } else if (title.equals("成语大全")) { +// myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_chengyu); +// } else if (title.equals("新华字典")) { +// myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_zidian); +// } else if (title.equals("全国省市今日油价")) { +// myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_youjia); +// } else if (title.equals("汽车信息查询")) { +// myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_car); +// } else if (title.equals("驾考题库")) { +// myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_tiku_car); +// }else if (title.equals("垃圾分类")) { +// myViewHolder.iv_more_item.setImageResource(R.drawable.gank_icon_tools_rubbish); +// } } } @@ -151,5 +154,4 @@ public MyViewHolder(View itemView) { public void setOnItemClickLitener(OnItemClickListener mOnItemClickLitener) { this.mOnItemClickLitener = mOnItemClickLitener; } - } diff --git a/app/src/main/res/drawable-xxhdpi/gank_icon_tools_rubbish.png b/app/src/main/res/drawable-xxhdpi/gank_icon_tools_rubbish.png deleted file mode 100644 index 190abb8903724b66f2775ceed640987e9b60b820..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3064 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 - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/gank_icon_tools_bank.xml b/app/src/main/res/drawable/gank_icon_tools_bank.xml deleted file mode 100644 index c0047e7..0000000 --- a/app/src/main/res/drawable/gank_icon_tools_bank.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/gank_icon_tools_gold.xml b/app/src/main/res/drawable/gank_icon_tools_gold.xml deleted file mode 100644 index dcf889f..0000000 --- a/app/src/main/res/drawable/gank_icon_tools_gold.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/gank_icon_tools_guijinshu.xml b/app/src/main/res/drawable/gank_icon_tools_guijinshu.xml deleted file mode 100644 index f22c6ae..0000000 --- a/app/src/main/res/drawable/gank_icon_tools_guijinshu.xml +++ /dev/null @@ -1,136 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/gank_icon_tools_guzhi.xml b/app/src/main/res/drawable/gank_icon_tools_guzhi.xml deleted file mode 100644 index 6a4b869..0000000 --- a/app/src/main/res/drawable/gank_icon_tools_guzhi.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/gank_icon_tools_money.xml b/app/src/main/res/drawable/gank_icon_tools_money.xml deleted file mode 100644 index 9e64001..0000000 --- a/app/src/main/res/drawable/gank_icon_tools_money.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/gank_icon_tools_phone_code.xml b/app/src/main/res/drawable/gank_icon_tools_phone_code.xml new file mode 100644 index 0000000..58af7d3 --- /dev/null +++ b/app/src/main/res/drawable/gank_icon_tools_phone_code.xml @@ -0,0 +1,18 @@ + + + + + + diff --git a/app/src/main/res/drawable/gank_icon_tools_rubbish.xml b/app/src/main/res/drawable/gank_icon_tools_rubbish.xml new file mode 100644 index 0000000..e400fc5 --- /dev/null +++ b/app/src/main/res/drawable/gank_icon_tools_rubbish.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/layout/activity_idiom.xml b/app/src/main/res/layout/activity_idiom.xml deleted file mode 100644 index 7ee0263..0000000 --- a/app/src/main/res/layout/activity_idiom.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - -