Xamarin

博客园app for xamarin android一款简洁阅读的博客园android客户端

荒凉一梦 提交于 2021-02-14 07:42:00
碎碎念回顾2017 一款简洁阅读的博客园android客户端,采用xamarin android框架 c#语言、原生的android应用。 到了年底,坐在转椅上,望着窗外的雾霾......从16年6月走出校门,已经做了1年半的码农,成长不少,但总觉得进步得不够明显,虽然工资比刚来的时候涨了不少,但是还是觉得自己不够努力。也不知道是老板给的压力太少,还是自己给自己的目标定的太短。 打开qq企业邮箱,找到去年给老大发的年度总结和计划,十分惭愧,去年的计划几乎只完成了50%。 1.多线程编程理解和运用不够熟练; 2.javascript还是停留在万金油jquery上; 3.signalr的聊天室也没搞完成; 4.计划了很久用xamarin android写个博客园也是拖了好久才完工。 5.前端自适应还是停留在bootstrap上的基础,拿着标签就干。 6.设计模式也还没有深入学习 7.android进阶的东西也还没有看 8.收藏夹的文章快大半年了,都没仔细学习,可能这就是“松鼠症”吧 9.说要学习英语,学习英语的app倒是下载4个,每天最多也就打开一次,没办法英语基础还是很差! 2018年的计划 前端自适应的学习 javascript面向对象编程 每天学习英语30分钟(可能感觉要黄) 完善自己的个人项目 c#设计模式的深入学习 webpack的掌握 维护个人博客(网站未做,服务器先行

Set CursorPosition in Editor Xamarin Forms

眉间皱痕 提交于 2021-02-11 18:21:48
问题 How can we set CursorPosition in Editor . We can set CursorPostion in Entry , but how to set it in Editor ? I know we can do it using Custom Renderer in Xamarin Forms, but how to implement it? 回答1: We cannot set CursorPosition in Editor as we set it in Entry . We need to use Custom Renderer . Using Custom Renderer makes most of the native functions and implementations possible in Xamarin Forms. To set Cursor Position in Editor in Xamarin Forms. This answer may be a bit lenghthier for

Set CursorPosition in Editor Xamarin Forms

余生长醉 提交于 2021-02-11 18:19:34
问题 How can we set CursorPosition in Editor . We can set CursorPostion in Entry , but how to set it in Editor ? I know we can do it using Custom Renderer in Xamarin Forms, but how to implement it? 回答1: We cannot set CursorPosition in Editor as we set it in Entry . We need to use Custom Renderer . Using Custom Renderer makes most of the native functions and implementations possible in Xamarin Forms. To set Cursor Position in Editor in Xamarin Forms. This answer may be a bit lenghthier for

How to Center an image in each column inside one row in Xamarin?

こ雲淡風輕ζ 提交于 2021-02-11 17:51:58
问题 I have this code: <Grid Margin="0,0,0,0" VerticalOptions="CenterAndExpand"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> </Grid.ColumnDefinitions> <!-- EACH IMAGE SHOULD BE CENTERED IN THE GRID 0 AND ROW 0--> <StackLayout Grid.Row="0" Grid.Column="0" Padding="0,18,0,0"> <Image Source="male" WidthRequest ="200" HeightRequest="165" TranslationX="5" TranslationY="10"

Camera capture image rotate to portrait - Xamarin android

女生的网名这么多〃 提交于 2021-02-11 16:48:21
问题 I have a xamarin.android project which have a custom camera Preview. Whenever I initialize the camera , it will open as landscape default. So I changed the orientation from SurfaceChanged method like this. private int setCameraDisplayOrientation(Activity mContext, int v) { var degrees = 0; var orientation =0; Display display = mContext.GetSystemService(Context.WindowService).JavaCast<IWindowManager>().DefaultDisplay; Camera.CameraInfo info = new Camera.CameraInfo(); Camera.GetCameraInfo(v,

Camera capture image rotate to portrait - Xamarin android

混江龙づ霸主 提交于 2021-02-11 16:44:51
问题 I have a xamarin.android project which have a custom camera Preview. Whenever I initialize the camera , it will open as landscape default. So I changed the orientation from SurfaceChanged method like this. private int setCameraDisplayOrientation(Activity mContext, int v) { var degrees = 0; var orientation =0; Display display = mContext.GetSystemService(Context.WindowService).JavaCast<IWindowManager>().DefaultDisplay; Camera.CameraInfo info = new Camera.CameraInfo(); Camera.GetCameraInfo(v,

Camera capture image rotate to portrait - Xamarin android

天大地大妈咪最大 提交于 2021-02-11 16:44:44
问题 I have a xamarin.android project which have a custom camera Preview. Whenever I initialize the camera , it will open as landscape default. So I changed the orientation from SurfaceChanged method like this. private int setCameraDisplayOrientation(Activity mContext, int v) { var degrees = 0; var orientation =0; Display display = mContext.GetSystemService(Context.WindowService).JavaCast<IWindowManager>().DefaultDisplay; Camera.CameraInfo info = new Camera.CameraInfo(); Camera.GetCameraInfo(v,

Xamarin Tabbed Page Content Other than Tab

我是研究僧i 提交于 2021-02-11 15:52:32
问题 Quick question, In Xamarin Forms, when using a Tabbed Page, is there any way for there to be content that remains static between the tabs (other than the tabbar itself)? For example, if I have a TabbedPage with 3 children (say Page1 , Page2 and Page3 ), can I add other children to TabbedPage that are not a part of the tab itself, but elsewhere, and stay there between tabs? My use for this is I have 3 tabs in my TabbedPage , which is are at the bottom of the page. I would like a settings

Xamarin Tabbed Page Content Other than Tab

岁酱吖の 提交于 2021-02-11 15:50:59
问题 Quick question, In Xamarin Forms, when using a Tabbed Page, is there any way for there to be content that remains static between the tabs (other than the tabbar itself)? For example, if I have a TabbedPage with 3 children (say Page1 , Page2 and Page3 ), can I add other children to TabbedPage that are not a part of the tab itself, but elsewhere, and stay there between tabs? My use for this is I have 3 tabs in my TabbedPage , which is are at the bottom of the page. I would like a settings

How to securely authenticate users with Twitter on xamarin mobile apps?

佐手、 提交于 2021-02-11 15:48:22
问题 I would like to get a user id and user access token from Twitter in a Xamarin app. I would prefer to use a library if possible like Xamarin.Auth. There is a nice description here how to do it: https://mobileprogrammerblog.wordpress.com/2016/01/23/xamarin-android-twitter-authentication/ In short: var auth = new XA.OAuth1Authenticator( consumerKey: "CONSUMER_KEY", consumerSecret: "CONSUMER_SECRET", // THIS IS THE PROBLEM requestTokenUrl: new Uri("https://api.twitter.com/oauth/request_token"),