screen

How to write an localized on-screen-keyboard

ε祈祈猫儿з 提交于 2020-01-13 03:24:06
问题 I have to write an on screen keyboard for our company's program, which is mostly used on industry's PCs with touch capability. We can't use the windows default keyboard because we don't need all keys on the keyboard. So I was asked to write a custom one in C#. I already found this blog as reference, but I'm not sure how to start. I created a small prototype GUI and assign for each key a scancode, and translate these scancodes to the related character. And send them to the active control. But

LibGdx - Transition between Screens

白昼怎懂夜的黑 提交于 2020-01-12 03:16:52
问题 I'm trying to change the animation between Libgdx Screens. I want to write my custom animation (fade in, fade out, etc). Can someone give me a clue? I can't seem to find the implementation of the transition in the Libgdx code. 回答1: I've implemented some sliding transitions using Scene2D and the universal tween engine. You can find example code here. http://www.netthreads.co.uk/2012/02/09/libgdx-scene2d-demo-with-scene-transitions/ Update: This article illustrates the approach I took to

Turn on screen on device

我是研究僧i 提交于 2020-01-10 17:51:10
问题 How can I turn the sceen on ? I tried something like this adb -d shell am broadcast -a android.intent.action.SCREEN_ON It really should work, I send broadcast intent it is received by the system, but the screen doesn't turn on I do not understand what is the problem, is it possible to turn the screen of the device by code ? I mean with software ? Cause it seems like the turning on of the screen is done just by the hardware button press . . . at least I got that felling , am I wrong ? 回答1: I

Turn on screen on device

我只是一个虾纸丫 提交于 2020-01-10 17:50:08
问题 How can I turn the sceen on ? I tried something like this adb -d shell am broadcast -a android.intent.action.SCREEN_ON It really should work, I send broadcast intent it is received by the system, but the screen doesn't turn on I do not understand what is the problem, is it possible to turn the screen of the device by code ? I mean with software ? Cause it seems like the turning on of the screen is done just by the hardware button press . . . at least I got that felling , am I wrong ? 回答1: I

How to handle different sizes of screen on android

浪子不回头ぞ 提交于 2020-01-10 05:46:21
问题 First, I run program on emulator. After that, I run on many android phones. Some are very small, some are show in rotate side then can't rotate back, and can't scroll (I did not do that), some are OK. I understand may caused by different types of screen and I used AbsoluteLayout, but I do not know how to solve that problem.So, I need to resolve this problem. Anyone can help? Thanks ka Example page that I did: <?xml version="1.0" encoding="utf-8"?> <AbsoluteLayout xmlns:android="http://schemas

Can I use smartphone accelerometer data as a weighing scale? [closed]

别来无恙 提交于 2020-01-07 09:27:08
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 8 months ago . Is it possible to use the raw accelerometer data from a smartphone as a weighing scale? So, by placing an object on the screen, the app would weigh the object and the weight displayed on the screen. If it is not possible, could some other function of the smartphone estimate the

Change Font based on screen size change

痴心易碎 提交于 2020-01-07 02:33:22
问题 In my Java Swing application, I have buttons. If the screen size is changed, I want to change the font of my button text also. How do I implement it? 回答1: I believe that you need a JFrame window listener and simply change the button attributes there: //global JButton button1 defined earlier button1.setFont(new Font("<FONT NAME>", <FONT STYLE>, <FONT SIZE>)) 回答2: GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds() ? 回答3: Thanks to all, Based on listeners and frame size,

DialogEx with Controls: Resizing?

走远了吗. 提交于 2020-01-06 15:29:26
问题 The aim is to resize the Window of the DialogEx that best fit the configured Systemmetrics screenheight and screendepth on the object machine: int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow) { return DialogBoxW(hInstance, MAKEINTRESOURCEW(IDD_MAIN), nullptr, DlgProc); } IDD_MAIN is setup as the default in 768p. Let's call it IDD_760P instead and use its resource file config as the base to work on. IDD_768P DIALOGEX 0, 0, 701, 191 STYLE DS

Android: ImageView in center screen

杀马特。学长 韩版系。学妹 提交于 2020-01-06 14:44:06
问题 I have a background image in full screen with a RelativeLayout . And other image (100x100) in an ImageView . I want to put the ImageView in center screen. But my image shows top left. What is the problem? XML <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/fondo_inicio" > <ImageView android:layout_width="80dp" android:layout_height="80dp" android:layout_gravity=

IOS 6 App Upgrade To IOS 7

回眸只為那壹抹淺笑 提交于 2020-01-06 14:05:22
问题 I want to Upgrade My App From IOS 6 To IOS 7... My App is Universal and For Upgrade to IOS 7 i have created Two Different XIB Files one for IOS 6 and One For IOS 7..and i have Complete the Upgrade but the Problem is My App is Running Perfect in IOS 7 4 inch Simulator...but when i Run My App in IOS 7 3.5 Simulator or Device then its Graphics and Data is not display in its proper Place...and sometime it crash... i have also used Macro Below.. #define iPhone5 @"iPhone 5" #define iPhone @"iPhone"