android-developers
[Arriba] [Todas las Listas]

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

To: android-developers@xxxxxxxxxxxxxxxx
Subject: Re: [android-developers] Fuerza 4k modo de exhibición en Android con preferedDisplayMode
From: Marina Cuello <marina.eariel@xxxxxxxxx>
Date: Tue, 8 Aug 2017 11:31:43 -0300
Arc-authentication-results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lx9e+8hc; spf=pass (google.com: domain of marina.eariel@xxxxxxxxx designates 2a00:1450:400c:c09::236 as permitted sender) smtp.mailfrom=marina.eariel@xxxxxxxxx; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Arc-authentication-results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lx9e+8hc; spf=pass (google.com: domain of marina.eariel@xxxxxxxxx designates 2a00:1450:400c:c09::236 as permitted sender) smtp.mailfrom=marina.eariel@xxxxxxxxx; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:references:in-reply-to:mime-version:arc-authentication-results :arc-message-signature:sender:dkim-signature:dkim-signature :arc-authentication-results; bh=z7fhFXdKly991pbzX1FQ858iW/XWIuMtG2tiMT1LVaw=; b=SpJMlmmjNXOnXocgVYj7kVjm33xBlXGew0goz0FpxR9I9WSE8dbN9kjAXZODi1qbVj zA5TlJ4DqbwBUjx266wJJzSPyEJlgid3RxTdJBA4v5pPtx27lamlFFyzpvtVkSKFKIwK vK4bNj5I1GsstKrDdl//sIgmQin9VDJCw1FaPqDp2f5zOlSzVFcegRPmZlxjpws2HPAr si/FGm36eDkC1J3sV4GSP8qaNgZHZXOIZTaM5t+Ik1I0oxNFmTpEXUHE8rYEbn3onEuO 7UU2YjOKop8LerwpI2d+vedHlDTfu45xXdzYrqNhf9K5Lmup43d8B+8QXiXbdkjXfENE P/pQ==
Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=WdOmoVcQ5RajVb32O+E02SOlL2d509HXl22dztQx4rA=; b=qz7Xx+lzuPIuSRwQt+2aJUWlzlYUX2fZLPEBf/ipw7MihDLbhIaJ+jO/fTTpg1Gzx7 A4kczfIuyKQ6LxAbMyCr2D5hc/sfVOdK0x7QvNwwfr982K5lnAC+U2BQC0B1+NKV3ASz MTXb4s9DJVJGaJUBQEgv4dnQolzI5TIg7o8+VwlKYCEJEsgxADQ8Bf9N07ESDA7+QlhA 2YWveximDdx3ts16aZew7OuLYINDoQvCnpCBQtIbHODABj/KtXctyxC3XispOCKXV8XV olDC7+eAPiYqP+u/4nfRN/gjTPkxZStJa31oNnjgsob4Amifh5SReiF+tVnYbmAXosB5 p9Vg==
Arc-seal: i=2; a=rsa-sha256; t=1502202789; cv=pass; d=google.com; s=arc-20160816; b=piPGLOz63iNW3SNM3gh5dEpxUQsKQBQqP9sZq84M2dCQ1Hc2QTNRwnaQqEsQZ9crhc aTv35F9dZqPX8peQsVkN8YTElaOlUdOogxPanVpNDlbGCvzWJ/GikTYHkKfIf3u0DgKH hsHIS6ccEZLYBE+54+KoLmK0rmI3FPpIGCs5fOZpm05ezxFoTvyqmiNRhL3mf9JbK6OT UdWq5OawVn0ZAiZDHIVwCSb9zO/tp17fbom2u0W9swfcWSqecRwtHO5pqVyV5+gqeIzq aWbkUUIbvyj/5uRAdOlWUi2u/JHrOAorKaiDau/jYq7EN2j1LhigAWb+rKdfkva/h5sx 2Bew==
Arc-seal: i=1; a=rsa-sha256; t=1502202724; cv=none; d=google.com; s=arc-20160816; b=ALuMqNgqqC/lWrlWXKpm+ShjmPo9A/rOlJyskj+TSc9Lw0SJWnzWL7PUfVdhjTPdjq ZoLzqhIMTb+A5toRT80xCIf4S8zfc5/Q3Yi6zkvmWd8ZfVLoTiI6j7l+ljShMnDmQyg/ dY+xEeKGJ8tS8IoanozwO32R2QzcLJ8wyISAKiYy3TaW6OSss7zvZHyk7XIWePQKXCiP ASSmRCFvF8qPvXligPQUZwzXfBngvX8JWMN4/+74bR017QHKAQ8Y9VHJysDtZW/jUf/l nl7SDXCPdpgheb/PQD1fiaJsyqU2HhEiBPBioIWxJjH9hYKUA/7H9W1Ov5xPl/yQr1YZ 7WRQ==
Delivery-date: Tue, 08 Aug 2017 10:33:17 -0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:in-reply-to:references:from:date:message-id :subject:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=z7fhFXdKly991pbzX1FQ858iW/XWIuMtG2tiMT1LVaw=; b=FolFKV4USgyHcXdycXH1fnYUzF7typ+R9XJM6HN4IIFy+TYMO7B8ZNBNLNJhvjdsZD SC73KJR8WVNutkOFmwv425wGHdb/upEERGsRz25G4I/dJ6RzCuyI8s+UT9FsbrK39oiR dKspaLaa+41ZG5HYyEuVcrHnZ4D74OLRw84sB8LP0pY5I91gv/JRC2+D6rs3RWb73g+o BC5CKTCioFYPEQQbr4MuO7yNV/xCP1GxSVyYD7EksZhtfWNUhiz9lY0MU+NmP028+S/s CEh5MvpnOzqD2kvS8hecFO6526wbQkGl1hdiKhDbV3XyCzp/IjKt9jgpbMnMufjySjd0 ivSw==
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=z7fhFXdKly991pbzX1FQ858iW/XWIuMtG2tiMT1LVaw=; b=n9qPFgJQJrHdgGwtXB7iG96TZb2hHmqiL2IOpRmWe40FtD9VcrfBI7Gf3WUHr8ZVAh um95Sfn/vVd4Xbf6/mp6FASB0Up/LRmgMQcY7W5JnoKghJYkXEOn1m5GjAGFkX8wAuyX 023sjqmuIwR1S2q+8nve6c5Fo0ukIHm9cdQ9otcxhCtVn2aiwL8U2LHdkE9/4TN/ewNO jrW3O50xrGBqsqxosuIrjwWHenPkk64RbHj+rORN9S9N/lmsEsP1zqgF5YzTvh2RU5Ar nw9DA1hKbfAlOsAHvpnQrZygDVovsOFBoqHb6I6FJKT+UCj7euO9npkkem+eh6iLcBxr i7EA==
Envelope-to: traductor@xxxxxxxxxxx
In-reply-to: <4d4c833d-0aa1-4b17-9e60-ad4bf6db9b16@googlegroups.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>
Reply-to: android-developers@xxxxxxxxxxxxxxxx
Sender: android-developers@xxxxxxxxxxxxxxxx
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.*elmoumni89@*xxxxxxxxx> 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.
> 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/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/*CACaNmX3ES_*jDLncB5*yut2*KeMiMuq7*VWF1*BYFx%2*B01*fp6*GhwRsGw%40correo.*gmail.*com.
Para más opciones, visita *https://grupos.*google.*com/*d/*optout.
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.elmoumni89@xxxxxxxxx> 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.
> 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/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/CACaNmX3ES_jDLncB5yut2KeMiMuq7VWF1BYFx%2B01fp6GhwRsGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
<Anterior por Tema] Tema Actual [Siguiente por Tema>