(Android high imitation series) toutiao news reader completed and summarized, android high imitation
It has been more than a month since I wrote the first toutiao.com high imitation series. In fact, I have done a lot of work, but I have
[Unity practice] (2 ).
In the previous article, we directly wrote commands one by one in CommandManager. In fact, this is very bad, because a game may have many plot animations, isn't it necessary to write n classes? And the modification is not very
Android custom Drawable resource reference problem, androiddrawableRecurrence of problems:
The code for the Activity layout file is as follows:
For a button View, the background can be changed, and the font color of TextView can also be changed.
Android Optimization-UI optimization (2)UseincludeTag reuse Layout
-1.
includeFunctions of tags
What should I do if I use this layout on many interfaces? If every page is written, the code is too redundant and the maintenance difficulty increases.
ToggleButton Control for android Development
ToggleButton can be considered as a switch. Each click is switched between "on" and "off.
Common ToggleButton methods:
1. setTextOff ()
The text displayed when it is not selected.
2. setTextOn ()
The
Android search suggestion (search for Lenovo)
Android's search suggestion, in short, is that when a user inputs a keyword, the system automatically provides several search suggestions containing similar keywords.
As follows:
MainActivity.
Subtotal of android Memory leakage
1. When debugging the android program today, I found that even if the program exits, it still occupies about 15 MB of memory. after multiple GC operations, we can see that the number is still 15. intuition tells me
Android Optimization-UI optimization (3)UseViewStubDelayed Loading
1.
ViewStubDelayed Loading
ViewStub is an invisible View with a size of 0. The best use is to implement delayed loading of the View and load the View as needed, the common
Android programming: View and Intent classes, androidintent
=== Basic methods of the View class ====SetBackgroundColor (int color)Set the attempted background colorSetBackgroundDrawable (Drawable d)Set the view background imageSetMinimumHeight (int
Android obtains images from album,
In applications, you may often need to go to the album to obtain images. Every time you forget it, make a record for future reference.
To obtain images from an app album, follow these steps:
1. Set intent to call
Android Studio v1.0 installation tutorial in Windows, androidstudioAndroid Studio v1.0 installation tutorial in Windows Android Studio v1.0 installation tutorial preparation tool in Windows
JDK installation package.Requirement: JDK 7 or later.
Android showAsDropDown usage attribute introduction, showasdropdownPopupWindow can be used to implement the pop-up window effect. In fact, like AlertDialog, it is also a dialog box. Both of them are often mixed, but they also have their own
Android Camera Real-Time Filter (1), androidcamera
1. The Android system has built-in filter functions.
Filters have more than 20 different effects, not inferior to those produced by the popular smartphone app Instagram.
2. color matrix
Android --- 17 --- AutoCompleteTextView
AutoCompleteTextView can automatically prompt when a user inputs information. However, AutoCompleteTextView can only prompt once, while MultiAutoCompleteTextView can also implement the information prompt
RatingBar Control for Android Development
The RatingBar control provides you with a scoring operation mode.
Common Methods of controls:
1. setMax ()
Set the maximum value of the RatingBar star slider.
2. setNumStars ()
Set the number of stars for
Android obtains the phone screen size and android screen size.
Android often needs to get the screen width and height when using custom controls. If you need to write them every time, you may want to encapsulate them as tool classes and use them
unity3d subcontracting and google play environment establishment and various account registration, unity3dgoogle
Environment: Our game is a heavy ARPG online game. The unity package is larger than 200 MB, and now we need google play (the demand is
1
Add attributes to a category (implemented by @ dynamic and objc_setAssociatedObject), and add attributes to jsobject
Add attributes to a category by @ dynamic and objc_setAssociatedObject. The former means that the programmer manually implements
Fragment summary, fragment
Recently, the new get fragment is easy to use. It is more convenient and concise than tab.
The specific usage is not described in detail. First, write down the implementation such as jump:1. Replace fragment
R. id. button:
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