Mobile Search Engine Optimization

Mobile Optimization

Mobile optimization is the process of ensuring that visitors who access your website from mobile devices have knowledge of optimized for the device.

What is mobile Optimization

Every year people spend maximum time on their mobile devices and tablets, however several websites still are not designed to account for various screen sizes and load times. Mobile optimization takes a look at page speed, website structure, website design, and additional to create certain you are not unwittingly turning mobile guests or visitors away.

images

Mobile SEO Best Practices

If your website is already optimized for search engines, there are only some additional things that you can think about when you optimizing for mobile.

Page Speed:

Because of hardware and property problems, page speed is even a lot of necessary for mobile users than desktop users. Beyond optimizing pictures, you will need to minify code, leverage browser caching, and reduce redirects.

responsive-website-design-toronto-tomsawyer-left

Website design for mobile

Mobile devices are simplifying and revolutionizing the ways in which websites are designed. “Above the fold” not has which means during a world whenever we have a tendency to scroll endlessly

Optimize titles and Meta descriptions

Remember that you are working with less screen space when a user searches using a mobile device. To show off your best work in SERPS (Tools for Keyword Checking on Google or Yahoo Search engine), be as concise as possible (without sacrificing the quality of the information) when creating URLs, titles, and Meta descriptions.

Optimize for local search

If your business has a local element, keep in mind to optimize your mobile content for local search. This includes standardizing your name, address, and signal and as well as your town and state name in your website’s data.

Mobile site configuration

Probably the most necessary decision you will build once fitting a website is deciding whether or not you wish to use a responsive, dynamic serving, or separate website configuration. Everyone has its advantages and disadvantages. Google prefers responsive design however supports all 3 choices as long as you have got set them up properly.

Responsive web design

Responsively designed websites use CSS3 media queries to serve an equivalent content to mobile and desktop users using a fluid grid and a useable design to automatically depend to the size of a user’s screen.

responsive-web-design-640x320

Responsive designed use media queries to focus on the layout supported screen dimension, resolution and orientation. For example, you might use the subsequent CSS to instruct browsers a way to show content for a screen that is 420 or fewer pixels wide:

Final thoughts

Sure, do paid search to get visibility in Google smart-phone search; however do not forget to try to mobile SEO (Search engine optimization) for additional visibility. These steps — target on fix mobile-friendly errors, core ranking, do mobile keyword research and content creation, do apps store optimization and apps indexing, and use AMP (Accelerated Mobile Pages) — will help bring more organic traffic to your content from mobile searchers.

 

About Intents in Android

Intents are asynchronous message which allow application components to request functionality from other Android components.

The dictionary meaning of Intent is Intention or purpose. So it can be described as the intention to do action.

Android intent is the message that is passed between components such as content providers, activities, broadcast recievers, services etc.

Android Intents are mainly used to:

  • start a service
  • dial a phone call
  • Broadcast a message
  • Display a list of contacts
  • Display a web page

The LabeledIntent is the subclass of android.content.Intent class.

An intent can contain data via a Bundle. This data can be used by the receiving component.

In Android the reuse of other application components is a concept known as task. An application can access other Android components to achieve a task.

Starting activities or services:

To start an activity you have to use a method startActivity().This method is defined the Context object which Activity extends.

The following code demonstrates how you can start activity via intent.

Intent i = new Intent (this,Login.class);

startActivity(i);

Activities which are started by other android activities are called sub-activities. To start a service via intents, use the startService(Intent) method call.

Types of Android Intents:

There are two types of Intents in android which are as follows:

  • Implicit Intent
  • Explicit Intent

Implicit Intent:

These Intents do not name a target and the field for the component name is left blank. Implicit Intents are also used to activate components of other activities.

For example-

Intent i= new Intent();

i.setAction(android.content.Intent.ACTION_VIEW);

i.setData(ContactsContracts.CONTENT_URI);

startActivity(i);

Explicit Intent:

Explicit intent going to be connected intenal world of application. Explicit Intent specifies the components. In such case,intent provides the external class to be invoked.

