Eoe客户端源码分析---SlidingMenu的使用
Eoe客户端源码分析及代码注释
使用滑动菜单SlidingMenu,单击滑动菜单的不同选项,可以通过ViewPager和PagerIndicator显示对应的数据内容。
0 BaseSlidingFragmentActivity.java
主要函数:
(1)showMenu()
/** * Opens the menu and shows the menu view.*/
public void showMenu() {
showMenu(true);
}
(2)showContent()
/**Closes the menu and shows the above view. */
public void showContent() {
showContent(true);
}
(3)toggle()
/**Toggle the SlidingMenu. If it is open, it will be closed, and viceversa.*/
public void toggle() {
toggle(true);
}
/**
* Toggle the SlidingMenu. If it is open, itwill be closed, and vice versa.
*
* @param animate true to animate thetransition, false to ignore animation
*/
public void toggle(booleananimate) {
if (isMenuShowing()) {
showContent(animate);
} else {
showMenu(animate);
}
}
(4)
//设置SlidingMenu使用的布局
publicvoid setBehindContentView(int id) {
setBehindContentView(getLayoutInflater().inflate(id,null));
}
public void setBehindContentView(View v) {
setBehindContentView(v, new LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT));
}
public void setBehindContentView(View v, LayoutParams params) {
mHelper.setBehindContentView(v, params);
}
//获取与该Acitivity相关的SlidingMenu对象
public SlidingMenu getSlidingMenu() {
returnmHelper.getSlidingMenu();
}
1. behind_sldingmenu.xml 滑动菜单的部分页面布局文件
滑动菜单主要由一个标题布局(@layout/behinf_title)、菜单选项列表布局和两个自定义图形按钮等控件元素组成
<FrameLayoutxmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#dadada"
android:orientation="vertical">
<!--sliding menu layout -->
<includelayout="@layout/behind_title"/>
<ListView
android:id="@+id/behind_list_show"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="top"
android:layout_marginBottom="@dimen/list_margin_height"
android:layout_marginTop="@dimen/title_height"
android:divider="@drawable/dis_behind_side"
android:listSelector="#0fff"
android:cacheColorHint="#0000">
</ListView>
</FrameLayout>
2. 初始化滑动菜单
private SlidingMenu sm;
// [start]初始化函数
private void initSlidingMenu() {
//设置滑动菜单的布局文件
setBehindContentView(R.layout.behind_slidingmenu);
// 获取滑动菜单对象并设置外观属性customize the SlidingMenu
sm = getSlidingMenu();
sm.setShadowWidthRes(R.dimen.shadow_width);
sm.setBehindOffsetRes(R.dimen.slidingmenu_offset);
// sm.setFadeDegree(0.35f);
sm.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
sm.setShadowDrawable(R.drawable.slidingmenu_shadow);
//sm.setShadowWidth(20);
sm.setBehindScrollScale(0);
}
3. 显示菜单:
(1)单击主界面左上角的LinearLayout控件
// fromabove_title.xml -- > pop up slidingmenu (showMenu() )
llGoHome = (LinearLayout) findViewById(R.id.Linear_above_toHome);
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
switch (v.getId()) {
case R.id.Linear_above_toHome:
showMenu();
break;
}
}
(2)单击手机的菜单选项
@Override
public boolean onKeyDown(int keyCode, KeyEventevent) {
else if (keyCode == KeyEvent.KEYCODE_MENU) {
if (sm.isMenuShowing()) {
toggle();
} else {
showMenu();
}
}
}
4. 设置填充滑动菜单中列表项数据的适配器
4.1 behind_list_show.xml (每一个列表项的布局)
每一个列表项(子菜单选项)由一个ImageView(子菜单图标)和TextView(子菜单名称)组成
<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="@dimen/behind_list_height"
android:orientation="horizontal"
android:background="@drawable/back_behind_listitem_style">
<ImageView
android:id="@+id/imageview_behind_icon"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:src="@drawable/dis_menu_blog"
android:scaleType="fitCenter"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"/>
<TextView
android:id="@+id/textview_behind_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:textColor="#666"
android:textSize="@dimen/behind_list_text_size"/>
</LinearLayout>
4.2定义getData函数获取填充列表项的数据List
private List<Map<String, Object>> getData() {
List<Map<String, Object>>list = new ArrayList<Map<String, Object>>();
//社区精选
Map<String, Object> map = new HashMap<String,Object>();
map.put(LIST_TEXT, getResources().getString(R.string.menuGood));
map.put(LIST_IMAGEVIEW, R.drawable.dis_menu_handpick);
list.add(map);
//新闻资讯
map = new HashMap<String, Object>();
map.put(LIST_TEXT, getResources().getString(R.string.menuNews));
map.put(LIST_IMAGEVIEW, R.drawable.dis_menu_news);
list.add(map);
//学习教程
map = new HashMap<String, Object>();
map.put(LIST_TEXT, getResources().getString(R.string.menuStudio));
map.put(LIST_IMAGEVIEW, R.drawable.dis_menu_studio);
list.add(map);
//社区博客
map = new HashMap<String, Object>();
map.put(LIST_TEXT, getResources().getString(R.string.menuBlog));
map.put(LIST_IMAGEVIEW, R.drawable.dis_menu_blog);
list.add(map);
return list;
}
4.3定义列表项数据填充适配器
SimpleAdapter lvAdapter = new SimpleAdapter(this, getData(),
R.layout.behind_list_show,new String[]{LIST_TEXT,
LIST_IMAGEVIEW},
new int[]{R.id.textview_behind_title,
R.id.imageview_behind_icon}) {
@Override
publicView getView(int position, View convertView, ViewGroupparent) {
View view = super.getView(position,convertView, parent);
//如果是当前选中的子菜单项
if (position ==mTag) {
//设置新的背景图片 标识该菜单选项被选中
view.setBackgroundResource(R.drawable.back_behind_list);
lvTitle.setTag(view);//绑定当前选中的子菜单选项到lvTitle上
} else {
view.setBackgroundColor(Color.TRANSPARENT);
}
return view;
}
};
5. 单击滑动菜单中的列表项 启动不同的ViewPager
(1)NavigationModel 类的定义
package cn.eoe.app.entity;
public class NavigationModel {
private Stringname;
//作为唯一标识符 newsblog wiki 方便于每个页面请求相对应的地址
private Stringtags;
public NavigationModel(String name1,String tags1){
this.name = name1;
this.tags = tags1;
}
}
(2)创建NavigationModel 对象,并添加四个子菜单对应的数据(name,tag)
private List<NavigationModel> navs;
private void initNav() {
navs = new ArrayList<NavigationModel>();
NavigationModel nav1 =new NavigationModel(getResources().getString(
R.string.menuGood),"");
NavigationModel nav2 =new NavigationModel(getResources().getString(
R.string.menuNews), Constants.TAGS.NEWS_TAG);
NavigationModel nav3 =new NavigationModel(getResources().getString(
R.string.menuStudio),Constants.TAGS.WIKI_TAG);
NavigationModel nav4 =new NavigationModel(getResources().getString(
R.string.menuBlog),Constants.TAGS.BLOG_TAG);
Collections.addAll(navs, nav1, nav2, nav3, nav4);
}
(3)初始化列表项数据
MainActivity.java
initialListView(){}
lvAdapter = new SimpleAdapter(this, getData(),
R.layout.behind_list_show,new String[]{LIST_TEXT,
LIST_IMAGEVIEW},
new int[]{R.id.textview_behind_title,
R.id.imageview_behind_icon});
lvTitle.setAdapter(lvAdapter);
(4)列表项单击事件监听函数
lvTitle.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent,View view,
int position,long id) {
NavigationModel navModel = navs.get(position);
mAboveTitle.setText(navModel.getName());
current_page = navModel.getTags();
if (lvTitle.getTag() !=null) {
if (lvTitle.getTag() == view) {
//如果本次单击的子菜单选项(view)和上一次选择的子菜单选项(lvTitle.getTag())相同,则直接显示当前子菜单项对应的内容
MainActivity.this.showContent();
return;
}
//若果不相同,重新将原来菜单选项的背景色改为透明
((View) lvTitle.getTag())
.setBackgroundColor(Color.TRANSPARENT);
}
lvTitle.setTag(view);//重新绑定新的子菜单选项到lvTitle上
//设置新的背景图片 标识该菜单选项被选中
view.setBackgroundResource(R.drawable.back_behind_list);
imgQuery.setVisibility(View.VISIBLE);
//根据选择的不同子菜单选项执行不同的异步任务,显示对应的数据内容
switch (position) {
case 0:
imgQuery.setVisibility(View.GONE);
newMyTask().execute(topDao);
break;
case 1:
newMyTask().execute(newsDao);
break;
case 2:
newMyTask().execute(wikiDao);
break;
case 3:
new MyTask().execute(blogsDao);
break;
}
}
});
6. 分离出来的模板例子
在MainActivity中显示选中的滑动菜单选项的名称
(1) main.xml (MainActivity)
<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:orientation="vertical"><RelativeLayout android:layout_width="fill_parent"android:layout_height="wrap_content"android:background="@drawable/sso_topbar"><ImageButton android:layout_marginLeft="5dip"android:layout_centerVertical="true"android:id="@+id/imgbtn_top_left"android:layout_width="wrap_content"android:layout_height="wrap_content"android:background="@drawable/v5_0_1_flipper_head_flip"/><TextView android:layout_toRightOf="@id/imgbtn_top_left"android:id="@+id/tv_top_center"android:layout_width="wrap_content"android:layout_height="wrap_content"android:text="@string/tv_top_center"android:textColor="@color/whilte"android:layout_centerVertical="true"android:layout_marginLeft="25dip"/><ImageButton android:id="@+id/imgbtn_top_right"android:layout_width="wrap_content"android:layout_height="wrap_content"android:background="@drawable/feed_refresh_arrow_pressed"android:layout_alignParentRight="true"android:layout_centerVertical="true"android:layout_marginRight="5dip"/></RelativeLayout><TextViewandroid:id="@+id/show_submenu_content"android:layout_width="wrap_content"android:layout_height="wrap_content"/></LinearLayout>
(2)fragment_left_bottom.xml (滑动菜单的布局文件)
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent"android:layout_height="fill_parent"android:background="@drawable/renren_news_first_image_bg"android:orientation="vertical" ><!-- 顶部头像,姓名,标签 --><include layout="@layout/left_bottom_top" /><ScrollViewandroid:layout_width="fill_parent"android:layout_height="wrap_content" ><LinearLayoutandroid:layout_width="fill_parent"android:layout_height="wrap_content"android:orientation="vertical" ><!-- 常用 --><TextViewandroid:id="@+id/left_tv_commom"android:layout_width="wrap_content"android:layout_height="wrap_content"android:paddingBottom="3dip"android:paddingLeft="20dip"android:paddingTop="3dip"android:text="@string/left_bottom_commom"android:textColor="@color/whilte" /><ImageViewandroid:layout_width="fill_parent"android:layout_height="wrap_content"android:background="@drawable/v5_0_1_divider_new"/><!-- 常用列表 --><!-- 常用列表与更多列表使用同一个item布局 自定义适配器 --><com.pps.myrenren.custom.MyListView android:id="@+id/listview_common"android:layout_width="fill_parent"android:layout_height="wrap_content"android:cacheColorHint="#00000000"android:divider="@drawable/v5_0_1_divider_line_new"/><TextViewandroid:id="@+id/left_tv_more"android:layout_width="wrap_content"android:layout_height="wrap_content"android:paddingBottom="3dip"android:paddingLeft="20dip"android:paddingTop="3dip"android:text="@string/left_bottom_more"android:textColor="@color/whilte" /><ImageViewandroid:layout_width="fill_parent"android:layout_height="wrap_content"android:background="@drawable/v5_0_1_divider_new"/><!-- 更多列表 --><com.pps.myrenren.custom.MyListView android:id="@+id/listview_more"android:layout_width="fill_parent"android:layout_height="wrap_content"android:cacheColorHint="#00000000"android:divider="@drawable/v5_0_1_divider_line_new"/><!-- <TextViewandroid:id="@+id/left_tv_recommend"android:layout_width="wrap_content"android:layout_height="wrap_content"android:paddingBottom="3dip"android:paddingLeft="20dip"android:paddingTop="3dip"android:text="@string/left_bottom_recommend"android:textColor="@color/whilte" /><ImageViewandroid:layout_width="fill_parent"android:layout_height="wrap_content"android:background="@drawable/v5_0_1_divider_line_new"/><ListView android:id="@+id/listview_recommend"android:layout_width="fill_parent"android:layout_height="wrap_content"android:cacheColorHint="#00000000"android:divider="@drawable/v5_0_1_divider_new"/><TextViewandroid:id="@+id/left_tv_app"android:layout_width="wrap_content"android:layout_height="wrap_content"android:paddingBottom="3dip"android:paddingLeft="20dip"android:paddingTop="3dip"android:text="@string/left_bottom_app"android:textColor="@color/whilte" /><ImageViewandroid:layout_width="fill_parent"android:layout_height="wrap_content"android:background="@drawable/v5_0_1_divider_line_new"/><ListView android:id="@+id/listview_app"android:layout_width="fill_parent"android:layout_height="wrap_content"android:cacheColorHint="#00000000"android:divider="@drawable/v5_0_1_divider_new"/> --><TextViewandroid:id="@+id/left_tv_setting"android:layout_width="wrap_content"android:layout_height="wrap_content"android:paddingBottom="3dip"android:paddingLeft="20dip"android:paddingTop="3dip"android:text="@string/left_bottom_setting"android:textColor="@color/whilte" /> <ImageViewandroid:layout_width="fill_parent"android:layout_height="wrap_content"android:background="@drawable/v5_0_1_divider_new"/><com.pps.myrenren.custom.MyListView android:id="@+id/listview_setting"android:layout_width="fill_parent"android:layout_height="wrap_content"android:cacheColorHint="#00000000"android:divider="@drawable/v5_0_1_divider_line_new"/></LinearLayout></ScrollView></LinearLayout>
(3) menu_frame.xml 滑动菜单布局文件(装载Fragment的FrameLayout容器)
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"android:id="@+id/menu_frame"android:layout_width="match_parent"android:layout_height="match_parent" />
(4) MainActivity.java
Key:在Activtiy中实现在(5)中[LeftBottomFragment.java]定义的回调方法
package com.pps.myrenren.activity;import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.ImageButton;
import android.widget.TextView;import com.jeremyfeinstein.slidingmenu.lib.SlidingMenu;
import com.jeremyfeinstein.slidingmenu.lib.app.SlidingFragmentActivity;public class MainActivity extends SlidingFragmentActivity implements LeftBottomFragment.SLMenuListOnItemClickListener{private ImageButton imgbtn_top_left;@Overridepublic void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);this.requestWindowFeature(Window.FEATURE_NO_TITLE);setContentView(R.layout.main);imgbtn_top_left=(ImageButton)this.findViewById(R.id.imgbtn_top_left);imgbtn_top_left.setOnClickListener(new OnClickListener() { @Overridepublic void onClick(View v) {/*Tip1: Toggle the SlidingMenu. If it is open, it will be closed, and vice versa.*/toggle(); }});//Initial Sliding MenuinitSlidingMenu(savedInstanceState);}//0628@Overridepublic void selectItem(int position,String title){//toggle();showContent();//hide the menu TextView tv = (TextView)findViewById(R.id.show_submenu_content);tv.setText(title);}/*** Initial Sliding Menu*/private void initSlidingMenu(Bundle savedInstanceState) {// 设置滑动菜单的视图setBehindContentView(R.layout.menu_frame);getSupportFragmentManager().beginTransaction().replace(R.id.menu_frame, new LeftBottomFragment()).commit(); // 实例化滑动菜单对象SlidingMenu sm = getSlidingMenu();// 设置滑动阴影的宽度sm.setShadowWidthRes(R.dimen.shadow_width);// 设置滑动阴影的图像资源sm.setShadowDrawable(R.drawable.shadow);// 设置滑动菜单视图的宽度sm.setBehindOffsetRes(R.dimen.slidingmenu_offset);// 设置渐入渐出效果的值sm.setFadeDegree(0.35f);// 设置触摸屏幕的模式sm.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN); }
}
(5)LeftBottomFragment.java
Key:在菜单Fragment中定义回调函数 将Fragment的信息传递到Activity
package com.pps.myrenren.activity;import java.util.ArrayList;
import java.util.List;import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;import com.pps.myrenren.adapter.CommonOrMoreAdapter;
import com.pps.myrenren.adapter.SettingAdapter;
import com.pps.myrenren.model.ItemComOrMoreModel;
import com.pps.myrenren.model.ItemSettingModel;public class LeftBottomFragment extends Fragment{private View mView;private Context mContext;private ListView listview_common;private ListView listview_more;private ListView listview_setting;private List<ItemComOrMoreModel> commonModels; //常用列表的Item集合private List<ItemComOrMoreModel> moreModels; //更多列表的item集合private List<ItemSettingModel> settingModels; //设置列表的item集合private SLMenuListOnItemClickListener mCallbacks;//0628//Key:public void onAttach(Activity activity){ super.onAttach(activity); //如果该Acitivity没有实现Callbacks接口 if(!(activity instanceof SLMenuListOnItemClickListener)){ try { throw new Exception("LeftBottomFragment所在的Activity" + "必须实现Callbacks接口"); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } //定义回调函数的接口对象的实例化---//把该Activity当成Callbacks对象 mCallbacks = (SLMenuListOnItemClickListener) activity; } public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) {if (null == mView) {mView = inflater.inflate(R.layout.fragment_left_bottom, container,false);initView();initValidata();bindData();initialClickListener();//}return mView;}/*** 初始化界面元素*/private void initView() {//---mView.findViewById() not .findViewById()listview_common = (ListView) mView.findViewById(R.id.listview_common);listview_more = (ListView) mView.findViewById(R.id.listview_more);listview_setting = (ListView) mView.findViewById(R.id.listview_setting);}/*** 初始化变量*/private void initValidata() {mContext = mView.getContext();commonModels=new ArrayList<ItemComOrMoreModel>();moreModels=new ArrayList<ItemComOrMoreModel>();settingModels=new ArrayList<ItemSettingModel>();//1:进行构造常用列表中的数据,图标,名称,数量Integer[] common_icon_id = new Integer[] {R.drawable.v5_2_1_desktop_list_newsfeed,R.drawable.v5_2_1_desktop_list_message,R.drawable.v5_2_1_desktop_list_chat,R.drawable.v5_2_1_desktop_list_friends,R.drawable.v5_2_1_desktop_list_search,R.drawable.v5_9_3_desktop_list_barcode };String[] arrays_commom=mContext.getResources().getStringArray(R.array.arrays_commom);int[] common_number=new int[]{0,1,2,3,4,1};for(int i=0;i<common_icon_id.length;i++){ItemComOrMoreModel commcon=new ItemComOrMoreModel(common_icon_id[i], arrays_commom[i], common_number[i]);commonModels.add(commcon);}//2:进行构造更多列表中的数据,图标,名称,数量Integer[] more_icon_id=new Integer[]{R.drawable.v5_2_1_desktop_list_location,R.drawable.v5_2_1_desktop_list_page,R.drawable.v5_2_0_desktop_list_hot,R.drawable.v5_2_1_desktop_list_apps_center};String[] arrays_more=mContext.getResources().getStringArray(R.array.arrays_more);int[] more_number=new int[]{0,0,0,0};for(int i=0;i<more_icon_id.length;i++){ItemComOrMoreModel more=new ItemComOrMoreModel(more_icon_id[i],arrays_more[i],more_number[i]);moreModels.add(more);}//3:进行构造设置列表中的数据,图标,名称Integer[] setting_icon_id=new Integer[]{R.drawable.v_5_8day_mode_unselected,R.drawable.v5_2_1_desktop_list_settings,R.drawable.v5_2_1_desktop_list_log_out};String[] arrays_setting=mContext.getResources().getStringArray(R.array.arrays_setting);for(int i=0;i<setting_icon_id.length;i++){ItemSettingModel setting=new ItemSettingModel(setting_icon_id[i],arrays_setting[i]);settingModels.add(setting);} }/*** 绑定数据*/private void bindData() {//创建适配器并且进行绑定数据到listview中listview_common.setAdapter(new CommonOrMoreAdapter(mContext, commonModels));listview_more.setAdapter(new CommonOrMoreAdapter(mContext, moreModels));listview_setting.setAdapter(new SettingAdapter(mContext, settingModels));}//0628:点击滑动菜单子选项的回调接口public interface SLMenuListOnItemClickListener{public void selectItem(int position,String title);}/*菜单选项单击响应事件的监听函数*/public void initialClickListener(){//listview_common.setOnItemClickListener(new OnItemClickListener(){@Overridepublic void onItemClick(AdapterView<?> parent, View view, int position,long id) {//激发mCallbacks的selectItem方法 mCallbacks.selectItem(position, commonModels.get(position).getName()); }});listview_more.setOnItemClickListener(new OnItemClickListener(){@Overridepublic void onItemClick(AdapterView<?> parent, View view, int position,long id) {mCallbacks.selectItem(position, moreModels.get(position).getName());}});listview_setting.setOnItemClickListener(new OnItemClickListener(){@Overridepublic void onItemClick(AdapterView<?> parent, View view, int position,long id) {// TODO Auto-generated method stubmCallbacks.selectItem(position, settingModels.get(position).getName());}});}}
(6)其它文件 省略
Eoe客户端源码分析---SlidingMenu的使用相关推荐
- grpc-go客户端源码分析
grpc-go客户端源码分析 代码讲解基于v1.37.0版本. 和grpc-go服务端源码分析一样,我们先看一段示例代码, const (address = "localhost:50051 ...
- TeamTalk客户端源码分析七
TeamTalk客户端源码分析七 一,CBaseSocket类 二,select模型 三,样例分析:登录功能 上篇文章我们分析了network模块中的引用计数,智能锁,异步回调机制以及数据的序列化和反 ...
- 人人网官方Android客户端源码分析(1)
ContentProvider是不同应用程序之间进行数据交换的标准API,ContentProvider以某种Uri的形式对外提供数据,允许其他应用访问或修改数据;其他应用程序使用ContentRes ...
- mosquitto客户端对象“struct mosquitto *mosq”管理下篇(mosquitto2.0.15客户端源码分析之四)
文章目录 前言 5 设置网络参数 5.1 客户端连接服务器使用的端口号 `mosq->port` 5.2 指定绑定的网络地址 `mosq->bind_address` 5.3 客户端连接服 ...
- WordPress Blog Android客户端源码分析(一)
一直想找一个大型的Android开源项目进行分析,由于自身和导师课程需要选择了wordpress的Android客户端源码进行学习和解读.源码github官方下载地址:开源项目地址.分析源码的最佳手段 ...
- TeamTalk源码分析(十一) —— pc客户端源码分析
--写在前面的话 在要不要写这篇文章的纠结中挣扎了好久,就我个人而已,我接触windows编程,已经六七个年头了,尤其是在我读研的三年内,基本心思都是花在学习和研究windows程序上 ...
- BT客户端源码分析之八:BT对等连接的建立过程
作者:小马哥 日期:2005-01-09 rstevens2008 At hotmail.com 版权所有,未经允许,不得转载 转载请注明出处: http://www.wlm.com.cn/openi ...
- Netty学习笔记(一)Netty客户端源码分析
最近在学些BIO,NIO相关的知识,也学习了下Netty和它的源码,做个记录,方便以后继续学习,如果有错误的地方欢迎指正 如果不了解BIO,NIO这些基础知识,可以看下我的如下博客 IO中的阻塞.非阻 ...
- Tars-Java客户端源码分析
一.基本RPC框架简介 在分布式计算中,远程过程调用(Remote Procedure Call,缩写 RPC)允许运行于一台计算机的程序调用另一个地址空间计算机的程序,就像调用本地程序一样,无需额外 ...
最新文章
- ElasticSearch 索引 VS MySQL 索引
- 2015生命之旅---第一站重庆
- SAP 电商云 Spartacus UI 实现的 ngrx-router-store.js 的 serializer
- mysql5.6定时备份_Mysql自动备份
- map分组后取前10个_java中list里面存放map,根据map中的某两个个字段进行排序
- (14)Verilog数据类型-基本语法(二)(第3天)
- 多重背包单调队列优化思路_多重背包问题
- 运营商宣传的volte语音高清有啥好处啊?
- Java开发入门与实战!打印杨辉三角java代码
- 微服务的隔离和熔断机制
- linux英英词典项目,五大主流英英词典(ESL)比较使用测评报告
- 基本共射放大电路的工作原理
- MySQL 5.7 深度解析: JSON数据类型使用
- 计算机的用途英语作文带翻译,关于计算机的英文作文带翻译
- 在打破传统保险业的“玻璃屋顶” 之前,AI+保险还需跨过几道坎
- React hooks学习 -- “useContext”
- 彷徨 | Hive---报表统计
- Marvell交换芯片88E6321/88E6320驱动总结-寄存器篇
- 包头钢铁职业技术学院题库计算机,计算机-包头钢铁职业技术学院.DOC
- 程序求1!+2!+3!+...+1000!的和, 求1到1000阶乘之和