@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
setContentView(R.layout.activity_main);
WebView topBanner = (WebView)findViewById(R.id.TopBanner);
topBanner.setBackgroundColor(Color.TRANSPARENT);
bottomBanner.setBackgroundColor(Color.TRANSPARENT);
topBanner.loadUrl("バナーのURL");
bottomBanner.loadUrl("バナーのURL");
topBanner.getSettings().setJavaScriptEnabled(true);
bottomBanner.getSettings().setJavaScriptEnabled(true);
}
以上のようにして表示しています。
この遅延を解消し、他のボタンなどと同じタイミングで画面に表示させるには、どういった方法がありますでしょうか。
先読みなど方法がありましたら、ご教授願えませんでしょうか。
> android-group-japan+unsub...@googlegroups.com にメールを送信してください。