For example-

Intent i= new Intent();

startActivity(this,First.class));

Let’s see a simple example of Intent that take from one activity to another activity.

First Activity XML:

code 1

code 1.1

Second Activity XML:

code1

First.java

fist

In above example, there are two xml activity in which first is our main and login activity in which we take two edit text for email and password and a login button to submit the data by which on click we reach at the other activity where we take an edit text and show welcome as a text.

With the help of java we write code and by intent we connect two activities as first activity with the second.

Also Read- Model View Controller (MVC) Pattern

If you are, looking to Develop and design for your project then feel free to contact us at any time

  • Call Us- +91 9910781148, +1 8033353593
  • Email: company@tecorb.com
  • Skype- tecorb

“We maintain transparency with our customers. Our values and business ethics has given us repeated customers. We tend are proud to be a reliable outsourcing partner for many clients across the World.”

Play Audio Video With AVFoundation in iOS Swift 3.0

AVFoundation is a framework in iOS that lets you performs a video play, create, edit, or reencode media files.  AVFoundation framework that you can create play Audio and Video visual media play in swift iOS.

AVFoundatiin allow you to work on detail level with time based audiovisual data with this framework in iOS swift , you can create, edit ,analyze and re-encoded data media files in swift application , it llok like pretty basic feature set. However, with this AVFoundation framework you can do some usual things, like capture a stream   and   in real time, manipulate and play back the same capture media.

Getting Start:-

Let’s now start an your Application design;

  1. Open your xcode
  2. Create a new xcode project
  3. Chose a single View Application then
  4. Click on next button then,
  5. Give the product name as you like then
  6. Click again next button then,
  7. Save in your directory and click on the create button
  8. Now ready your empty project then,
  9. Select you device that you want run your project

AVFoundation

Now click on the this you seen iphone 7 plus then select your simulator device you want run your project application seen like this

AVFoundation1

Now goto the project navigator and select the main.Storyboard from the project navigator

  • Now select your View Controller and goto the editor menu select the navigation controller you will see that add a navigation controller in your main.stroyboard
  • Then now select the navigation controller you will seen that your navigation controller automatically make a initial view controller
  • Let’s come on the design your view controller select the object library and search a UIButton then drag  a four uibutton  like this

AVFoundation2

Now drag four UIButon in the view controller you can seen

AVFoundation3

Now come on the change the text name of our button in the view controller we have two option change the name of the view the button

  1. Select the button and double your button text will come on edit mode.
  2. If you have second one option select the button and goto the attribute inspector change the text name of your button

AVFoundation5

You see on the scren shot text name button change with AudioPlayer

  • Now ready your design for the click button paly the audio video and repeat the song and stop the song

AVFoundation6

  • Now goto the project navigator select the view controller

 

import AVFoundation

//MARK:- add this line below the import uikit

//Mark:- now make function to call audioplayer

func playAudio()

    {

// get random number for sound from the array

let intRandomNum = Int(arc4random_uniform(UInt32(arrAudio.count)))

// set URL of the sound

let soundURL = URL(fileURLWithPath: Bundle.main.path(forResource: arrAudio[intRandomNum], ofType: “wav”)!)

do

  {

   audioPlayer = try AVAudioPlayer(contentsOf: soundURL as URL)

   audioPlayer.delegate = self

// check if audioPlayer is prepared to play audio

if (audioPlayer.prepareToPlay()){

      audioPlayer.play()

            }

        }

        catch(let error)

        {

            debugPrint(error.localizedDescription)

        }

    }

 

  • Now make object for audioPlayer with AVAudioPlayer() like this:

 

var audioPlayer = AVAudioPlayer()

// Mark:- now add delegate method

class ViewController: UIViewController, UIImagePickerControllerDelegate, UINavigationControllerDelegate, AVAudioPlayerDelegate

{

// Mark now make to function for stop Audio

 

func stopAudio()

