mvvm

Android开发架构思考及经验总结(下)

我们两清 提交于 2021-02-20 16:53:20
前言 架构设计,到底是什么呢?基于这段时间的学习和自己的一些思考, 我认为架构是基于产品和技术所达成的一种共识 。 我不是专业的架构师,也不是经验老道的开发者。本文目的有三,一是整理这段时间的架构学习和思考以及总结这一年的开发经验教训,二是希望能够与各位朋友探讨移动端App的架构设计,三是希望我们每一个应用开发者能够拥有架构的意识。 个人的水平有限,诸多不对的地方,恳请批评指正。 提示:文中链接需要点击文章末尾处 阅读原文 才能点击。 零、 知识大纲 提示 请先阅读 《Android开发架构思考及经验总结(上)》 五、 技术 前面啰嗦了很多,终于写到这里了。对于一个开发人员来说,怎么做才是我们的关键问题所在。只会Android开发,所以以下只讨论Android。我主要从以下几个方面来谈一谈怎么做这个问题。 1、技术选型 (1)、 开发平台 移动端的开发目前主要是两大阵营Android、IOS,其他的就不多说了。 (2)、 开发工具 编译工具:Eclipse&Ant、AndroidStudio&Gradle,作为Android开发者,目前毫无疑问应该选择AndroidStudio&Gradle; 代码仓库:Git 、SVN ,工具有海龟、AndroidStudio也集成了VCS; Maven仓库:可以使用nexus创建自己的maven私服; 持续集成:Jinkens、Buildbot

2021年-iOS面试进阶资料总结(备战年后)

拥有回忆 提交于 2021-02-20 16:14:11
面试基础 iOS面试基础知识 (一) iOS面试基础知识 (二) iOS面试基础知识 (三) iOS面试基础知识 (四) iOS面试基础知识 (五) 知识详解 iOS面试要点之GCD面试要点 iOS面试要点之多线程面试要点 iOS面试要点之block面试要点 iOS面试要点之Runtime面试要点 iOS面试要点之RunLoop面试要点 iOS面试要点之内存管理面试要点 iOS面试要点之MVC、MVVM面试要点 iOS面试要点之网络性能优化要点 iOS面试要点之网络编程面试要点 iOS面试要点之KVC&KVO面试要点 iOS面试要点之数据存储面试要点 iOS面试要点之混编技术面试要点 iOS面试要点之设计模式面试要点 iOS面试要点之UI面试要点 大厂借鉴 腾讯iOS面试题一分析 字节跳动客户端一二三面~面经 iOS今日头条第3轮面试回忆 2020年6月最新iOS面试题总结(答案篇) 2020 — iOS 面试败北感悟 小米、百度、bigo 、滴滴 、快手等iOS 面试后的一次阶段性总结 我的 2020 iOS BAT面试心得:Bigo、字节、快手、伴鱼、百度、微博等 视频参考 iOS大厂底层核心面试题解析-上 iOS大厂底层核心面试题解析-下 iOS开发者—简历分析指导 iOS底层原理进阶—Block面试详解 iOS底层原理进阶—OC对象的本质 iOS底层原理进阶—多线程原理探究

DataGridColumn with Header '*' already exists in the Columns collection of a DataGrid

余生颓废 提交于 2021-02-20 05:48:28
问题 I have a WPF application with MVVM pattern. In one of my view, I have to bind an ObservableCollection to view. In that view, I have one ListBox and one DataGrid both bind to the same ObservableCollection but doing different things like events, style etc.. I need only one of these controls displayed at a time and what I did is created two user controls, one for DataGrid and other for ListBox . And I switched between them by placing a ContentControl on the main view(something similar to this

Kendo MVVM create new record with remote datasource

核能气质少年 提交于 2021-02-20 00:48:25
问题 I think I'm missing something simple, but I can't find any examples showing how to do this... also, please forgive me if some of the terminology I'm using is wrong. I simply want to use an HTML form that is bound to a Kendo Observable object to create a new record in my remote datasource. All the examples I've seen show how to edit existing records, but that's not what I'm looking for (at least not at the moment). I've created a Fiddle http://jsfiddle.net/matbeard/fYfYz/2/ with a simple cut

Kendo MVVM create new record with remote datasource

感情迁移 提交于 2021-02-20 00:48:24
问题 I think I'm missing something simple, but I can't find any examples showing how to do this... also, please forgive me if some of the terminology I'm using is wrong. I simply want to use an HTML form that is bound to a Kendo Observable object to create a new record in my remote datasource. All the examples I've seen show how to edit existing records, but that's not what I'm looking for (at least not at the moment). I've created a Fiddle http://jsfiddle.net/matbeard/fYfYz/2/ with a simple cut

How to disable expanding/collapsing of tree items in WPF TreeView on double-click

浪子不回头ぞ 提交于 2021-02-19 08:09:06
问题 How can I disable tree items collapsing/expanding when I double-click on tree item? I still would like to do this by clicking on toggle button, but not when I double-click on item. This is XAML I have: <TreeView Grid.Column="0" Grid.Row="0" ItemsSource="{Binding Categories}" helpers:TreeViewHelper.SelectedItem="{Binding SelectedCategory, Mode=TwoWay}" > <TreeView.ItemContainerStyle> <Style TargetType="{x:Type TreeViewItem}"> <Setter Property="IsExpanded" Value="True"/> </Style> </TreeView

SwiftUI View does not updated when ObservedObject changed

眉间皱痕 提交于 2021-02-19 04:01:51
问题 I have a content view where i'm showing a list of items using ForEach @ObservedObject var homeVM : HomeViewModel var body: some View { ScrollView (.horizontal, showsIndicators: false) { HStack(spacing: 10) { Spacer().frame(width:8) ForEach(homeVM.favoriteStores , id: \._id){ item in StoreRowOneView(storeVM: item) } Spacer().frame(width:8) } }.frame(height: 100) } And my ObservableObject contains @Published var favoriteStores = [StoreViewModel]() And StoreViewModel is defined as below class

How to use a FolderBrowserDialog from a WPF application with MVVM

房东的猫 提交于 2021-02-19 01:49:07
问题 I'm trying to use the FolderBrowserDialog from my WPF application - nothing fancy. I don't much care that it has the Windows Forms look to it. I found a question with a suitable answer (How to use a FolderBrowserDialog from a WPF application), except I'm using MVVM. This was the answer I "implemented", except I can't get the window object and I'm just calling ShowDialog() without any parameters. The problem is this: var dlg = new FolderBrowserDialog(); System.Windows.Forms.DialogResult result

How to call multiple actions in View in ASP.NET MVC?

最后都变了- 提交于 2021-02-18 19:10:46
问题 Problem is: I am using a textbox to get a string q and want to pass it to 3 different actions in search controller. i.e. action1(string q), action2(string q) and so on Now syntax of my action: public ActionResult action1(string q) { var mydata = from p in fab //LINQ logic select new action1class { data1=p //assignment }; return View("_partialAction1", mydata); } Similarly there are two other actions. I am using 3 different actions because my LINQ logic gets data from 3 different sources so

How to call multiple actions in View in ASP.NET MVC?

时光毁灭记忆、已成空白 提交于 2021-02-18 19:10:04
问题 Problem is: I am using a textbox to get a string q and want to pass it to 3 different actions in search controller. i.e. action1(string q), action2(string q) and so on Now syntax of my action: public ActionResult action1(string q) { var mydata = from p in fab //LINQ logic select new action1class { data1=p //assignment }; return View("_partialAction1", mydata); } Similarly there are two other actions. I am using 3 different actions because my LINQ logic gets data from 3 different sources so