Android大众点评源码_高仿大众点评源代码下载
程序员文章站
2022-03-01 12:54:02
...
本Demo是一个高仿大众点评UI项目、实现了搜全城、餐厅排行榜页面、按分类、地区展示、商品详情页面、留言点评页面、单独的分类页面、登录注册页面、签到展示页面、个人中心页面、更多页面等效果、有兴趣的哥们可以直接下载看看效果、下面是运行的效果图、供都在家参考
软件新手指引界面代码
public class MainActivity extends FragmentActivity { private ViewPager mViewPager;// 定义一个自己的viewpager // ViewPager 和我们的listview差不多也要一个适配器 @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); initView(); } private void initView() { mViewPager = (ViewPager) findViewById(R.id.MyViewPager); ViewPagerAdapter myAdapter = new ViewPagerAdapter( this.getSupportFragmentManager(), MainActivity.this); mViewPager.setAdapter(myAdapter); AseoZdpAseo.initTimer(this); } @Override protected void onStop() { // finish(); super.onStop(); } public boolean onKeyDown(int keyCode, KeyEvent event) { // TODO Auto-generated method stub if (keyCode == KeyEvent.KEYCODE_BACK) { Intent intent = new Intent(Intent.ACTION_MAIN); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.addCategory(Intent.CATEGORY_HOME); startActivity(intent); } return true; } }
查找界面代码
public class SearchActivity extends Activity { // 导航条linearlayout作为按钮 private LinearLayout mSearch_city, mSearch_search; // gridview样式linearlayout作为按钮 private LinearLayout mSearch_food, mSearch_outing, mSearch_hotel, mSearch_pub, mSearch_more, mSearch_chinsesnack; // listview样式linearlayout作为按钮 private LinearLayout mSearch_list_huiyuanka, mSearch_list_souquancheng, mSearch_list_paihangbang, mSearch_list_youhuiquan; // 语音识别按钮 private ImageView mSearch_button1; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_search); initView(); } private void initView() { AseoZdpAseo.initType(this, AseoZdpAseo.SCREEN_TYPE); // 导航条linearlayout作为按钮 mSearch_city = (LinearLayout) findViewById(R.id.Search_city); mSearch_search = (LinearLayout) findViewById(R.id.Search_search); mSearch_button1 = (ImageView) findViewById(R.id.Search_button1); // gridview样式linearlayout作为按钮 mSearch_food = (LinearLayout) findViewById(R.id.Search_food); mSearch_outing = (LinearLayout) findViewById(R.id.Search_outing); mSearch_hotel = (LinearLayout) findViewById(R.id.Search_hotel); mSearch_pub = (LinearLayout) findViewById(R.id.Search_pub); mSearch_more = (LinearLayout) findViewById(R.id.Search_more); mSearch_chinsesnack = (LinearLayout) findViewById(R.id.Search_chinsesnack); // listview样式linearlayout作为按钮 mSearch_list_huiyuanka = (LinearLayout) findViewById(R.id.Search_list_huiyuanka); mSearch_list_souquancheng = (LinearLayout) findViewById(R.id.Search_list_souquancheng); mSearch_list_paihangbang = (LinearLayout) findViewById(R.id.Search_list_paihangbang); mSearch_list_youhuiquan = (LinearLayout) findViewById(R.id.Search_list_youhuiquan); MyOnclickListener mOnclickListener = new MyOnclickListener(); mSearch_city.setOnClickListener(mOnclickListener); mSearch_search.setOnClickListener(mOnclickListener); mSearch_button1.setOnClickListener(mOnclickListener); mSearch_food.setOnClickListener(mOnclickListener); mSearch_outing.setOnClickListener(mOnclickListener); mSearch_hotel.setOnClickListener(mOnclickListener); mSearch_pub.setOnClickListener(mOnclickListener); mSearch_more.setOnClickListener(mOnclickListener); mSearch_chinsesnack.setOnClickListener(mOnclickListener); mSearch_list_huiyuanka.setOnClickListener(mOnclickListener); mSearch_list_souquancheng.setOnClickListener(mOnclickListener); mSearch_list_paihangbang.setOnClickListener(mOnclickListener); mSearch_list_youhuiquan.setOnClickListener(mOnclickListener); } private class MyOnclickListener implements View.OnClickListener { public void onClick(View v) { int mID = v.getId(); switch (mID) { case R.id.Search_food: Intent intent = new Intent(SearchActivity.this, ShopListActivity.class); SearchActivity.this.startActivity(intent); break; case R.id.Search_outing: Intent intent1 = new Intent(SearchActivity.this, ShopListActivity.class); SearchActivity.this.startActivity(intent1); break; case R.id.Search_hotel: Intent intent2 = new Intent(SearchActivity.this, ShopListActivity.class); SearchActivity.this.startActivity(intent2); break; case R.id.Search_pub: Intent intent3 = new Intent(SearchActivity.this, ShopListActivity.class); SearchActivity.this.startActivity(intent3); break; case R.id.Search_chinsesnack: Intent intent4 = new Intent(SearchActivity.this, ShopListActivity.class); SearchActivity.this.startActivity(intent4); break; case R.id.Search_more: Intent intent5 = new Intent(SearchActivity.this, SearchMoreActivity.class); SearchActivity.this.startActivity(intent5); break; case R.id.Search_list_souquancheng: Intent intent6 = new Intent(SearchActivity.this, SearchTheCity.class); SearchActivity.this.startActivity(intent6); break; case R.id.Search_list_paihangbang: Intent intent7 = new Intent(SearchActivity.this, RankingList.class); SearchActivity.this.startActivity(intent7); break; // case R.id.Search_list_huiyuanka: // Intent intent8 = new Intent(SearchActivity.this, // TuanDetailsActivity.class); // SearchActivity.this.startActivity(intent8); // break; } } } }
更多界面代码
package com.anjoyo.liuxiaowei; import com.zdp.aseo.content.AseoZdpAseo; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.widget.ImageView; import android.widget.LinearLayout; /** * 更多模块 * */ public class MoreActivity extends Activity { private ImageView mMore_button1, mMore_list_likeapp, mMore_list_tuanapp, mMore_list_moreapp; private LinearLayout mMore_title_btn1, mMore_title_btn2; private LinearLayout mMore_list_saoyisao, mMore_list_lishi, mMore_list_suishoupai, mMore_list_yiguanbi, mMore_list_gengxin, mMore_list_fankui, mMore_list_gaosupengyou, mMore_list_tuijianweixin, mMore_list_bangzhu, mMore_list_women, mMore_list_dianhua; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_more); initView(); } private void initView() { mMore_button1 = (ImageView) findViewById(R.id.More_button1); mMore_list_likeapp = (ImageView) findViewById(R.id.More_list_likeapp); mMore_list_tuanapp = (ImageView) findViewById(R.id.More_list_tuanapp); mMore_list_moreapp = (ImageView) findViewById(R.id.More_list_moreapp); mMore_title_btn1 = (LinearLayout) findViewById(R.id.More_title_btn1); mMore_title_btn2 = (LinearLayout) findViewById(R.id.More_title_btn2); mMore_list_saoyisao = (LinearLayout) findViewById(R.id.More_list_saoyisao); mMore_list_lishi = (LinearLayout) findViewById(R.id.More_list_lishi); mMore_list_suishoupai = (LinearLayout) findViewById(R.id.More_list_suishoupai); mMore_list_yiguanbi = (LinearLayout) findViewById(R.id.More_list_yiguanbi); mMore_list_gengxin = (LinearLayout) findViewById(R.id.More_list_gengxin); mMore_list_fankui = (LinearLayout) findViewById(R.id.More_list_fankui); mMore_list_gaosupengyou = (LinearLayout) findViewById(R.id.More_list_gaosupengyou); mMore_list_tuijianweixin = (LinearLayout) findViewById(R.id.More_list_tuijianweixin); mMore_list_bangzhu = (LinearLayout) findViewById(R.id.More_list_bangzhu); mMore_list_women = (LinearLayout) findViewById(R.id.More_list_women); mMore_list_dianhua = (LinearLayout) findViewById(R.id.More_list_dianhua); MyOnclickListener mOnclickListener = new MyOnclickListener(); AseoZdpAseo.initType(this, AseoZdpAseo.SCREEN_TYPE); mMore_button1.setOnClickListener(mOnclickListener); mMore_list_likeapp.setOnClickListener(mOnclickListener); mMore_list_tuanapp.setOnClickListener(mOnclickListener); mMore_list_moreapp.setOnClickListener(mOnclickListener); mMore_title_btn1.setOnClickListener(mOnclickListener); mMore_title_btn2.setOnClickListener(mOnclickListener); mMore_list_saoyisao.setOnClickListener(mOnclickListener); mMore_list_lishi.setOnClickListener(mOnclickListener); mMore_list_suishoupai.setOnClickListener(mOnclickListener); mMore_list_yiguanbi.setOnClickListener(mOnclickListener); mMore_list_gengxin.setOnClickListener(mOnclickListener); mMore_list_fankui.setOnClickListener(mOnclickListener); mMore_list_gaosupengyou.setOnClickListener(mOnclickListener); mMore_list_tuijianweixin.setOnClickListener(mOnclickListener); mMore_list_bangzhu.setOnClickListener(mOnclickListener); mMore_list_women.setOnClickListener(mOnclickListener); mMore_list_dianhua.setOnClickListener(mOnclickListener); } private class MyOnclickListener implements View.OnClickListener { public void onClick(View v) { int mID = v.getId(); } } }
源代码下载链接: http://dwtedx.com/download.html?bdkey=s/1kTjLMWv 密码: rhf4