    {

        audioPlayer.stop()

        btnPlayAudioRepeatedly.isEnabled = true

        btnStopAudio.isEnabled = false

        playAudioRepeatedly = false

    }

 // mark function for get video from the iphone and directory

func getVideos()

    {

    let imagePickerController = UIImagePickerController()

imagePickerController.sourceType = .savedPhotosAlbum

imagePickerController.mediaTypes = [kUTTypeMovie as String]

imagePickerController.delegate = self

self.present(imagePickerController, animated: true, completion: nil)

    }

}

 

// Now created an object for Boolean value

 

var playAudioRepeatedly = true

 

// mark:- create array for playAudio data from your mobile and simulator

let arrAudio: [String] = [“chime_bell_ding”, “music_marimba_chord”, “pop_drip”]

//now make two @iboutlet weak var those create a memory for outlet:-

@IBOutlet weak var btnPlayAudioRepeatedly: UIButton!

@IBOutlet weak var btnStopAudio: UIButton!

//MARK: – AVAudioPlayerDelegate Methods

func audioPlayerDidFinishPlaying(_ player: AVAudioPlayer, successfully flag: Bool)

    {

        if (playAudioRepeatedly)

        {

            audioPlayer.play()

        }

    }

  • Now goto the object library and drag an AVKItPlayer View Controller

AVFoundation0

Now goto the project navigator and select the main project directory click on right open a list select the new file like this

Now create a new swift class that class will be cocoa touch class like this and click on the next button and give the class name VideoPlayerViewController and subclass should be AVPlayerViewController like this

AVFoundation02

After click next button open new window like seen this

AVFoundation03

Now create a new swift class with name will be VideoPlayerViewController import with these two libraries

import AVKit

import AVFoundation

//Mark: – now add a notification function for reachEndnotificationHandler

func playerDidReachEndNotificationHandler(notification: Notification)

    {

        print(“playerDidReachEndNotification”)

    }

//Mark: – this function use for load video

    func loadVideo(){

        videoPlayer = AVPlayer(url: videoURL)

        let playerVc = AVPlayerViewController()

        playerVc.player = videoPlayer

        NotificationCenter.default.addObserver(self, selector: #selector(playerDidReachEndNotificationHandler(notification:)), name: Notification.Name.AVPlayerItemDidPlayToEndTime, object: videoPlayer.currentItem)

        self.present(playerVc, animated: true)

        {

            playerVc.player?.play()

        }

    }

now do a thing that goto the click on main.storyboard select the AVKit player view controller and select the identity inspector give the class name VideoPlayerViewController and copy this class name paste the storyboard id box and Check the use storyboarb id This will work for the identifier

Now once again goto the view controller and create a uiimageaPickerControllerDelegate method

// MARK: – UIImagePickerControllerDelegate Methods

 func imagePickerController(picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : AnyObject]){

self.dismiss(animated: true, completion: nil)

let videoPlayerViewController = self.storyboard!.instantiateViewController(withIdentifier: “VideoPlayerViewController”) as! VideoPlayerViewController videoPlayerViewController.videoURL = info[UIImagePickerControllerMediaURL] as? URL as URL!

self.navigationController!.pushViewController(videoPlayerViewController, animated: true)

    }

now last one thing add @ibaction for all button in the view controller

make an action for every button  and add functionality

//MARK: – Action Methods

 @IBAction func btnPlayAudioTapped(sender: AnyObject)

    {

        playAudio()

    }

@IBAction func btnPlayVideoTapped(sender: AnyObject)

    {

        getVideos()

    }

@IBAction func btnPlayAudioRepeatedlyTapped(sender: AnyObject)

    {

        btnPlayAudioRepeatedly.isEnabled = false

        btnStopAudio.isEnabled = true

        playAudioRepeatedly = false

        playAudio()

    }

@IBAction func btnStopAudioTapped(sender: AnyObject)

    {

        stopAudio()

}

Now one important thing add a string library into a plist  because if not add this stirng  library application give the run time error

Select the info plist in the project navigator click on the add button  like this

and tap on the pulse button select the srting library this

