I have worked on 2 apps and for me personally linear layouts are better as i can use weight sums and nested linear layouts which can set better layouts on different devices.
On applying weight sum i do not have worry about some differences like changing sizes of layouts in xxhdpi, hdpi and stuff like that.On minor occasions i do changes in sizes of text boxes in hdpi , xhdpi.. but the point is they give better result and i have applied them where constraint layout were not fit to use.
The issue i hear about that using linear layouts you can have performance issues so applying constraint layouts are better.
So as experienced developers which ways are better when setting a layout of activity and what do you use in making apps?
all depends upon your requirements, constraint layout is enhanced form of relative layout. in most cases constraint layout used to design responsive layouts but its code can be complex. on the other hand linear layout is easy to use. performance differences is hard to notice in most cases. for more information you can refer to this article
https://android.jlelse.eu/constraint-layout-performance-870e5f238100
As I understand from the formal definition, parallax effect happens when some images move at a different speed than the others thus creating the illusion that the slower moving ones are relatively behind the faster ones. And there are these kind of webpages where the background moves at a faster pace than the content. But I see that pages with background images having background-position:fixed are also given as examples of the parallax effect. (e.g. http://www.w3schools.com/howto/howto_css_parallax.asp) Is this a misconception in terms of the definition of parallax?
Parallax is a word that comes from the sciences that means "a displacement or difference in the apparent position of an object viewed along two different lines of sight, and is measured by the angle or semi-angle of inclination between those two lines." Often when you're measuring volumes of liquid in beakers, you record the volumes as every individual viewing them sees them (because of their individual parralax) and take the average of them to record in a scientific experiment.
The effect of parallax is often used on the web to create the illusion of depth. One of my favourite examples of this is www.jessandruss.us. There are MANY ways to achieve the effect of parallax on the web, and using fixed positioning can be one way of doing that :)
Initially I wanted to accomplish the following layout. It is just a mockup. The crux - the final layout should be in Wordpress and instead of the colored backgrounds there should be images pulled from the media library.
Basically it is a list of articles (over time they could increase or decrease in number). Therefor I was looking for an automated CSS solution covering the cases. But so far I am unable to think of a nth-child code to catch all 1/3 cases at once and another for the 2/3. Both cases are unsteady. So I came up with the idea having two nth-child cases for each box type. Is that a valid solution or is there room to improve and make things more elegant?
Best regards Ralf
Use
article:nth-child(4n+1) instead of .onethirdLeft
article:nth-child(4n+2) instead of .twothirdRight
article:nth-child(4n+3) instead of .twothirdLeft
article:nth-child(4n) instead of .onethirdRight
Example: http://codepen.io/anon/pen/tqKpz
Are there any existing plugins/extensions/methods to maintain vertical rhythm for Twitter's Bootstrap project?
It is quite a laborious task to create good vertical rhythm templates, I would rather use a pre-baked solution. I am open to creative suggestions, I just want my pages nicely aligned in the end.
Edit: To clarify what I am after...
Vertical rhythm is a technique used to ensure that every element on a page lines up according to a horizontal grid. This is achieved by setting the height, padding and margin of every item to conform to a standard unit line size. If a line of text in a paragraph is 20px high (including margin and padding) then maybe a heading 4 will also be 20px high, and a heading 1 might be 40px high. This maintains the rhythm of the text across columns.
I want to use this technique in combination with bootstrap (from twitter), but it would be quite a lot of work to get everything looking nice. For example, all the buttons would need to conform to the same vertical height definition as paragraph text etc... There are other standard controls used in bootstrap which would also all need rules to define their height appropriately.
I could start with a generic solution for vertical rhythm, which would go a long way to achieving what I want, but I wanted to know if anyone else has started this, or has any idea of another way to achieve this.
Edit: Assuming there is nothing like what I want...
Maybe just a good vertical-rhythm based css template would be a good starting point. Preferably something that is continuing to be developed, is already usable, well thought out, and adaptable.
Since no one has linked to an actual vertical rhythm boilerplate as you suggested, I took the one I use, commented it, and created a github repo for it here https://github.com/jonschlinkert/vertical-rhythm
As it says in the readme, this is a starting point for your own project.
I think what you're going after is understood. Problem is: you're looking for a grid schema in one dimension (a "vertical rhythm" set in accordance with, for example, proportional line heights...which, in a manner of speaking, measures and aligns things along a given page's Y axis)...but doing things in that manner might potentially be at odds with Bootstrap's pre-existing 12-column grid system (which, in contrast, measures and aligns things along the page's X axis). You want to "proportionalize" the height of each "row" in the framework. BUT: keep in mind, Bootstrap's design is intended to promote not just proportionality via columns solely for the sake of looking nice, but to also make pages responsive--i.e., to allow page elements to "flow" around one another vertically, and to nest fluidly. And, in that sense, issues pertaining to the height of elements measured along the Y axis may already be accounted for... I recall that most of the typographic elements in the base CSS file have proportional em sizes, and/or likewise proportional top and bottom padding, etc. Generally speaking, things are not so arbitrary that the framework screams a need for additional styling in the manner you're considering.
Even so: Bootstrap's base CSS file isn't so intolerably extensive that it'd be impossible for you to tweak the height of various element classes and IDs yourself without too much trouble. In any case, it's highly unlikely you're really going to need to do that with every styled element, right? In fact, as a framework, Bootstrap includes styling for many elements which may not even be in the app for which you're designing the front end. (EXAMPLE: Does your app have drop down menus? Great. You can style the "vertical rhythm" of drop down menus. BUT: are you also using pills or tabs in your nav bar? No pills, you say? Well, you can just delete a couple hundred lines of code in the stylesheet and save yourself the effort of having to apply your "vertical rhythm" to those unneeded elements.) Elsewise, for the elements that remain and that you do in fact need, just use a text editor to find-replace the values for line height, top and bottom padding, margins, font-size, etc...and test it out. As a CSS framework, it's pretty clear how Bootstrap is laid out; relevant elements are well sorted, and grouped together within the stylesheet's code for the most part. Once you do complete tweaking of the base CSS file, just minify your revised stylesheet...to replace the pre-existing minified version...or, perhaps, just serve it up from CloudFront if you want to optimize.
The Compass CSS Authoring Framework has explicit support for vertical rhythm based typography. For starters you can check out this short video tutorial.
Have you looked at the Square Grid CSS framework?
http://thesquaregrid.com/
A simple CSS framework for designers and developers, based on 35
equal-width columns. It aims to cut down on development time and help
you create beautiful-structured websites.
Square Grid provides a standard horizontal grid, but it also maintains a vertical grid, using a standard "square" of 28px. It is really just a grid, not a full CSS library like Bootstrap (i.e. no buttons, menus, etc).
I used to for one project and found it to be pretty intuitive, though I ultimately decided that it was too hard for me to keep track of both the vertical and horizontal grid, especially when thinking about responsive design.
You may be able to combine the two, or at least take a look at the square grid source code which is pretty simple CSS to get some ideas on how to adapt Bootstrap to meet your needs.
I recently came across a new grid system and seem to've lost the link. (It's new to me, though I'm fairly sure it is actually recent.) I'm hoping someone can help me dig it up again.
It was based on a pretty small grid increment, maybe 10px and was a bit different in also taking into consideration horizontal alignment. The homepage itself served as demo and had several buttons to toggle vertical and horizontal grid lines and a column image, together or in isolation. While the base increment was very small(as above), the grid overlay used lines of two weights to group sub-sections and produce a more reasonable/likely grid of ~40/50px.
I want to examine this system and am not interested in suggested alternatives, so to pre-emptively cut off a bunch of potential answers, I am not looking for: Blueprint, Tripoli, Atatonic, YAML, 520, 960, 1140, 1KB, Variable Grid System, BlueTrip, YUI Grids, Elastic, SenCSS, Golden Grid, Boilerplate, LogicCSS or any of the pre-processors(eg. LESS).
Just found it again in my feeds: The Square Grid