91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 57.3MB
    文件類型: .rar
    金幣: 1
    下載: 0 次
    發布日期: 2022-07-14
  • 語言: Java
  • 標簽: 菜譜點餐??

資源簡介

本項目是一個類似餓了么的外賣APP demo,做的比較渣,只有UI沒啥實際功能,包括用戶登錄注冊,商品,商品詳情,購物車,高德地圖定位,周邊美食搜索,以及設置 清除緩存等功能。例子大全里也有幾個類似的項目,感興趣的可以自己找找。注意:本項目為android studio項目,eclipse可能無法直接導入。

資源截圖

代碼片段和文件信息

package?com.edg.foodie.activity;

import?android.app.FragmentTransaction;
import?android.content.Intent;
import?android.graphics.Color;
import?android.support.v4.widget.DrawerLayout;
import?android.support.v7.app.ActionBarActivity;
import?android.os.Bundle;
import?android.support.v7.app.ActionBarDrawerToggle;
import?android.support.v7.widget.Toolbar;
import?android.view.KeyEvent;
import?android.view.View;
import?android.widget.AdapterView;
import?android.widget.ArrayAdapter;
import?android.widget.frameLayout;
import?android.widget.ListView;
import?android.widget.TextView;
import?android.widget.Toast;

import?com.edg.foodie.R;
import?com.edg.foodie.fragment.FindFragment;
import?com.edg.foodie.fragment.HomeFragment;
import?com.edg.foodie.fragment.OrderFragment;

public?class?MainActivity?extends?ActionBarActivity?implements?View.onclickListener{

????private?TextView?txt_waimai;
????private?TextView?txt_find;
????private?TextView?txt_order;
????private?frameLayout?ly_content;

????private?HomeFragment?homeFragment;
????private?FindFragment?findFragment;
????private?OrderFragment?orderFragment;
????private?android.app.FragmentManager?fManager?;

????private?Toolbar?toolbar;
????private?DrawerLayout?mDrawerLayout;
????private?ActionBarDrawerToggle?mDrawerToggle;
????private?ListView?lvLeftMenu;
????private?String[]?lvs?=?{“賬戶信息“?“我的余額“?“我的收藏“?“服務中心“?“系統設置“};//可以放入String中,在拿取出來
????private?ArrayAdapter?arrayAdapter;


????@Override
????protected?void?onCreate(Bundle?savedInstanceState)?{
????????super.onCreate(savedInstanceState);
????????setContentView(R.layout.activity_main);


????????fManager?=?getFragmentManager();
????????bindViews();
????????txt_waimai.performClick();???//模擬一次點擊,既進去后選擇第一項


????????findViews();?//獲取控件
????????toolbar.settitle(“Foodie“);//設置Toolbar標題
????????toolbar.settitleTextColor(Color.parseColor(“#000000“));?//設置標題顏色
????????//創建返回鍵,并實現打開關/閉監聽
????????mDrawerToggle?=?new?ActionBarDrawerToggle(this?mDrawerLayout?toolbar
????????????????R.string.open_drawer?R.string.close_drawer)?{
????????????@Override
????????????public?void?onDrawerOpened(View?drawerView)?{
????????????????super.onDrawerOpened(drawerView);
????????????}
????????????@Override
????????????public?void?onDrawerClosed(View?drawerView)?{
????????????????super.onDrawerClosed(drawerView);
????????????}
????????};
????????mDrawerToggle.syncState();
????????mDrawerLayout.setDrawerListener(mDrawerToggle);
????????//設置菜單列表
????????arrayAdapter?=?new?ArrayAdapter(this?android.R.layout.simple_list_item_1?lvs);
????????lvLeftMenu.setAdapter(arrayAdapter);

????????lvLeftMenu.setOnItemClickListener(new?DrawerItemClickListener());

//????????setStatusBar();//設置沉浸式狀態欄,5.0.1系統有點Bug


????}


????//UI組件初始化與事件綁定
????private?void?bindViews()?{
????????txt_waimai?=?(TextView)?findViewById(R.id.txt_waimai);
????????txt_find?=?(TextView)?findViewById(R.id.txt_find);
????????txt_order?

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件?????????34??2016-07-22?22:56??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\COMMIT_EDITMSG

?????文件????????157??2016-07-14?20:40??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\config

?????文件?????????73??2016-07-14?20:40??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\description

?????文件?????????97??2016-07-14?20:43??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\FETCH_HEAD

?????文件?????????23??2016-07-14?20:40??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\HEAD

?????文件????????452??2016-07-14?20:40??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\hooks\applypatch-msg.sample

?????文件????????896??2016-07-14?20:40??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\hooks\commit-msg.sample

?????文件????????189??2016-07-14?20:40??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\hooks\post-update.sample

?????文件????????398??2016-07-14?20:40??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\hooks\pre-applypatch.sample

?????文件???????1642??2016-07-14?20:40??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\hooks\pre-commit.sample

?????文件???????1352??2016-07-14?20:40??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\hooks\pre-push.sample

?????文件???????4951??2016-07-14?20:40??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\hooks\pre-rebase.sample

?????文件???????1239??2016-07-14?20:40??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\hooks\prepare-commit-msg.sample

?????文件???????3611??2016-07-14?20:40??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\hooks\update.sample

?????文件??????20504??2016-07-22?22:54??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\index

?????文件????????240??2016-07-14?20:40??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\info\exclude

?????文件???????1431??2016-07-22?22:56??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\logs\HEAD

?????文件???????1431??2016-07-22?22:56??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\logs\refs\heads\master

?????文件?????????96??2016-07-21?21:57??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\objects\00\181fb118bb517fb9799d3d5ba63ad620e8634e

?????文件????????232??2016-07-21?21:55??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\objects\00\45dafdea9081f87643a32b3c65b69f83069f0c

?????文件????????315??2016-07-14?20:42??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\objects\01\52b4b35ba8130f370ccd384c09af4bbd7cb737

?????文件?????????65??2016-07-14?20:42??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\objects\01\93c2673203020e3726e397a6870107f9e38aa9

?????文件????1941031??2016-07-17?21:25??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\objects\02\d5f3a397d892e768dfe91be6e108ece1e95c86

?????文件????????145??2016-07-17?18:49??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\objects\03\1d81dc568bc5480835dfe2b1abb9d22eb0d9d5

?????文件????????289??2016-07-21?21:57??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\objects\03\c1ed2632f7a104558f94ef530bb06f5af5bfe4

?????文件????????171??2016-07-17?20:05??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\objects\04\67d3d9ddc995eda7d970853977b5d9814b53b4

?????文件????????433??2016-07-17?20:05??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\objects\05\bd081c06c123dfdde06adf2b856e2d6bff74bd

?????文件??????48581??2016-07-14?20:41??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\objects\05\ef575b0cd0173fc735f2857ce4bd594ce4f6bd

?????文件????????851??2016-07-19?22:10??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\objects\06\08ab36db275f32bb1063e3dbe55cf13a275898

?????文件????????294??2016-07-17?20:05??Android項目源碼粗仿餓了么的外賣APP源碼\foodie\.git\objects\06\8f1469840783ba38c67a442505b673046df927

............此處省略2799個文件信息

評論

共有 條評論

相關資源