当前位置: 首页>>代码示例>>Java>>正文


Java ViewServer类代码示例

本文整理汇总了Java中com.android.debug.hv.ViewServer的典型用法代码示例。如果您正苦于以下问题:Java ViewServer类的具体用法?Java ViewServer怎么用?Java ViewServer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ViewServer类属于com.android.debug.hv包,在下文中一共展示了ViewServer类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initOneTime

import com.android.debug.hv.ViewServer; //导入依赖的package包/类
private void initOneTime() {

		getActionBar().setDisplayHomeAsUpEnabled(true);

		String title;
		if (Strings.isNullOrEmpty(episode.getSeriesTitle()))
			title = episode.getEpisodeTitle();
		else if (Strings.isNullOrEmpty(episode.getEpisodeTitle()))
			title = episode.getSeriesTitle();
		else
			title = episode.getSeriesTitle() + " " + episode.getEpisodeTitle();
		setTitle(title);

		setupSystemHider(getResources().getConfiguration());

		ViewServer.get(this).addWindow(this);

		authenticateUI();

		initOneTime = true;
	}
 
开发者ID:aviewdevs,项目名称:aview,代码行数:22,代码来源:EpisodeActivity.java

示例2: onCreate

import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
    if (savedInstanceState != null) {
        // We don't want fragments to be recreated automatically
        savedInstanceState.putParcelable(FRAGMENTS_TAG, null);
    }
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    ButterKnife.bind(this);

    setSupportActionBar(toolbar);

    boolean fixedDrawer = getResources().getBoolean(R.bool.fixed_drawer);
    boolean twoPanes = getResources().getBoolean(R.bool.two_panes);

    Configuration configuration = getResources().getConfiguration();
    int screenWidthDp = configuration.screenWidthDp;
    int screenHeightDp = configuration.screenHeightDp;
    logger.debug("onCreate() width: {}, height: {}", screenWidthDp, screenHeightDp);

    // TODO: Factory.buildViewDelegate(fixedDrawer, twoPanes);
    if (fixedDrawer && twoPanes) {
        delegate = new TabletWideDelegate(this);
    } else if (fixedDrawer) {
        delegate = new PhoneDelegate(this);
    } else {
        delegate = new PhoneDelegate(this);
    }

    navigationView.init(getComponent());
    ViewServer.get(this).addWindow(this);
}
 
开发者ID:TriangleLeft,项目名称:Flashcards,代码行数:33,代码来源:MainActivity.java

示例3: onCreate

import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        context = getApplicationContext();
//        TAG = getTAG();
        application = (DemoApplication) getApplication();
        application.addActivity(this);
        ViewServer.get(this).addWindow(this);
    }
 
开发者ID:BruceHurrican,项目名称:asstudydemo,代码行数:10,代码来源:BaseActivity.java

示例4: onDestroy

import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@Override
protected void onDestroy() {
    application.delActivity(this);
    super.onDestroy();
    recycleUIHandler();
    recycleWorkerHandler();
    ViewServer.get(this).removeWindow(this);
}
 
开发者ID:BruceHurrican,项目名称:asstudydemo,代码行数:9,代码来源:BaseActivity.java

示例5: onCreate

import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    FodexApplication fodexApp = (FodexApplication) getApplication();
    fodexApp.injectMock(this);

    if (BuildConfig.DEBUG) {
        ViewServer.get(this).addWindow(this);
    }
}
 
开发者ID:dyhpoon,项目名称:Fo.dex,代码行数:12,代码来源:BaseFragmentActivity.java

示例6: onResume

import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@Override
protected void onResume() {
    super.onResume();
    if (BuildConfig.DEBUG) {
        ViewServer.get(this).setFocusedWindow(this);
    }
}
 
开发者ID:dyhpoon,项目名称:Fo.dex,代码行数:8,代码来源:BaseFragmentActivity.java

示例7: onDestroy

import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@Override
protected void onDestroy() {
    super.onDestroy();
    if (BuildConfig.DEBUG) {
        ViewServer.get(this).removeWindow(this);
    }
}
 
开发者ID:dyhpoon,项目名称:Fo.dex,代码行数:8,代码来源:BaseFragmentActivity.java

示例8: onCreate

import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    FodexApplication fodexApp = (FodexApplication) getActivity().getApplication();
    fodexApp.injectMock(this);

    if (BuildConfig.DEBUG) {
        ViewServer.get(getActivity()).addWindow(getActivity());
    }
}
 
开发者ID:dyhpoon,项目名称:Fo.dex,代码行数:12,代码来源:BaseFragment.java

示例9: onResume

import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@Override
public void onResume() {
    super.onResume();
    if (BuildConfig.DEBUG) {
        ViewServer.get(getActivity()).setFocusedWindow(getActivity());
    }
}
 
开发者ID:dyhpoon,项目名称:Fo.dex,代码行数:8,代码来源:BaseFragment.java

示例10: onDestroy

import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@Override
public void onDestroy() {
    super.onDestroy();
    if (BuildConfig.DEBUG) {
        ViewServer.get(getActivity()).removeWindow(getActivity());
    }
}
 
开发者ID:dyhpoon,项目名称:Fo.dex,代码行数:8,代码来源:BaseFragment.java

示例11: onCreate

import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    if (BuildConfig.DEBUG) {
        ViewServer.get(this).addWindow(this);
    }
}
 
开发者ID:DavidTPate,项目名称:XKCD-Reader,代码行数:9,代码来源:BaseListActivity.java

示例12: connectHierarchyView

import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@TargetApi(9)
public static void connectHierarchyView(Activity activity)
{
	StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
	StrictMode.setThreadPolicy(policy);
	// Set content view, etc.
	ViewServer.get(activity).addWindow(activity);
}
 
开发者ID:jonathangerbaud,项目名称:Klyph,代码行数:9,代码来源:HierachyViewUtil.java

示例13: onCreate

import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_list);
    if (BuildConfig.DEBUG)
        ViewServer.get(this).addWindow(this);
}
 
开发者ID:bignerdranch,项目名称:android-listview-custom-view,代码行数:8,代码来源:ListActivity.java

示例14: onCreate

import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);

	Injector.inject(this);

	if (BuildConfig.DEBUG) {
		ViewServer.get(this).addWindow(this);
	}
}
 
开发者ID:wemakestuff,项目名称:Teracast,代码行数:11,代码来源:BaseListActivity.java

示例15: onDestroy

import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@Override
protected void onDestroy() {
	super.onDestroy();
	if (BuildConfig.DEBUG) {
		ViewServer.get(this).removeWindow(this);
	}
}
 
开发者ID:wemakestuff,项目名称:Teracast,代码行数:8,代码来源:BaseListActivity.java


注:本文中的com.android.debug.hv.ViewServer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。