android-developers
[Arriba] [Todas las Listas]

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

To: Android Developers <android-developers@xxxxxxxxxxxxxxxx>
Subject: [android-developers] Fuerza 4k modo de exhibición en Android con preferedDisplayMode
From: youssef EL MOUMNI <youssef.elmoumni89@xxxxxxxxx>
Date: Tue, 8 Aug 2017 05:49:32 -0700 (PDT)
Delivery-date: Tue, 08 Aug 2017 08:50:18 -0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=AF3RAHwjgCWNAcPaOT5YR++gQLASeXuRe7zTVmnNFE4=; b=SbR9D+mQNlSlQ1/5rjFfR18Bl7QKpStoCEVeC5hKUyck+vo9jzFSP8FsPoJ06beERy bjxRhVwiRlIHY9ACpp9TcS6odt5KczxQdN19pyEtsZ6Z4xjqvj8zRdb4MH+PkXX2oat7 uYsVTBTuzTDPIhlM/j+2SzKJLtyKvD354sEWCezvrw2KZinkNaiLnYR3RphZ29M/P5Us NNXCeFlfYXuaugSZQAwPfUPY0NEOL+niXhhqPft5/TlY0pbhtBT3QgvD5gU94bTP8KJl e70YEh7egH69MT0avBz4oj9sM3FQtQlf4nQaYurdWq2uId2cMWY8sf7BigyF5UiFjj/q l+DA==
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=AF3RAHwjgCWNAcPaOT5YR++gQLASeXuRe7zTVmnNFE4=; b=TEJyt6uoDll0UJmCHRq3V49hC1AF3ZOBDoU+/daH1YOXbRep5sTnMQSpCmaRhCV+Af TndlMdq1sjzc3gu0lVBAigaYMFtfC7qIwnbiwD/mC9iEWkfEVeFcYGx3mB8WlH37dDBc TC5yDikjhZOlmaCbYtehtwq6nBJufeETG8Ta7f/14xZrzyeki9yV6e/58vhde6o9xMF7 OmiGR8gOkCuGbxvCxb9seQA9/2enhA+t9rUqyBD005LRqT654t20CaOKk8uk2UO/zLco KzFSZQ0tZViKnz8EM/YNQ1rD0bv3verr/5yJQmNeExf3KFXrOuSJ4zAj21MAhTRqjjrY iBDg==
Envelope-to: traductor@xxxxxxxxxxx
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
Reply-to: android-developers@xxxxxxxxxxxxxxxx
Sender: android-developers@xxxxxxxxxxxxxxxx

*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.
Para más opciones, visita *https://grupos.*google.*com/*d/*optout.

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.
For more options, visit https://groups.google.com/d/optout.
<Anterior por Tema] Tema Actual [Siguiente por Tema>