mvvm编程思想_简单的android编程mvvm

mvvm编程思想

This is first tutorial in EASY Android Programming: MVVM series.

这是EASY Android编程:MVVM系列中的第一篇教程。

Eminent Mr. Woody Guthrie has said it right

着名的伍迪·古思里先生说的没错

Any fool can make something complicated. It takes a genius to make it simple.

任何傻瓜都会使事情变得复杂。 使它变得简单需要天才。

So how all this is connected?

那么所有这些如何连接?

Most of the experienced or intermediate software developers know that its the quality of the application that makes it saleable. Users like that app which doesn’t crash and do the desired work in lesser no of steps.

大多数有经验或中级的软件开发人员都知道,其质量使其可以销售。 用户喜欢该应用程序,它不会崩溃,并且只需较少的步骤即可完成所需的工作。

UI Experience designers put a lot of midnight oil to come up with eye-catching UI, yet, easy to navigate. The UI may allow a user to perform a task with a lesser no of steps.

UI Experience设计师投入了大量的午夜精油来设计醒目的UI,而且易于导航。 UI可以允许用户以较少的步骤数来执行任务。

Hardworking developers put a lot of effort to develop an application that confirms UX design by using required design patterns in coding.

勤奋的开发人员投入了大量精力来开发通过在编码中使用所需的设计模式来确认UX设计的应用程序。

处理 (Process)

In this article, I will make an android application as a metaphor but the rules are similar for any type of software development. To make things clearer, I would start with MVVM in Android development.

在本文中,我将以android应用程序为隐喻,但是对于任何类型的软件开发,规则都是相似的。 为了使事情更清楚,我将从Android开发中的MVVM开始。

Before proceeding further, I would expect you know Git (SCM), if not please study one of the earlier articles this and this.

在继续进行之前,我希望您了解Git(SCM),否则请学习以前的文章thisthis之一

Checkout the weatherdata branch for the repository link . if you see code structure

为存储库链接签出weatherdata分支。 如果您看到代码结构

Image for post

In continuation of the above, there are a bunch of kotlin files in firebasedatabasedemo package. Lets open FrontListFragment.kt file you will find below code.

继续上述操作,firebasedatabasedemo程序包中有一堆kotlin文件。 让我们打开FrontListFragment.kt文件,您将在下面的代码中找到该文件。

/*
* Copyright (c) 2019. Relsell Global
*/package `in`.relsellglobal.firebasedatabasedemoimport `in`.relsellglobal.firebasedatabasedemo.pojo.CityContent
import android.os.Bundle
import android.view
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值