Android MVVM framework construction Navigation + Fragment + BottomNavigationView

preface   you are already familiar with the MVVM framework pattern in these articles. The specific architecture pattern is shown in the following figure: The Activity/Fragment of the upper layer is represented as the View layer, which operates the data through the ViewModel, and then the Repository controls the source of the data, wh ...

Posted by jadebabe on Tue, 23 Nov 2021 05:47:35 -0800

Dynamically set the width and height of the imageview in HorizontalScrollView

The demand is as follows: There are two kinds of pictures to display, one is 640*640 and the other is 1920*1080. If it is a 1920 picture, you need to double-click to switch the display mode. By default, the middle part of 1920 is displayed by 640*640, which allows you to swipe left and right to view the entire picture ...

Posted by greenie__ on Fri, 17 Jul 2020 08:38:57 -0700

Dynamically set the width and height of the imageview in HorizontalScrollView

The demand is as follows: There are two kinds of pictures to display, one is 640*640 and the other is 1920*1080. If it is a 1920 picture, you need to double-click to switch the display mode. By default, the middle part of 1920 is displayed by 640*640, which allows you to swipe left and right to view the entire picture ...

Posted by ranam on Fri, 17 Jul 2020 08:39:10 -0700

Task space management of learning notes in Linux operating system

1, Foreword                   . First, we will follow the previous task_struct explains task space management structure mm_struct, and a brief introduction to the physical memory and virtual memory related knowle ...

Posted by captain_scarlet87 on Thu, 25 Jun 2020 03:54:04 -0700

Understanding the preclean phase of CMS recycler

In "deep understanding of Java virtual machine: advanced features and best practices of JVM (version 2)", the working process of CMS collector is introduced as follows: CMS collector is based on the "mark clear" algorithm. Its operation process is more complex than the previous coll ...

Posted by Muncey on Thu, 25 Jun 2020 03:21:57 -0700

Sorting out some data of navigation bar of Android O/P

Height adjustment of NavigationBar I haven't seen how the Navigationbar was created before. I always think it's just a layout layout of the system UI Emmm. I admit defeat ~ ha ha ha, then I want to change his height these two days. The change of O version of Quanzhi A50 is very simple framework/base/c ...

Posted by DrTrans on Tue, 23 Jun 2020 20:34:09 -0700

Analysis of Android Settings Search scheme

Android development will encounter some self writing interfaces that need to be allowed to be searched, or three-party applications are attached to Settings, and users also want to be searched. Before we know how to add, we need to understand the whole framework to better add our own code.   Here I ...

Posted by barteelamar on Mon, 22 Jun 2020 01:43:26 -0700

Asp.netCore Summary of restful webapi

Last article recorded The concept of WebApi and simple cognitive WebApi , let's explore its applicable scenarios and how to use it today. Let's briefly talk about the characteristics of WebApi, WCF and WebService, which are widely used: I. WebService is a lightweight and independent communication technology that can receive requests from other ...

Posted by plex303 on Wed, 17 Jun 2020 18:57:02 -0700

Django form form upload file

File upload of Django's form form When generating input tags, you can specify the type of input tag as file type <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <h4>{{ error_message }}</h4> <form action="/index/" method="pos ...

Posted by phpnewbieca on Thu, 11 Jun 2020 22:50:09 -0700

Component creation and value transfer of react 16 tutorial

assembly Create component There are three types of components: a stateful component, a stateless component and a stateful component. The stateful component will be described later Stateful component As the name implies, stateful component has its own state and life cycle, and the positioning of st ...

Posted by boonika on Sun, 07 Jun 2020 20:26:13 -0700