android-developers
[Arriba] [Todas las Listas]

Re: [android-developers] Fuerza 4k modo de exhibición en Android con pr

To: Android Developers <android-developers@xxxxxxxxxxxxxxxx>
Subject: Re: [android-developers] Fuerza 4k modo de exhibición en Android con preferedDisplayMode
From: youssef EL MOUMNI <youssef.elmoumni89@xxxxxxxxx>
Date: Tue, 8 Aug 2017 07:45:00 -0700 (PDT)
Delivery-date: Tue, 08 Aug 2017 10:45:59 -0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=Aru4uxqhKwWv2ajpUMpYDI5JNb0JBUPv/3vcBF3bOl4=; b=Hm+Lzx1DiuE4BmhWpngc9akkJZlGNYX/kUY3IrlvY6NpHn2Y/rSJl/fHeIFJK+QX7z nqUwWvJ7L/9lmwOwVECUbbKC45kY++fquchLrrX23BUmh1YxlsHWCbWatOkHuyDT+R4J 9JqEmH+UlFPwhZXXNa5s+kk4Y/cyUCmeRyydTXH7tBppWwg+YxIq/mJtSX23FLTN2e3g 1TTVxpqSUxMafxWIIsifJVw5t4Z/qpnWBWSzhoslt/xUDYtmOVoxkz5tkHs2GHpBD/F9 FryAoDfcZYr5AQRyVfvnJZQ8JQlDxaGglQGCZhmLE0WYtswlXDs8i2W2RMZ2Q5DwP8Yb YKmA==
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=Aru4uxqhKwWv2ajpUMpYDI5JNb0JBUPv/3vcBF3bOl4=; b=Ii5ZS5RKjJt5gVn5R+BTx6LIOWlmXrDmUTu/BJp/qNCXolsZ3L1PZh8v4OFvaZJQ3+ xrXYUkLqPMSVnet4ySggNvh5kSdrDvLqIyq5OiDXYfWI/BpURqUGAlfh98bkoXulbWoN wWNhbPswXeskwoq41E5ZAaErd5GNFOWy7ZuzvFBggNCeTF1vVK8w6+SclIqgeYwAM4Yq JMkrcNWkgDOaPcTJy5vMN0sHOFgy9eqPRhNyYhGWJmvIC3oCm9ok8q8LTrgLSJ+ti6LP s4Dkn/zLd/JiwGiDfjQh65OILEEXiSRo0EFyYciCJ4cd2xMeqlKOorzSG53Lj86wF/iK I8hQ==
Envelope-to: traductor@xxxxxxxxxxx
In-reply-to: <CACaNmX3ES_jDLncB5yut2KeMiMuq7VWF1BYFx+01fp6GhwRsGw@mail.gmail.com>
List-archive: <https://groups.google.com/group/android-developer>
List-help: <https://groups.google.com/support/>, <mailto:android-developers+help@googlegroups.com>
List-id: <android-developers.googlegroups.com>
List-post: <https://groups.google.com/group/android-developers/post>, <mailto:android-developers@googlegroups.com>
List-subscribe: <https://groups.google.com/group/android-developers/subscribe>, <mailto:android-developers+subscribe@googlegroups.com>
List-unsubscribe: <mailto:googlegroups-manage+364598216046+unsubscribe@googlegroups.com>, <https://groups.google.com/group/android-developers/subscribe>
Mailing-list: list android-developers@xxxxxxxxxxxxxxxx; contact android-developers+owners@xxxxxxxxxxxxxxxx
References: <4d4c833d-0aa1-4b17-9e60-ad4bf6db9b16@googlegroups.com> <CACaNmX3ES_jDLncB5yut2KeMiMuq7VWF1BYFx+01fp6GhwRsGw@mail.gmail.com>
Reply-to: android-developers@xxxxxxxxxxxxxxxx
Sender: android-developers@xxxxxxxxxxxxxxxx
*Thanks Para la respuesta Marina. Estoy comprobando los modos, probando en un *Xperia 
*Z5 *Premium, y hay 2 modos: 1080*p y 4*k. Trabajaba bastante bien 
en *Android *M, pero en el *N actualiza es *scaling el teléfono entero *UI a 4*k y la interfaz 
de teléfono entera es *messed arriba. No el *app *UI, pero el teléfono 
entero, no veo la barra de navegación inferior por ejemplo, y la barra 
de estado llena 1/4 de la pantalla con el tiempo, red y *wifi iconos. No tengo ninguna idea por qué está haciendo que (o incluso si es supuesto para ser haciendo aquel).