And now last and final step connect all @iboutlet, @ibAction with view controller

  • Now run your project it will run successfully

AVFoundation08

Now click on the ok button your simulator video will be show in the list and select those you chose and play the video like this after click on the ok button

AVFoundation09

Select video click that your video play successfully

AVFoundation00

Also Read- About UICollectionView in IOS

If you are, looking to Develop and design for your project then feel free to contact us at any time

Call Us- +91 9910781148, +1 8033353593
Email: company@tecorb.com
Skype- tecorb
“We maintain transparency with our customers. Our values and business ethics has given us repeated customers. We tend are proud to be a reliable outsourcing partner for many clients across the World.”

 

MVP (Minimum Viable Product)

Over the past few years, minimum viable products (MVPs) have begun to evolve

I’m not talking about entertainment—I’m talking product flounce.

What is MVP?

Minimum Viable Product is development technique where fresh product or a website is being launched along with minimum resources in order to satisfy the tech-savvy or early adopters. The complete set of features is designed and developed after getting the feedback from the initial users about product that had already been launched. Through this initial version of product developers gather enough learning about product used by customers by applying least effort.

Importance of MVP

MVP is required to get data from customers regarding the product launch. When all the required data had been gathered then we move forward to develop fully functional product.

1). Save time and money.

2). Engage investors.

3). Cross checking whether project is being developed according to user’s feedback.

4). Get to know about the present market behavior regarding product.

MVP for Startups

It is really a cool idea for an entrepreneur organization to begin with something that won’t let them down. These are MVP building blocks that make up an application live without actually building it. As startup’s they need not to invest on development all they have to do is to focus on Wireframes, Mockups, Explanatory Video or Rapid Prototype. This will give them a basic idea to release their initial model without wasting time and money. Being an entrepreneur one needs to think about having maximum output by providing minimum input features.

All the famous startups such as Facebook, Twitter, Dropbox, Zappos, Aardvark had just an idea that had been converted into live project. It’s all up to you, how well you can use the existing technology to build newer one. Get set and hit unless and until you achieve your destiny.

Factual MVP

The basis: Associate participant could be a thanks to get the foremost bang for your buck once you’re promoting a replacement product construct.

So, you invest the smallest amount of cash and energy attainable to present your product plan a market check run so as to check if your target market is even remotely interested

“The main concept of MVP is to sell product to market.”

If they so no interest towards your concept, you only made a little investment. But if they are interested them it is green light to build a more sustainable product.

There are many building blocks to develop MVP, but I will talk about few of them.

Untitled

Building blocks of MVP

1). Wireframes

 These are best choice if you are running out of time and money. You are explaining your product to tech-laden or creative audience. If your target are people who have real interest then MVP is best choice. It is based on visual concept. Apart from that if your aim is to present it to different audience that are not from above category then you need graphical or more enhance view of MVP.

2). Rapid-Prototype

Other than that there are times that you need things that move, an eye catching stuff that contain buttons and images to attract them. Basically you need to explain you audience that they are not working on actual product so that they may not get over distracted by the functional behavior. Rest rapid prototype are best for people who need a virtual or visual representation of their product.

3). Explainer Video

It is better idea to create a video rather to develop a product. So why? By biggest advantage of making a video prototype will lead towards better explanation of product that will be developed. User will get whole working of product in few minutes. It had great advantage to present your product to potential user or investors who are really interested without really building the main product.

4). Mockups

These are safe when you are working with an audience who don’t have mental practice to visualize abstract concept. They are ready made design that will help your audience to get perfect match to meet their requirements accordingly. To have better effect you can build interactive mockups of product.

Untitled1

“For some shareholder, an image is worth than having multiple Wireframes”

Some time back my team have developed an app that have an immense effect that lead to better development of product. After the market analysis we realized that building the lite version of product had caught the market, we targeted the higher version of product that have raised the funding of product.

Mislead about MVP

Some of the folks really misinterpret the term and focus only on the former part pf definition. They skip the rest part of think of something else. For some MVP are bit sloppy or grim representation.

