Widget layout and page navigation developed by Flutter

1, Horizontal layout Row Row control can be divided into two types: non flexible arrangement and flexible arrangement. It can be flexibly used by expanding outside Mix the two: import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override ...

Posted on Sun, 16 Feb 2020 07:05:29 -0500 by friedemann_bach

Android UI: usage of common controls

Last article: Getting started with Android (8): practical tips for activities I think it's a start to write program interface. Before we start to learn common controls, we will create a new UIWidgetTest project TextView Modify activity main.xml: <?xml version="1.0" encoding="utf-8"?> <LinearLa ...

Posted on Sun, 16 Feb 2020 03:07:50 -0500 by rel

Widget widget

View app components in the document - > app widget 1. Write a class to inherit AppWidgetProvider The service is enabled here. If the service is not written, an error will be reported in the creation of the widget. You can shield the function of opening and closing the service (there is no shield here). If there is no error, ...

Posted on Sat, 15 Feb 2020 10:32:46 -0500 by KrisCons

ItemTouchHelper to realize interactive animation

Catalogue introduction 01. Drag needs to realize functions 02. Several important methods 03. Simple implementation ideas 04. Drag effect optimization 05. Complete code display Hot wire Blog notes summary [from March 2016 to now], including Java foundation and in-depth knowledge points, Android te ...

Posted on Fri, 14 Feb 2020 02:32:24 -0500 by haydndup

rockchip rk3368(px5) vehicle development road 5, enabling GPS module UC6226 (2.HAL layer and above)

This series records the author's journey to a new car aftermarket company, which is responsible for maintaining a set of codes from the beginning. The system uses RSM's rk3368 chip, version is px5 Android 8.0 release 20180726, and every patch modification and thinking from scratch. The key point is that ...

Posted on Fri, 14 Feb 2020 01:56:20 -0500 by Steven_belfast

Three ways for Android to get the current system date and time

The first method SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy year MM month dd day HH:mm:ss");// HH:mm:ss //Get current time Date date = new Date(System.currentTimeMillis()); time1.setText("Date Get current date time"+simpleDateFormat.format(date)); 1 2 3 4 The second method Calendar calendar = Calendar.ge ...

Posted on Thu, 13 Feb 2020 15:58:36 -0500 by Jagarm

Android realizes TCP client, supports reading and writing

In the last chapter 14.Android - using sendMessage threads to communicate with each other We learned how to send data between threads Next, we will learn how to read and write TCP through socket It should be noted that the socket must be written in the sub thread and cannot be used directly in the main ui thread, so we have created two class es ...

Posted on Thu, 13 Feb 2020 12:26:58 -0500 by newbtophp

Android learning notes: Advanced UI component - progress bar class component (progress bar and drag bar SeekBar)

Progress bar class components (progress bar and SeekBar) Advanced UI components can be divided into four categories: (1) . progress bar type components: including progress bar, drag bar and star rating bar. (2) . image components: including image view, image switcher and grid view. (3) . list class c ...

Posted on Wed, 12 Feb 2020 01:33:56 -0500 by scrap0346

Using Activity to achieve dialog effect

Note: the requirement of the company is to add an input box in the bottom pop-up box, and the bottom part is the time selector. When clicking the edit box, the layout of the time selection box will be blocked Input box cannot be controlled using fragmentDialog 1. Set Activity's pop-up theme and ...

Posted on Tue, 11 Feb 2020 11:19:24 -0500 by renekosterman

Analysis on the implementation of sideslip menu in Android's ten SlidingMenu

SlidingMenu sideslip menu is a relatively new setting interface or configuration interface effect. The setting interface effect appears in the left or right sliding of the main interface, which is convenient for various operations. Many excellent applications adopt this interface scheme, such as fa ...

Posted on Tue, 11 Feb 2020 09:53:30 -0500 by pjsteinfort