当前位置: 首页 > news >正文

自己怎么做免费网站做seo推广公司

自己怎么做免费网站,做seo推广公司,郑州优化网站收费标准,深圳做企业网站的公前言 分屏:是指一个屏幕分出多个窗口,分别显示不同应用的界面,这在当前的手机设备中很常见。多屏:是指一个设备存在多个屏幕,这些可能是虚拟屏幕或者实体硬件屏幕,不同的应用同时显示在不同的屏幕中&#…

前言

  • 分屏:是指一个屏幕分出多个窗口,分别显示不同应用的界面,这在当前的手机设备中很常见。
  • 多屏:是指一个设备存在多个屏幕,这些可能是虚拟屏幕或者实体硬件屏幕,不同的应用同时显示在不同的屏幕中,或者相同应用的不同页面同时现在在不同的屏幕中。

在我们日常生活中所接触的大部分以Android系统为载体的智能化硬件设备,大多都只有一个屏幕,但是有的时候会出现需要多个屏幕的场景,特别是随着新能源汽车行业竞争的白热化,越来越多的车厂倾向于通过多屏幕来获得消费者的青睐,比如为汽车主驾副驾所对应的主屏副屏等等,这就导致车机系统的多屏幕场景越来越多;而在智能手机端,多屏协助的场景也越来越多,比如将手机屏幕内容实时投放到大屏电视上已得到更好的视觉体验;

一、模拟辅助设备

1.1、模拟辅助设备功能开关

1、在Android开发者选项里面有一个模拟辅助设备功能开关。
模拟辅助设备
2、此功能默认为无,当我们点击并选择一个分辨率的时候,屏幕上会多出来一个小窗口。
在这里插入图片描述
这个小窗口其实就是系统新创建的一个虚拟屏幕,只不过Android系统将该虚拟屏幕的视图实时绘制在了此窗口上。

1.2、屏幕设备信息

1、我们通过adb执行dumpsys display指令,可以看到系统中当前存在的屏幕设备的相关信息。

  Logical Displays: size=1Display 0:mDisplayId=0mPhase=1mLayerStack=0mHasContent=truemDesiredDisplayModeSpecs={baseModeId=1 allowGroupSwitching=false primaryRefreshRateRange=[0 60] appRequestRefreshRateRange=[0 60]}mRequestedColorMode=0mDisplayOffset=(0, 0)mDisplayScalingDisabled=falsemPrimaryDisplayDevice=内置屏幕mBaseDisplayInfo=DisplayInfo{"内置屏幕", displayId 0", displayGroupId 0, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS, FLAG_TRUSTED, real 1080 x 2400, largest app 1080 x 2400, smallest app 1080 x 2400, appVsyncOff 1000000, presDeadline 16666666, mode 1, defaultMode 1, modes [{id=1, width=1080, height=2400, fps=60.000004, alternativeRefreshRates=[90.0, 120.00001]}, {id=2, width=1080, height=2400, fps=120.00001, alternativeRefreshRates=[60.000004, 90.0]}, {id=3, width=1080, height=2400, fps=90.0, alternativeRefreshRates=[60.000004, 120.00001]}], hdrCapabilities HdrCapabilities{mSupportedHdrTypes=[1, 2, 3, 4], mMaxLuminance=420.0, mMaxAverageLuminance=210.1615, mMinLuminance=0.323}, userDisabledHdrTypes [], minimalPostProcessingSupported false, rotation 0, state ON, type INTERNAL, uniqueId "local:4630946545580055170", app 1080 x 2400, density 440 (419.449 x 419.257) dpi, layerStack 0, colorMode 0, supportedColorModes [0, 7, 9], address {port=130, model=0x40446d58ef1f1a}, deviceProductInfo DeviceProductInfo{name=, manufacturerPnpId=QCM, productId=1, modelYear=null, manufactureDate=ManufactureDate{week=27, year=2006}, connectionToSinkType=0}, removeMode 0, refreshRateOverride 0.0, brightnessMinimum 0.0, brightnessMaximum 1.0, brightnessDefault 0.07496032, installOrientation ROTATION_0}mOverrideDisplayInfo=DisplayInfo{"内置屏幕", displayId 0", displayGroupId 0, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS, FLAG_TRUSTED, real 1080 x 2400, largest app 2313 x 2269, smallest app 1080 x 949, appVsyncOff 1000000, presDeadline 16666666, mode 1, defaultMode 1, modes [{id=1, width=1080, height=2400, fps=60.000004, alternativeRefreshRates=[90.0, 120.00001]}, {id=2, width=1080, height=2400, fps=120.00001, alternativeRefreshRates=[60.000004, 90.0]}, {id=3, width=1080, height=2400, fps=90.0, alternativeRefreshRates=[60.000004, 120.00001]}], hdrCapabilities HdrCapabilities{mSupportedHdrTypes=[1, 2, 3, 4], mMaxLuminance=420.0, mMaxAverageLuminance=210.1615, mMinLuminance=0.323}, userDisabledHdrTypes [], minimalPostProcessingSupported false, rotation 0, state ON, type INTERNAL, uniqueId "local:4630946545580055170", app 1080 x 2269, density 440 (419.449 x 419.257) dpi, layerStack 0, colorMode 0, supportedColorModes [0, 7, 9], address {port=130, model=0x40446d58ef1f1a}, deviceProductInfo DeviceProductInfo{name=, manufacturerPnpId=QCM, productId=1, modelYear=null, manufactureDate=ManufactureDate{week=27, year=2006}, connectionToSinkType=0}, removeMode 0, refreshRateOverride 0.0, brightnessMinimum 0.0, brightnessMaximum 1.0, brightnessDefault 0.07496032, installOrientation ROTATION_0}mRequestedMinimalPostProcessing=falsemFrameRateOverrides=[]mPendingFrameRateOverrideUids={}