Releasing of half made product is not an MVP. It is tragic, or counter production.

Get your hands on most tech-freak development process to make things work out in an easy and descriptive manner.

The main purpose of MVP is to test the idea and need to get the correct learning through minimum resources.

MLM Broad Business Plan

Some example of MVP

FACEBOOK

Before coming into picture Facebook had developed an initial model and it had been released in market. Within short time span it had attracted customer towards it and set a base for developing whole product with maximum features.

Initially Facebook had very basic features and a simple format as a social media network. As time passed Facebook had increased with technology features. All that worked had made possible through the concept of MVP.

GOOGLE

When it comes to tech giant Google all that I will say is “Beyond Imagination”. Anyone had ever thought that this basic concept will built such an organization that will spread all over the Globe. It was just a search engine to crawl on web pages. It is designed in HTML just part of research purpose. Now you all know what google is capable of.

Pros of MVP

-Reusability: It refers to reuse the code both for model purpose and logical purpose that is business logic implementation.

-Adaptability: A better design won’t need further changes and on the other hand it always welcomes the changes required.

-Layered Architecture: It separate the data access from another layer as well.

-Test Driven Event: Here you can test each module separately as it is built.

Cons of MVP

-Not for small project

-Highly Complex

-Developer need to adapt the changing technology

-Requires experience and extra effort to implement right thing at right place

The main point of MVP is to sell the concept to market, not to scare away the people. The reality behind this concept is to present the overall business working in few steps. It is quite simple and descriptive in terms of visualization of product before actual development.

Conclusion

As it is said, you don’t need to be scared to make your dreams come true.

It’s supposed to be automatic, but actually you have to push this button.

-John Brunner

Also Read- List in Android

If you are, looking to Develop and design for your project then feel free to contact us at any time

Call Us- +91 9910781148, +1 8033353593
Email: company@tecorb.com
Skype- tecorb

“We maintain transparency with our customers. Our values and business ethics has given us repeated customers. We tend are proud to be a reliable outsourcing partner for many clients across the World.”

Services in Android- TecOrb Technologies

A service is part that runs inside the background to perform long-walking operations while not having to have interaction with the user and it works despite the fact that utility is destroyed. A service can basically take two states −

Sr. No. State & Description
1 Began

A service is commenced whilst an application factor, inclusive of an pastime, starts offevolved it by way of calling startService(). once commenced, a provider can run inside the history indefinitely, even though the thing that commenced it is destroyed.

2 Bound

A service is a bound when an application aspect binds to it with the aid of calling bindService(). A certain provider offers a customer-server interface that lets in additives to have interaction with the service, ship requests, get results, or even accomplish that throughout strategies with interprocess verbal exchange (IPC)

                                          Service Life Cycle

  • A service has life cycle callback methods that you may implement to monitor changes inside the provider’s country and you may carry out paintings at the appropriate level. the subsequent diagram at the left indicates the lifestyles cycle whilst the service is created with startService() and the diagram at the right suggests the existence cycle whilst the provider is created with bindService():

 Service life cycle diagram:

Untitled2

  • To create an service, you create a Java elegance that extends the service base class or one in every of its present subclasses. The service base magnificence defines numerous callback techniques and the maximum vital are given under. You do not want to enforce all of the callbacks strategies. however, it is vital that you apprehend each one and implement those that make sure your app behaves the manner users assume.

Callback & Description

  • onStartCommand(): The gadget calls this approach whilst any other thing, along with an interest, requests that the provider be commenced, by calling startService(). if you put in force this technique, it’s miles your responsibility to forestall the carrier whilst its paintings is achieved, with the aid of calling stopSelf() or stopService() techniques.
  • OnBind(): The gadget calls this technique when every other issue wants to bind with the carrier by calling bindService(). if you implement this method, you must provide an interface that customers use to speak with the carrier, through returning an IBinder object. You must always implement this approach, but in case you do not need to allow binding, then you definately should return null.
  • onUnbind(): The gadget calls this approach whilst all clients have disconnected from a particular interface posted with the aid of the service.
  • OnRebind(): The gadget calls this technique when new customers have related to the service, after it had previously been notified that all had disconnected in its onUnbind(reason).
  • onCreate(): The gadget calls this approach while the provider is first created using onStartCommand() or onBind(). This name is required to carry out one-time set-up.
  • OnDestroy():The system calls this approach while the carrier is not used and is being destroyed. Your provider should implement this to easy up any assets consisting of threads, registered listeners, receivers, etc.

Varieties of android Services

    Services in Android are components which run within the historical past. They do no longer have any person interface. One utility can begin a provider and the Service can run within the background although this application is switched with a new application via the user. There are two styles of offerings namely-

 Unbound service:   it is a form of service which runs in the history indefinitely, even though the activity which commenced this carrier ends.

sure carrier.

Bound Service: it’s miles a type of Services which runs till the lifespan of the interest which commenced this service.

Also Read- Tab Bar Controller In Swift iOS

If you are, looking to Develop and design for your project then feel free to contact us at any time

Call Us- +91 9910781148, +1 8033353593

Email: company@tecorb.com

Skype- tecorb

“We maintain transparency with our customers. Our values and business ethics has given us repeated customers. We tend are proud to be a reliable outsourcing partner for many clients across the World.”

Tab Bar Controller In Swift IOS

OverView:- Tab Bar Controller

The Tab Bar interface is helpful in situation where you want  to provide different perspective on the same set of data or in situation, where you want to or in situation where we want to provides your application long functional lines. The key component of a tab bar interface is the present of tab bar view along the bottom of the screen. This view is used to initiate the navigation bar b/w your application different modes and can also provide the information about the state of each mode

The manager for a tab bar interfaces is a tab bar controller objects. The tab bar controller creates and manages the tab bar view and also manages the view controller that provided the content view for each mode. Every contents of view controller is design as the view controller for one of the tabs in the tab bar view. When a tab is pressed by the user, the tab bar controller object select the tab and display the view associat with correspond content view controller.

Tab bar controller has its own container view, which encompass all of the other views, including the tab bar view. The custom is provided by the view controller of the selected tab.

Getting Start:-

Open a xcode  and create a new project. Use the Single View Application as starting point :-

  1. Create Single View Application and Click on the Next button
  2. Give the Product name and click  on the next button
  3. After that click on the create button

After Xcode  has created the project

  • The new project consist of two classes AppDelegate , ViewController and main.storyboard file.
  • Click Main.Storyboard in the project navigator to open it in the Interface Builder editor.
  • Select the ViewController and goto Editor click on the editor

untitled

  • Then goto the Embed in And Seclect the tab bar Controller
  • The you will see that in your project embedded a tab bar controller like this

ios-apps-development-companyIn your project of the Main.Storyboard file you will see that add a new tabbar controller and your main .Storyboard file look  like this your project inter face builder

iphone-application-development

if you want embedded  more ViewController with this tab bar controller then you select the ViewController from the object library and Drag the ViewController in the interface builder

  • Now you see that in your project have two  ViewController in the Main.StoryBoard
  • If you want join second ViewController with the tab bar controller then do this  Control + Drag on the secondViewController then you see a pop view like this

iphone-apps-development-company

Then you select the view controller from this view

Now then you see after complete this job in your project  a tab bar controller connect with your secondViewController.

tab-bar-controller

  • Now you can run your project but how to decide that , which View controller is first view Controller and which Second View Controller
  • Now you drag uilabel drag from the object library set in the first and second View Controller
  • You can write on this label as like for First View Controller “ This is my fist View Controller” and same as for second View Controller name “This is my second View Controller”.
  • And set label color White And you want change the view controller background color
  • then select the view Controller
  • and go to attribute inspector select Backgroung color
  • set the background color
  • Now, run your project

viewcontroller-bar

Now click on the simulator second item you see  the second view Controller .

second-view-controller

