¿Los calificadores de diseño de Android no funcionan?

I am developing an android using the API Google Tv Addon, i wanna use the screen qualifiers no touch, i created a folder under /res/ called layout-notouch, i named my layout test.xml, in my activity when i put setContentView(R.layout.test) the application crash. how could i use this screen qualifier. Or otherwise, could i set qualifiers programatically. you can take a look here ingrese la descripción del enlace aquí

preguntado el 08 de noviembre de 11 a las 11:11

3 Respuestas

You can use layout-large-notouch for layout and drawable-land-xhdpi for drawables to target Google TV.

respondido 09 nov., 11:01

I figured out that the layout-notouch is not working.You can find the google bug report at this links https://code.google.com/p/android/issues/detail?id=20087

Some people are suggesting to use resource qualifiers layout-tvdpi-notouch (720) & layout-xhdpi-notouch (1080),layout-large-notouch.

But not sure the suggestion is working.

Respondido el 05 de Septiembre de 12 a las 07:09

I'm not entirely sure about what I'm about to say, but it seems to me that "notouch" qualifiers will not work because current Google-TVs support some sort of touch. You have a trackpad that acts as a mouse and you can click on things, simulating "touch" events.

If in the GTV emulator you edit the avd settings, you can specifically declare the "touch screen type" as "notouch". Then, if you run your application under those conditions you will see that the "notouch" qualifiers work. This means that by default "touch-screen type" is set to "touch" instead of "notouch".

Respondido el 04 de Septiembre de 12 a las 21:09

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.