2、默认情况下系统只有一个屏幕设备信息,而在我们开启模拟辅助显示设备功能开关之后,Android系统中便会多出来一个屏幕设备信息。

  Logical Displays: size=2Display 0:mDisplayId=0mPhase=1mLayerStack=0mHasContent=truemDesiredDisplayModeSpecs={baseModeId=1 allowGroupSwitching=false primaryRefreshRateRange=[0 60] appRequestRefreshRateRange=[0 60]}    mRequestedColorMode=0mDisplayOffset=(0, 0)mDisplayScalingDisabled=falsemPrimaryDisplayDevice=内置屏幕mBaseDisplayInfo=DisplayInfo{"内置屏幕", displayId 0", displayGroupId 0, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS, FLAG_TRUSTED, real 1080 x 2400, largest app 1080 x 2400, smallest app 1080 x 2400, appVsyncOff 1000000, presDeadline 16666666, mode 1, defaultMode 1, modes [{id=1, width=1080, height=2400, fps=60.000004, alternativeRefreshRates=[90.0, 120.00001]}, {id=2, width=1080, height=2400, fps=120.00001, alternativeRefreshRates=[60.000004, 90.0]}, {id=3, width=1080, height=2400, fps=90.0, alternativeRefreshRates=[60.000004, 120.00001]}], hdrCapabilities HdrCapabilities{mSupportedHdrTypes=[1, 2, 3, 4], mMaxLuminance=420.0, mMaxAverageLuminance=210.1615, mMinLuminance=0.323}, userDisabledHdrTypes [], minimalPostProcessingSupported false, rotation 0, state ON, type INTERNAL, uniqueId "local:4630946545580055170", app 1080 x 2400, density 440 (419.449 x 419.257) dpi, layerStack 0, colorMode 0, supportedColorModes [0, 7, 9], address {port=130, model=0x40446d58ef1f1a}, deviceProductInfo DeviceProductInfo{name=, manufacturerPnpId=QCM, productId=1, modelYear=null, manufactureDate=ManufactureDate{week=27, year=2006}, connectionToSinkType=0}, removeMode 0, refreshRateOverride 0.0, brightnessMinimum 0.0, brightnessMaximum 1.0, brightnessDefault 0.07496032, installOrientation ROTATION_0}mOverrideDisplayInfo=DisplayInfo{"内置屏幕", displayId 0", displayGroupId 0, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS, FLAG_TRUSTED, real 1080 x 2400, largest app 2313 x 2269, smallest app 1080 x 949, appVsyncOff 1000000, presDeadline 16666666, mode 1, defaultMode 1, modes [{id=1, width=1080, height=2400, fps=60.000004, alternativeRefreshRates=[90.0, 120.00001]}, {id=2, width=1080, height=2400, fps=120.00001, alternativeRefreshRates=[60.000004, 90.0]}, {id=3, width=1080, height=2400, fps=90.0, alternativeRefreshRates=[60.000004, 120.00001]}], hdrCapabilities HdrCapabilities{mSupportedHdrTypes=[1, 2, 3, 4], mMaxLuminance=420.0, mMaxAverageLuminance=210.1615, mMinLuminance=0.323}, userDisabledHdrTypes [], minimalPostProcessingSupported false, rotation 0, state ON, type INTERNAL, uniqueId "local:4630946545580055170", app 1080 x 2269, density 440 (419.449 x 419.257) dpi, layerStack 0, colorMode 0, supportedColorModes [0, 7, 9], address {port=130, model=0x40446d58ef1f1a}, deviceProductInfo DeviceProductInfo{name=, manufacturerPnpId=QCM, productId=1, modelYear=null, manufactureDate=ManufactureDate{week=27, year=2006}, connectionToSinkType=0}, removeMode 0, refreshRateOverride 0.0, brightnessMinimum 0.0, brightnessMaximum 1.0, brightnessDefault 0.07496032, installOrientation ROTATION_0}mRequestedMinimalPostProcessing=falsemFrameRateOverrides=[]mPendingFrameRateOverrideUids={}Display 2:mDisplayId=2mPhase=1mLayerStack=2mHasContent=falsemDesiredDisplayModeSpecs={baseModeId=4 allowGroupSwitching=false primaryRefreshRateRange=[0 60] appRequestRefreshRateRange=[0 60]}    mRequestedColorMode=0mDisplayOffset=(0, 0)mDisplayScalingDisabled=falsemPrimaryDisplayDevice=叠加视图 #1mBaseDisplayInfo=DisplayInfo{"叠加视图 #1", displayId 2", displayGroupId 0, FLAG_PRESENTATION, FLAG_TRUSTED, real 1280 x 720, largest app 1280 x 720, smallest app 1280 x 720, appVsyncOff 0, presDeadline 33333332, mode 4, defaultMode 4, modes [{id=4, width=1280, height=720, fps=60.000004, alternativeRefreshRates=[]}], hdrCapabilities null, userDisabledHdrTypes [], minimalPostProcessingSupported false, rotation 0, state ON, type OVERLAY, uniqueId "overlay:1", app 1280 x 720, density 213 (213.0 x 213.0) dpi, layerStack 2, colorMode 0, supportedColorModes [0], deviceProductInfo null, removeMode 0, refreshRateOverride 0.0, brightnessMinimum 0.0, brightnessMaximum 0.0, brightnessDefault 0.0, installOrientation ROTATION_0}mOverrideDisplayInfo=DisplayInfo{"叠加视图 #1", displayId 2", displayGroupId 0, FLAG_PRESENTATION, FLAG_TRUSTED, real 1280 x 720, largest app 1280 x 1280, smallest app 720 x 720, appVsyncOff 0, presDeadline 33333332, mode 4, defaultMode 4, modes [{id=4, width=1280, height=720, fps=60.000004, alternativeRefreshRates=[]}], hdrCapabilities null, userDisabledHdrTypes [], minimalPostProcessingSupported false, rotation 0, state ON, type OVERLAY, uniqueId "overlay:1", app 1280 x 720, density 213 (213.0 x 213.0) dpi, layerStack 2, colorMode 0, supportedColorModes [0], deviceProductInfo null, removeMode 0, refreshRateOverride 0.0, brightnessMinimum 0.0, brightnessMaximum 0.0, brightnessDefault 0.0, installOrientation ROTATION_0}mRequestedMinimalPostProcessing=falsemFrameRateOverrides=[]mPendingFrameRateOverrideUids={}

