TooltipPopup(Context context) {
mContext = context;
mContentView = LayoutInflater.from(mContext).inflate(R.layout.appcompat_tooltip, null);
mMessageView = (TextView) mContentView.findViewById(R.id.message);
mLayoutParams.setTitle(getClass().getSimpleName());
mLayoutParams.packageName = mContext.getPackageName();
mLayoutParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_SUB_PANEL;
mLayoutParams.width = WindowManager.LayoutParams.WRAP_CONTENT;
mLayoutParams.height = WindowManager.LayoutParams.WRAP_CONTENT;
mLayoutParams.format = PixelFormat.TRANSLUCENT;
mLayoutParams.windowAnimations = R.style.Animation_CrossPort_Tooltip;
mLayoutParams.flags = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
| WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE;
}
TooltipPopup.java 文件源码
java
阅读 38
收藏 0
点赞 0
评论 0
项目:cwac-crossport
作者:
评论列表
文章目录