我想显示一些图标来提醒我的应用。
我知道有一些可以在Android上执行此操作的屏幕调光器/滤镜应用程序,但是我无法从Google找到关于该主题的技术参考。
有人可以指出我的方向吗?
答案 0 :(得分:0)
使用public user = [];
ngOnInit() {
this.Jwt.getUserData().subscribe(data => {
this.user = data
console.log(this.user)
console.log(this.user[0].name)
});
}
获得一个
CREATE PROCEDURE sp_generate_insertscripts
(
@TABLE_NAME VARCHAR(MAX),
@FILTER_CONDITION VARCHAR(MAX)=''
)
AS
BEGIN
SET NOCOUNT ON
DECLARE @CSV_COLUMN VARCHAR(MAX),
@QUOTED_DATA VARCHAR(MAX),
@TEXT VARCHAR(MAX)
SELECT @CSV_COLUMN=STUFF
(
(
SELECT ',['+ NAME +']' FROM sys.all_columns
WHERE OBJECT_ID=OBJECT_ID(@TABLE_NAME) AND
is_identity!=1 FOR XML PATH('')
),1,1,''
)
SELECT @QUOTED_DATA=STUFF
(
(
SELECT ' ISNULL(QUOTENAME('+NAME+','+QUOTENAME('''','''''')+'),'+'''NULL'''+')+'','''+'+' FROM sys.all_columns
WHERE OBJECT_ID=OBJECT_ID(@TABLE_NAME) AND
is_identity!=1 FOR XML PATH('')
),1,1,''
)
SELECT @TEXT='SELECT ''INSERT INTO '+@TABLE_NAME+'('+@CSV_COLUMN+')VALUES('''+'+'+SUBSTRING(@QUOTED_DATA,1,LEN(@QUOTED_DATA)-5)+'+'+''')'''+' Insert_Scripts FROM '+@TABLE_NAME + @FILTER_CONDITION
--SELECT @CSV_COLUMN AS CSV_COLUMN,@QUOTED_DATA AS QUOTED_DATA,@TEXT TEXT
EXECUTE (@TEXT)
SET NOCOUNT OFF
END
--EXEC sp_generate_insertscripts 'tableName'
创建layoutParams:context.getSystemService(Context.WINDOW_SERVICE)
使用WindowManager
然后使用WindowManager.LayoutParams(-2, -2, TYPE_APPLICATION_OVERLAY, 0, PixelFormat.TRANSLUCENT)
可能需要添加权限context