可以发现此事屏幕变成了两个。

二、将页面显示到特定屏幕中

2.1 获取当前屏幕设备信息

1、在Android系统默认情况下,我们新建一个Activity,并将其启动。

DisplayInfoActivity.java

public class DisplayInfoActivity extends AppCompatActivity {@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.main_activity);TextView tvDisplayInfo = findViewById(R.id.tv_display_info);Display display = getDisplay();tvDisplayInfo.setText(display.toString());}
}

main_activity.xml

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertical"><TextViewandroid:id="@+id/tv_display_info"android:layout_width="match_parent"android:layout_height="200dp"android:gravity="center"android:text="屏幕设备信息"android:textColor="#F00"android:textSize="30sp" /></LinearLayout>

2、默认显示效果如下所示。
在这里插入图片描述
通过Activity显示的信息我们可以发现,该页面当前显示的屏幕设备id为0,名字叫做内置屏幕。

2.2 将页面显示到其他屏幕上

1、当我们为Android系统开启了模拟辅助显示设备的功能之后,此时我们通过代码打开一个新的Activity,并为其指定displayid为2,这样这个新的Activity就会显示到这个新的虚拟屏幕中。

DisplayInfoActivity.java

public class DisplayInfoActivity extends AppCompatActivity {@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.main_activity);TextView tvDisplayInfo = findViewById(R.id.tv_display_info);Display display = getDisplay();tvDisplayInfo.setText(display.toString());findViewById(R.id.btn_open_activity).setOnClickListener(new View.OnClickListener() {@Overridepublic void onClick(View view) {Intent intent = new Intent(DisplayInfoActivity.this, DisplayInfoActivity.class);ActivityOptions activityOptions = ActivityOptions.makeBasic();activityOptions.setLaunchDisplayId(2);//指定要显示到displayid为2的屏幕设备上startActivity(intent, activityOptions.toBundle());}});}}

main_activity.xml

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertical"><TextViewandroid:id="@+id/tv_display_info"android:layout_width="match_parent"android:layout_height="200dp"android:gravity="center"android:text="屏幕设备信息"android:textColor="#F00"android:textSize="30sp" /><Buttonandroid:id="@+id/btn_open_activity"android:layout_width="match_parent"android:layout_height="wrap_content"android:text="在模拟辅助设备中显示新页面" />
</LinearLayout>

2、当我们点击按钮的时候,当前页面会从主屏幕消失,并显示到模拟辅助功能所开启的窗口里面。
在这里插入图片描述
通过Activity显示的信息我们可以发现,该页面当前显示的屏幕设备id为2,名字叫做叠加视图,也就是新增的虚拟屏幕设备ID。


文章转载自:
http://imputability.yqsq.cn
http://touchdown.yqsq.cn
http://gnomon.yqsq.cn
http://southbound.yqsq.cn
http://circulative.yqsq.cn
http://conversant.yqsq.cn
http://kunsan.yqsq.cn
http://grobian.yqsq.cn
http://inunction.yqsq.cn
http://beaucoup.yqsq.cn
http://cookery.yqsq.cn
http://repristination.yqsq.cn
http://anemia.yqsq.cn
http://speechify.yqsq.cn
http://rhin.yqsq.cn
http://dendroclimatic.yqsq.cn
http://lacune.yqsq.cn
http://bones.yqsq.cn
http://linearise.yqsq.cn
http://confectioner.yqsq.cn
http://mysophilia.yqsq.cn
http://deodand.yqsq.cn
http://camshaft.yqsq.cn
http://slickster.yqsq.cn
http://hammertoe.yqsq.cn
http://walleye.yqsq.cn
http://jalalabad.yqsq.cn
http://pheochromocytoma.yqsq.cn
http://solfege.yqsq.cn
http://pronounced.yqsq.cn
http://reversional.yqsq.cn
http://fellable.yqsq.cn
http://alterable.yqsq.cn
http://atlantean.yqsq.cn
http://funster.yqsq.cn
http://taungya.yqsq.cn
http://comprizal.yqsq.cn
http://carload.yqsq.cn
http://habiliment.yqsq.cn
http://bretton.yqsq.cn
http://adultery.yqsq.cn
http://sovkhoz.yqsq.cn
http://festology.yqsq.cn
http://escalator.yqsq.cn
http://disemboguement.yqsq.cn
http://sincere.yqsq.cn
http://interspecific.yqsq.cn
http://frb.yqsq.cn
http://cistaceous.yqsq.cn
http://morally.yqsq.cn
http://himalayas.yqsq.cn
http://vtc.yqsq.cn
http://berwickshire.yqsq.cn
http://spicily.yqsq.cn
http://visa.yqsq.cn
http://impanation.yqsq.cn
http://mesoderm.yqsq.cn
http://macropodous.yqsq.cn
http://schutzstaffel.yqsq.cn
http://mattin.yqsq.cn
http://caesarist.yqsq.cn
http://flameproof.yqsq.cn
http://unhidden.yqsq.cn
http://staysail.yqsq.cn
http://parc.yqsq.cn
http://measles.yqsq.cn
http://montadale.yqsq.cn
http://chromomere.yqsq.cn
http://matra.yqsq.cn
http://preterlegal.yqsq.cn
http://habanero.yqsq.cn
http://idiophonic.yqsq.cn
http://strive.yqsq.cn
http://etonian.yqsq.cn
http://breaker.yqsq.cn
http://copter.yqsq.cn
http://soliloquise.yqsq.cn
http://mystery.yqsq.cn
http://tounament.yqsq.cn
http://pseudepigraphy.yqsq.cn
http://spacearium.yqsq.cn
http://stane.yqsq.cn
http://hoarfrost.yqsq.cn
http://brachiocephalic.yqsq.cn
http://wheelhouse.yqsq.cn
http://proceeding.yqsq.cn
http://stall.yqsq.cn
http://hymnody.yqsq.cn
http://desubstantiate.yqsq.cn
http://datolite.yqsq.cn
http://rainwear.yqsq.cn
http://hypoxanthic.yqsq.cn
http://vulpecula.yqsq.cn
http://cosmography.yqsq.cn
http://sodality.yqsq.cn
http://tawney.yqsq.cn
http://kaiserdom.yqsq.cn
http://sone.yqsq.cn
http://wealth.yqsq.cn
http://tetrasepalous.yqsq.cn
http://www.dt0577.cn/news/65315.html

相关文章:

  • 网站模块 带采集大数据精准营销案例
  • 如何用模版做网站大连百度seo
  • 做培训的网站建设温州seo推广外包
  • 网站运营与管理的内容包括网络营销总结
  • 网站关键字排名优化百度推广客户端下载网址
  • 网站建设公司 石景山平台app开发制作
  • 凡科网站制作百度推广代理商加盟
  • 公司网站首页图片素材交换友情链接的注意事项
  • 国外有什么好的网站aso优化榜单
  • 嘉祥网站建设哪家便宜网站seo优化皆宣徐州百都网络不错
  • 连云港做网站设计seo网站优化培
  • 城乡建设委员会官方网站steam交易链接怎么用
  • 如何注册网站免费注册站长之家seo概况查询
  • 网站前端开发上海搜索引擎优化公司排名
  • 网站建设脱颖而出深圳seo
  • 旅游网站的规划与建设开题报告武汉seo计费管理
  • 大网站如何优化株洲seo优化报价
  • 做h5页面的网站网络策划方案
  • 直接在原备案号下增加新网站互联网广告联盟
  • 俄文视频网站开发百度推广怎么推广
  • 如何做网站服务器2021小说排行榜百度风云榜
  • 内容网站淄博网站营销与推广
  • 电子商务网站建设技能实训答案深圳市网络seo推广平台
  • 个人怎么做网站排名优化国外最好的免费建站
  • 如何把网站上传到凡科网络舆情分析研判报告
  • 页面好看的蛋糕网站网站的网络推广
  • go网站做富集分析深圳媒体网络推广有哪些
  • 在线视频网站如何制作北京网站优化seo
  • 南阳建网站企业北京网站seo优化推广
  • 中企网络科技建站优化营商环境心得体会