Tag:status bar

  • Android status bar notification


    private NotificationManager manager; private Notification.Builder builder; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); button = (Button) findViewById(R.id.button); //Create a notification management class manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); builder = new Notification.Builder(this); button.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub Intent intent = new Intent(MainActivity.this, MainActivity.class); PendingIntent pendingIntent = PendingIntent.getActivity(MainActivity.this, […]

  • Tips for mobile development


    Preface Recently, I wrote a hybrid app project in the company. The pages are basically completed in H5 and embedded in the native WebView. I found a problem. Under iPhone 6, the status bar of Apple’s mobile phone will block the page, causing the page to move down and the style to be disordered. Finally, […]

  • Android status bar adaptation summary


    1. The status bar is required to be transparent. Our content layout extends to the system status bar, which is known as the immersive status bar: Android 5.0 and later: setting properties View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN So that our content layout can be extended to the system status bar, and then directly use the method setstatusbarcolor () to […]

  • Summary of basic usage of status bar in IOS


    I. status bar and navigation bar Status bar: display time, battery and other information Navigation bar: display app page title, return button, etc. Before IOS 7: the status bar and navigation bar are separate; After ios7: the status bar is combined with the navigation bar; the total height of the navigation part (64) = the […]

  • An Example of C_Implementing the


    This function is implemented on WinForm platform. Other platforms are much the same, not much introduction. 1. First create a test WinForm 2. Add a notify Icon control to the WinForm Then set the notifyIcon property, you can modify its name property. In this article, the name property is notifyIcon1. Note that when you click […]