Posts

Showing posts from August, 2017

Layout design in Android Studio

Example of a layout:- how to design a layout<?xml version="1.0" encoding="utf-8"?><ScrollView android:layout_height="match_parent"android:layout_width="match_parent"xmlns:android="http://schemas.android.com/apk/res/android"> <RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="fill_parent"android:layout_height="fill_parent"android:paddingLeft="@dimen/activity_horizontal_margin"android:paddingRight="@dimen/activity_horizontal_margin"android:paddingTop="@dimen/activity_vertical_margin"android:paddingBottom="@dimen/activity_vertical_margin"android:background="@mipmap/back2"tools:context="com.example.avi.lookie.MainActivity"> <ImageViewandroid:layout_width="125dp"android:layout_height="125dp"android:layout_mar…