LoginSignup
1
1

More than 5 years have passed since last update.

各コンポーネント毎にHWアクセラレーションを設定する方法

Last updated at Posted at 2012-12-26

・Application

qiita.rb
<application ...="" android:hardwareaccelerated="true">

・Window

qiita.rb
getWindow().setFlags(
    WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED,
    WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED);

・View

qiita.rb
myView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);

参考:Yukiの枝折: Android:ハードウェアアクセラレーション

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1