Posts

Showing posts with the label responsive-design

Two different pages get clipped with login and signUp page display in android xml layout

Image
Two different pages get clipped with login and signUp page display in android xml layout Login And SignUp Screen How to implement and write xml file like this image? Please Help me. 2 Answers 2 Create layout like this, <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:weightSum="2" tools:context=".MainActivity"> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1.90" android:orientation="vertical"> <!-- put your Login page content ,email ,passw...

Responsive Design using md-grid-list in angular 2

Image
Responsive Design using md-grid-list in angular 2 I am looking at basic example of md-grid-list in Angular 2 . HTML Code : <md-grid-list cols="4" rowHeight="100px"> <md-grid-tile *ngFor="let tile of tiles" [colspan]="tile.cols" [rowspan]="tile.rows" [style.background]="tile.color"> {{tile.text}} </md-grid-tile> </md-grid-list> TS Code : export class GridListDynamicExample { tiles = [ {text: 'One', cols: 3, rows: 1, color: 'lightblue'}, {text: 'Two', cols: 1, rows: 2, color: 'lightgreen'}, {text: 'Three', cols: 1, rows: 1, color: 'lightpink'}, {text: 'Four', cols: 2, rows: 1, color: '#DDBDF1'}, ]; } The above code results in this : How can I make the layout as "column" that is column "Two" to go below the rows(One and Four) on smaller screen size using some HT...