En martes, 8 agosto 2017 16:40:06 *UTC+2, Marina *Cuello escribió:
>
> podrías comprobar los modos apoyados en el dispositivo, y entonces comprobar 
> el *pixel medida en aquellos para seleccionar el más cercano a lo que quieres.
>
> Marina
>
> En *Tue, *Aug 8, 2017 en 9:49 AM, *youssef EL *MOUMNI <youssef.e...@xxxxxxxxx 
> <*javascript:>> escribió:
>
>> *Hi todo el mundo,
>>
>>
>> estoy intentando forzar 4*k modo de exhibición para apuntar teléfonos con 4*k pantallas. Trabajaba bastante bien con *Android *M y tuve bonito 4*k el apoyo que utiliza
>>
>> *WindowManager.*LayoutParams *params = *getWindow().*getAttributes();
>>         *params.*preferredDisplayModeId = 2;
>>         *getWindow().*setAttributes(*params);
>>
>> Después de que el *Android *N actualizarlo cambiado el *behavior completamente, la interfaz 
>> entera consigue *scaled manera sobre los límites de pantalla donde sólo veo una porción 
>> de la pantalla, incluyendo la barra de estado y los botones de navegación en 
>> el fondo. Para dejar el *app necesito cerrarlo de *Android Estudio.
>>
>> Cualquier idea cómo para conseguir el *Android *M comportamiento atrás?
>>
>> -- 
>> Recibiste este mensaje porque eres *subscribed al *Google Grupos 
>> "*Android *Developers" grupo.
>> A *unsubscribe de este grupo y la parón que recibe *emails de él, enviar un 
>> *email a *android-*developers+unsubscribe@xxxxxxxxxxxxxxxx <*javascript:>.
>> A correo a este grupo, envía *email a *android-d...@xxxxxxxxxxxxxxxx 
>> <*javascript:>.
>> Visita este grupo en *https://grupos.*google.*com/Grupo/*android-*developers.
>> Para ver esta discusión en la visita de web 
>> *https://grupos.*google.*com/*d/*msgid/*android-*developers/4*d4*c833*d-0*aa1-4*b17-9*e60-anuncio4*bf6*db9*b16%40*googlegroups.*com 
>> <*https://Grupos.*google.*com/*d/*msgid/*android-*developers/4*d4*c833*d-0*aa1-4*b17-9*e60-anuncio4*bf6*db9*b16%40*googlegroups.*com?*utm_Medio=*email&*utm_fuente=*footer>
>> .
>> Para más opciones, visita *https://grupos.*google.*com/*d/*optout.
>>
>
>

-- 
Recibiste este mensaje porque eres *subscribed al *Google Grupos "*Android *Developers" grupo.
A *unsubscribe de este grupo y la parón que recibe *emails de él, enviar un *email a *android-*developers+unsubscribe@xxxxxxxxxxxxxxxx.
A correo a este grupo, envía *email a *android-developers@xxxxxxxxxxxxxxxx.
Visita este grupo en *https://grupos.*google.*com/Grupo/*android-*developers.
Para ver esta discusión en la visita de web *https://grupos.*google.*com/*d/*msgid/*android-*developers/0676#uno9*dd-699*d-4687-9*db4-*cf31*d7*cb5#uno1*b%40*googlegroups.*com.
Para más opciones, visita *https://grupos.*google.*com/*d/*optout.
Thanks for the reply Marina. I am checking the modes, testing on an Xperia 
Z5 Premium, and there are 2 modes: 1080p and 4k. It was working pretty well 
on Android M, but on the N update it's scaling the whole phone UI to 4k and 
the whole phone interface is messed up. Not the app UI, but the whole 
phone, I don't see the bottom navigation bar for example, and the status 
bar fills 1/4 of the screen with the time, network and wifi icons. I have 
no idea why it's doing that (or even if it's supposed to be doing that).

On Tuesday, 8 August 2017 16:40:06 UTC+2, Marina Cuello wrote:
>
> You could check the supported modes on the device, and then check the 
> pixel size on those to select the one closer to what you want.
>
> Marina
>
> On Tue, Aug 8, 2017 at 9:49 AM, youssef EL MOUMNI <youssef.e...@xxxxxxxxx 
> <javascript:>> wrote:
>
>> Hi everyone,
>>
>>
>> I am trying to force 4k display mode to target phones with 4k screens. It 
>> was working pretty well with Android M and I had beautiful 4k support using
>>
>> WindowManager.LayoutParams params = getWindow().getAttributes();
>>         params.preferredDisplayModeId = 2;
>>         getWindow().setAttributes(params);
>>
>> After the Android N update it changed the behavior completely, the whole 
>> interface gets scaled way over the screen limits where I only see a portion 
>> of the screen, including the status bar and the navigation buttons on the 
>> bottom. to leave the app I need to close it from Android Studio.
>>
>> Any idea how to get the Android M behaviour back?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Android Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to android-developers+unsubscribe@xxxxxxxxxxxxxxxx <javascript:>.
>> To post to this group, send email to android-d...@xxxxxxxxxxxxxxxx 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/android-developers.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/android-developers/4d4c833d-0aa1-4b17-9e60-ad4bf6db9b16%40googlegroups.com 
>> <https://groups.google.com/d/msgid/android-developers/4d4c833d-0aa1-4b17-9e60-ad4bf6db9b16%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to android-developers@xxxxxxxxxxxxxxxx.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/0676a9dd-699d-4687-9db4-cf31d7cb5a1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<Anterior por Tema] Tema Actual [Siguiente por Tema>