Android examples for User Interface:View Layer
update Top View
//package com.java2s; import android.content.Context; import android.view.View; import android.view.WindowManager; public class Main { public static final String WINDOW_SERVICE = "window"; public static void updateTopView(Context context, View view, WindowManager.LayoutParams params) { WindowManager wm = (WindowManager) context.getApplicationContext() .getSystemService(WINDOW_SERVICE); wm.updateViewLayout(view, params); }/*from w w w. j a v a2 s. c om*/ }