android - Moto360 addview with black bar on bottom -



android - Moto360 addview with black bar on bottom -

everyone. seek attach total screen view moto360. however, when works on lg/samsung square devices. left black out bar on bottom, same size of original black bar on bottom. bug or what? ever found happened?

here's code:

displaymetrics metrics = getapplicationcontext().getresources().getdisplaymetrics(); float width = metrics.widthpixels; float height = metrics.heightpixels; log.d(tag, "width: " + width + " height:" + height); // attatch view windows windowmanager.layoutparams wmparams = new windowmanager.layoutparams(); wmparams.type = layoutparams.type_system_error; wmparams.format = pixelformat.rgba_8888; wmparams.flags = layoutparams.flag_not_touchable | layoutparams.flag_not_focusable | layoutparams.type_system_overlay; wmparams.gravity = gravity.top | gravity.top; wmparams.x = 0; wmparams.y = 0; wmparams.width = metrics.widthpixels; wmparams.height = metrics.heightpixels; wmanager.addview(view, wmparams);

by way, alter metrics.widthpixels match_parent not working.

any clue appreciated. suspect bug on moto360 rom consider screen size (real space - bottom bar size). so, when view attached, homecoming black space on bottom.

android android-wear moto-360

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -