TabLayout and ViewPager implement page card slide, tablayoutviewpager
First, add the following sentence to the dependencies of build Gradle in the current module:
Compile 'com. android. support: design: 23.0.1'Because the TabLayout we use belongs to
Displays the current light intensity and current light intensity.
The MainActivity. java code in the src directory is as follows:1 package com. example. guangzhao; 2 3 4 5 import android. OS. bundle; 6 import android. app. activity; 7 import android.
Personal experience of independent developers
Unconsciously, I have stayed in this circle for so many years, but it is difficult to find a job without making any money.
Last year, I gave up my 4-Year-Old wp platform and switched to android. I made
[Android] Chapter 16.0 custom services and system services-This Chapter provides an example of the main interface, android16.0
Category: C #, Android, VS2015;
Created on: 1. Introduction
This chapter describes the basic usage of Started Service,
Android Development: Implementation of Automatic shutdown
1. Introduction
My implementation is to add an interface in the setup program to allow users to set the automatic switch. The setting of this automatic switch can refer to the setting of the
How to compile efficient android code
Android-related devices are embedded devices. When writing apps, you must pay special attention to efficiency and be limited by battery power. As a result, embedded devices have many considerations and limited
Android okvolley framework, androidokvolley
I have recently made many new good things and have no time to take a good look. Now I have to review them and take notes.
I remember that the framework I used previously was android-async-http, volley, or
How can I "steal" Android memory ?, 「 Steal 」 android
Previously, MemoryFile was used for memory optimization, which found some features of MemoryFile and a very trickly usage method. Therefore, record it here.What is it
MemoryFile is a framework
Use of the gridview + ScrollView on the set-top box ., Gridviewscrollview
Recently, I made a gridview on the set-top box,
The focus must be on the item child control, but the focus of the gridview is on the item by
[Android] Chapter 1 internal storage and external SD card storage-This Chapter provides an example of the main interface, android14.0
Category: C #, Android, VS2015;
Created on: 1. Introduction
The file system used by Android is a Linux-based
Android studio shortcut key, androidstudio
Features summarized by yourself:
Add Chinese Characters in xml to string. xml and use extract android string = Alt + Enter to call
---- Common shortcut keys
1. Ctrl + E to display the list of recently
Analysis of google's multidex library and googlemultidex Library
We like to introduce a lot of third-party packages when developing projects, which greatly facilitates our development. But at the same time, the total number of android methods cannot
[Android] Open Source China source code analysis II --- DrawerLayout, drawerlayout source code
From the startup interface to the main interface, the DrawerLayout under the v4 package is used. The activity_main.xml file is as follows:
Android Studio added support from Eclipse
I have been using Eclipse to develop Android for some years. However, Android Studio (hereinafter referred to AS) is Google's own IDE. Now the AS version 2.0 has been released, and it does have more
Android-display database data to the screen
MainActivity. java
This code retrieves data from the database and displays the data on the interface.
Import java. util. arrayList; import java. util. list; import com. itheima. showdata. domain. person;
2015 Android portfolioNanzhou knowledge
Be serious, have knowledge, gossip, and have an insider. Once an article every day, you can enjoy what you want to know and what you don't know. We just want to make it a pleasure. Remember to know, the
Android-System Time Acquisition Method
Method 1:
Import java. text. simpleDateFormat; SimpleDateFormat formatter = new SimpleDateFormat ("yyyy-MM-dd HH: mm: ss"); Date curDate = new Date (System. currentTimeMillis (); // obtain the current time
Android-get the screen width tool class, android-tool class
// Obtain the screen-related auxiliary class public class ScreenUtils {private ScreenUtils () {/* cannot be instantiated */throw new UnsupportedOperationException ("cannot be instantiated ")
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service