Project Practice ①-high imitation zhihu daily (2)-> Use pullrefesh + Slidingmenu + custom components to write the main layout and extjs custom components
① In fact, I didn't think about the layout of the Project architecture. I used my own framework to finish the basic page at the beginning, but I finally got stuck in the pull-on loading, finally, instructor Li helped me reconstruct the architecture and fin
;
Transition:all 2s ease-in-out;
Thumbnail > img,
. Thumbnail a > img {
margin-right:auto;
Margin-left:auto;
}
A.thumbnail:hover,
a.thumbnail:focus,
a.thumbnail.active {
border-color: #428bca;
}
. Thumbnail. caption {
padding:9px;
Color: #333;
}
Take a look at an example:
The effect is as follows:
You can use the Firefox response Design view to view
On the basis of only thumbnails, add a div container with a class name of. Caption, placing other content in the container,
Android growth diary-learning of Service components of four Android ComponentsAfter reading the materials, the following is the related information of the Service: Definition: running in the background, invisible, no interface priority is higher than the purpose of the Activity: play music, record changes in the location of geographic information, listen for an action ..... note: When running in the main thread, you cannot use it for time-consuming re
Sometimes, because of layout problems, you need the child component to pass the data to the parent component, and execute a method of the parent, this article mainly introduces the method of accessing/calling the parent component of the VUEJS 2.0 sub-component (sample code), the need friend can refer to, hope can help everyone.
Not much to say on the code:
Sub-components:
Parent component:
The parent component uses v-on to do a monitoring functio
This component is developed based on the advantages of some common components in the market such as nbear,
It has been strengthened mainly on the Web end, greatly improving the development speed of users!
Nbear-based, mysoft. Data-based ORM provides the following new features:
Load data by field name, without considering the field order;
Any column of an object can be selected for loading;
Add common all fields for loading inherited data;
Added
MenubarComponents You can use it to create a menu and use it for navigation.CodeRight
Drag components to the stage:
Code of the first frame:
VaR menu1 = mymenu. addmenu ("Homepage ");VaR menu2 = mymenu. addmenu ("album ");Menu2.additem ({data: '1', label: "summer album "});Menu2.additem ({data: '2', label: "Autumn album "});Menu2.additem ({data: '3', label: "Winter album "});Menu2.additem ({data: '4', label: "Spring album "});// Drop-down
[Android Notes] use and implementation of the pull-down and refresh components and Android notes drop-down ComponentsIf you need to implement pull-down refresh in a project, you can choose from the following options:1. Use the open-source library Android-pullToRefresh.2. Use SwipeRefreshLayout provided by the support. v4 package.3. Implement one by yourself.The following is a brief introduction: Note: The listView pull-down refresh is used as an examp
Android auto-complete components (SocialTokenAutoComplete)-a more friendly way @ someone in social apps, android four components
Project address: https://github.com/bitjjj/SocialTokenAutoComplete
Sample Code:
public class SocialTokenActivity extends Activity { SocialContactsCompletionView completionView; Contact[] people; ArrayAdapter
1. No matter how you set the size of custom components, the custom components always seem to be match_parent. We need to override the onMeasure method and correctly set the component size in it. [Java] @ Override protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec) {// Note: to be as concise as possible, this article only discusses EXACTLY and AT_MOST modes int mode = MeasureSpec. getMode
Six major STL components-iterator, six major stl components
Iterator:In addition to the subscript method that is common in other languages to access container elements, the C ++ language provides a completely new method-iterator (iterator) to access container elements. The iterator is similar to a reference and points to an element in the container. In another way, containers are generic data structures, wh
Common cache components and cache Components
There are many cache types, and the most common one is the memory cache. There are also many ways to implement the memory Cache, such as using static variables, such as Cache, but these methods only apply to a single Cache variable. Each Cache variable must be rewritten in one way, it cannot be universal. A general memory cache component is provided here, which d
Drop-down Quick Select componentI believe everyone has the most recent login using QQ dropdown box, click to show the effect of recent login, click the option can submit content to the input box, to achieve the effect of fast input data.Today we are here to achieve this effect.First use the first layout to implement the interfaceUse the layout to Listview,listviewCustom components drop-down quick Select components
Android components ------ list selection box, Android components ------ list
The list selection box provided by Android is equivalent to the selection drop-down box for web terminal user registration, such as the province and city for registration. Such as a list selection box
The selected items in the drop-down list can be specified through the android: entries attribute of the xml file or imported in jav
List of jQueryMobile components (listview) and jquerymobile Components
Data-role = "listview" -- specifies that the list element is a listview component;
Data-filter = "true" -- sets the filter attribute of listview;
Data-inset = "true" -- set listview to return the insert feature after filtering;
Ui-filterable -- set the form to have filter attributes;
Data-type = "search" -- set input to the search box;
D
JS drag-and-drop components for learning and use. js drag-and-drop Components
JavaScript code needs to be frequently written, otherwise it is easy to get unfamiliar. Recently, although I have been looking at knowledge points such as JavaScript prototype and behavior delegation, the amount of code written by me is slightly reduced. This article will share with you a drag-and-drop component for your reference
system# # Design PhaseThe following is a brief look at several stages of designing Element experience.* * Understand the business and familiar with the company's back-end products, to find common problems in business * *The purpose of the design is for business services. The first step is to start with an internal system, to understand the various back-end systems used within the company, to abstract its components and to look for common features.* *
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.