Implementation of Android Simple Custom view

The use of customized view is very common in android. Here, we introduce a simple customized view in the container of listview. This is a functional presentation. First, you need to create an xml file in the layout folder to determine the composition of each small item, that is, listitem.xml Then, we define a list view to display our ...

Posted by simonmlewis on Sat, 29 Jun 2019 01:08:14 +0200

Android Custom EditText Cursor and Underline Colors

Recently, when I was writing some little Demo review basics, when I used EditText, I suddenly found that I hardly noticed the color of its cursor and underline before, so I spent a lot of time and read many blogs. Now I will summarize and share the harvest. 1. First impression: native EditText We need to modify the native EditText, first o ...

Posted by jmabbate on Sat, 29 Jun 2019 00:39:43 +0200

Shared Preferences of Android

Shared Preferences, as one of Android's data storage methods, is characterized by: 1. Only Java basic data types are supported, and custom data types are not supported. 2. Data sharing in application; 3. Easy to use. Usage method 1. Storage of data SharedPreferences sp = getSharedPreferences("sp_demo", Context.MODE_PRIVATE); sp.edit(). ...

Posted by tpstudent on Fri, 28 Jun 2019 01:08:12 +0200

Tab Layout and ViewPager

I. Introduction Above is the homepage Tab of the Android side of the brief book. Tab is also very common in other apps. It can be implemented in many ways: TabHost, custom controls (third-party libraries), RadioGroup and so on. This article mainly introduces the use of TabLayout in the Android Design library. TabLayout and ViewPager are ...

Posted by hhisc383 on Thu, 27 Jun 2019 21:53:19 +0200

Summary of Android Data Binding (II)

Preface In my last article, I briefly learned about the environment configuration and basic usage of DataBinding: Summary of Android Data Binding (I) This article summarizes the basic ways of using Google's official documents. Basic data binding 1. Objects (JavaBean s) can be created in this way: /** * Created by QingMei on 2017/5 ...

Posted by Carlo Gambino on Thu, 27 Jun 2019 20:16:47 +0200

Use spring to send mail (including tests, source code, comments)

This article mainly talks about the use of spring configuration to achieve mail delivery, compared with the previous low-level implementation is much simpler, only a few configurations can be used, so please look down: Write an interface first /** * @Title: IMailserdService.java * @Package org.service * @Description: TODO The main functio ...

Posted by uramagget on Wed, 26 Jun 2019 20:55:55 +0200

MyFlag Step 10: Background Code Decoupling and Client Specific Function Design

Introduction This week happens to be the mid-term of the development cycle. We are developing in an orderly manner according to the original plan. At this stage, our main tasks are as follows: Code Rewriting and Decoupling in DAO Layer Comment + My News DAO Layer Code Rewriting and Decoupling In the last stage of this week, we successfull ...

Posted by Ryyo on Tue, 25 Jun 2019 21:05:37 +0200

Introduction to Android Hook Framework Xposed

To: http://chendd.com/blog/2016/05/15/learn_xposed/ I. Basic knowledge Xposed is Android A well-known open source framework on the platform. In this framework, we can load many plug-ins App, which can directly or indirectly manipulate ordinary applications and even things on the system. Xposed is, in principle, Hook Zygot ...

Posted by saariko on Tue, 25 Jun 2019 20:18:35 +0200

Android Learning Course--Implementation of News Client

To realize the news client, you need to know what json is 1.json: JSON: JavaScript Object Notation. Independent of language and platform, it is smaller, faster and easier to parse than XML. Nowadays, JSON data has become the transmission mode of most data in the Internet, so we must master it skillfully. Android platform has its own ...

Posted by jotate on Tue, 25 Jun 2019 00:11:11 +0200

Linq is easy to use

Query object (list variable in the example above) is IEnumerable < T > or IQueryable < T > type Query returns are also IEnumerable < T > or IQueryable < T > types Linq is divided into five categories: Linq to objects, Linq to DataSets, Linq to SQL, Linq to Entities, Linq to XML. Simple use Type Query Vari ...

Posted by beanman1 on Mon, 24 Jun 2019 21:24:11 +0200