Android Linear Layout Example

Linear Layout is an android View Group that aligns all children in single oriented manner, vertically or horizontally. A Linear layout can have only one orientation, only vertical or only horizontal. The orientation can be specified by using attribute [cci]android:orientation[/cci]. Horizontal Orientation By default, if you don’t specify the attribute [cci]android:orientation[/cci], the orientation of linear

Android Linear Layout Example Read More »

How to get domain name in javascript

Getting domain name from javascript is simple. You can get domain name from [cci]window.location.hostname[/cci] variable. Click following button to test above code. Get full domain name Domain name you got this way is simply domain name in browser address bar. Sometimes address bar you got not include [cci]http://[/cci] or [cci]www[/cci] prefix. To make sure you

How to get domain name in javascript Read More »

Scroll to Top