Black screen problem when adding SurfaceView in ListView

Add in OnCreate
getActivity().getWindow().setFormat(PixelFormat. TRANSLUCENT ) ;
Solve the problem of a black screen.
This sentence enables the window to support transparency and then you can use functions such as setAlpha, drawColor to set the window transparency PixelFormat .TRANSPARENT and PixelFormat.TRANSLUCENT have similar functions, both of which make the window support transparency

Add in OnCreate

getActivity().getWindow().setFormat(PixelFormat. TRANSLUCENT ) ;< /span>

Solve the problem of a black screen.

This sentence enables the window to support transparency and then you can use functions such as setAlpha, drawColor to set the degree of transparency of the window. PixelFormat.TRANSPARENT and PixelFormat.TRANSLUCENT have similar functions, both Make the window support transparency

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 1478 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.