Also Read- Cron Job With Sidekiq

If you are, looking to Develop and design for your project then feel free to contact us at any time

Call Us- +91 9910781148, +1 8033353593
Email: company@tecorb.com
Skype- tecorb
“We maintain transparency with our customers. Our values and business ethics has given us repeated customers. We tend are proud to be a reliable outsourcing partner for many clients across the World.”

User Interface For Android Application Development

UI stands for User Interface. In Every project, UI (User Interface) is very important because it gives look and feel to the application and also makes the application user interactive and user friendly.

With the help of UI, user can interact with the application easily and can become friendly in a very less time that’s why we can also say that User Interface (UI) in the industrial field of human-computer interaction is the space where interactions between machines and human occur.

The objective of this interaction is designing of the application or project to which a user has to interact.

Generally, the objective of UI design is to produce a user interface which makes it easy, efficient and enjoyable i.e. user-friendly to operate a machine or application in a very less time.

With the increased use of personal computer in today world and the relative decline in societal awareness of heavy machinery, the term interface is generally assumed to mean the graphical user interface.

User Interface can be different for different applications and it can be according to the need of user that how the user wants to see the application or how user wants to see it.

In android we use different tools, to make the UI of application or project, there are a lot of tools available in android like edit Text for taking or editing message, button for submit or saving the message, password field for taking password, email for email, phone number for number, rating bar for rating the application and many more are available.

There is an example of user interface given below by which you can easily understand how our application looks like and how it provides usability to the user. It can be a number of different screens to present data or to flow the information.

mobile-app-free-ui-kit-template-06

Building  a Simple User Interface:

The graphical user interface for an Android App is built a hierarchy of view and ViewGroup objects are usually UI widgets such as buttons, edit texts or text field. ViewGroup objects are invisible view containers that define how the child views are laid out.

Android provides an XML to the subclasses of View and ViewGroup so you can define your UI in XML using a hierarchy of UI elements.

We can say that layouts are subclasses of the ViewGroup and layout can be linear layout, vertical layout or relative layout.

  1. Create a linear layout
    1. Open Android studio, select your project and open Android studio’s project window, you have to go to the app >res>layout>activity_main.xml.
    2. When you open a layout file, you are first shown the design editor in the layout Editor.
    3. Delete everything whatever is written over there and insert the following XML in the XML file:rsz_linear_layout
    4. Linear Layout is subclass of View Group or View that lays your child views in either a orientation as vertical or horizontal, as specified by the android: orientation attribute.

    There are two other attributes, android: layout_width and the android:layout_height, which are required for all views in order to specify the size of layouts.

    Because the linear layout is the root view in the layout, it should fill the entire screen area and by setting the width and height to “match_parent”.

    Add a Text field

    If you want to add a text field in your project then you have to go to the activity_main.xml file, within the <Linear Layout> element and add the following <EditText> elements in then XML file.

    rsz_add_edit_text

  2. Add String Resources

    Your Android project includes a string resource file by default at res>values>strings.xml. Here, you can add two new strings in the strings.xml file.

    1. From the project window, you have to go res>values>strings.xml

    2. Add two strings by which your file looks like this

    rsz_1adding_string_resource

    Add a Button

    First go to the activity_main.xml file and add a button according to the way you want and description for button XML is given below.

     rsz_button

    Make the input box fill in the screen width

    Go to activity_main, modify the edit text according tom your need which will look like given below:

     rsz_input_box_fill

    Now here is a small view of your complete activity_main.xml layout file in which there is a layout which is linear, an edit text in which your text will appear and a button which can be used according to your need whether for save or submit.

    rsz_complete_look

    Also Read- Google Map Integration in IOS

    If you are, looking to Develop and design for your project then feel free to contact us at any time

    Call Us- +91 9910781148, +1 8033353593
    Email: company@tecorb.com
    Skype- tecorb

    “We maintain transparency with our customers. Our values and business ethics has given us repeated customers. We tend are proud to be a reliable outsourcing partner for many clients across the World.”