我正在尝试使用可滚动的水平项(具有未知数量的项目)来实现表视图,如下图所示:

用户界面的行为应如下:
我想过使用TableView并dequeueReusableCellWithIdentifier创建一个原型单元格,但是我需要记住列表水平位置并正确启动单元格cellForRowAtIndexPath,这可能会影响性能.
问:为了实现这一目标,您将使用什么布局,任何输入/教程都将受到赞赏
我已经在Xamarin环境工作了2年,而且大多数时候我都使用过Xamarin.Forms.但是,我不知道Xamarin Cross Platform是什么?谁能提供一些结构差异?
就像在Android Studio中一样,我想知道是否有机会让Xamarin Studio同时在多个设备/模拟器中运行应用程序.
我已将此问题作为Xamarin bugzilla上的功能请求发布. https://bugzilla.xamarin.com/show_bug.cgi?id=39356
我想将SharpZipLib.Portable库添加到我的Xamarin.FormsPCL项目中.我的目标是Android和iOS.该文档提到您必须实现一个VirtualFileSystem才能使用该库,但我不知道该怎么做,我无法找到有关该主题的更多信息.  
有没有人使用这个库可以指导我使用它所需的步骤?
我是Xamarin的新手,我正在尝试使用F#构建一个简单的Android应用程序.我正在尝试使用异步从REST API加载数据,然后显示它.我知道必须在MainThread上完成与UI的交互,并且有一些内容Activity.RunOnUiThread().我尝试过以下方法:
let onSearch args =
        let search = this.FindViewById<EditText>(Resource_Id.search)
        let searchResults = this.FindViewById<TextView>(Resource_Id.searchResults)
        button.Text <- search.Text
        async {
            let! results = recipeSearch.GetRecipes search.Text
            searchResults.Text <- results
        }
        |> Async.Start
    button.Click.Add onSearch
Run Code Online (Sandbox Code Playgroud)
这会引发与另一个线程中的UI元素交互的异常.还有这个:
    let result = async {
                    let! results = recipeSearch.GetRecipes search.Text
                    return results
                }
                |> Async.RunSynchronously
    searchResults.Text <- result
Run Code Online (Sandbox Code Playgroud)
击败了做异步的目的
谢谢
我已经创建了一个非常基本的Xamarin.Forms应用程序.
我检查了Android和iOS目标.我有3个项目:
Android特定应用程序在应用程序名称中有一个".Droid"后缀.
所以我决定在droid项目上使用clic,并在"程序集名称"字段中删除此后缀.
我在运行应用程序时遇到异常(启动时).如果我再次更改程序集名称以放置机器人后缀,它将不再起作用.您可以使用带有最新版Xamarin.Forms的空白项目来尝试此操作.
我不懂为什么.
谢谢
我正在开发Visual Studio For Mac - Xamarin.Forms
我正在使用VS2015与Xamarin一起创建一个多平台项目,该项目可以显示启动画面,然后在webview中加载网页.这是我的项目结构.我正在使用PCL项目类型如下:
TheApp(便携式)
-WebPageHoster.Xaml     //Contains a WebView control
   -WebPageHoster.Xaml.cs  //sets the WebView controls source property to load a webpage
   -App.Xaml
   -App.Xaml.cs
Run Code Online (Sandbox Code Playgroud)
TheApp.Droid
/Resources/drawable/splashlogo.png
/Resources/drawable/icon3.png
/Resources/values/Styles.xml
-MainActivity.cs
-SplashActivity.cs     
Run Code Online (Sandbox Code Playgroud)
TheApp.iOS
TheApp.WindowsPhone(Windows Phone 8.1)
这是代码 Styles.xml
<?xml version="1.0" encoding="utf-8" ?> 
<resources>
    <style name="Theme.Splash" parent="android:Theme">
        <item name="android:windowBackground">@drawable/splashlogo</item>
        <item name="android:windowNoTitle">true</item>
    </style>
</resources>
Run Code Online (Sandbox Code Playgroud)
SplashActivity.cs
[Activity(MainLauncher = true, NoHistory = true, Theme = "@style/Theme.Splash", Icon = "@drawable/icon3")]
public class SplashActivity : AppCompatActivity
{
    protected override void OnCreate(Bundle savedInstanceState)
    {
        base.OnCreate(savedInstanceState);
        var intent = new Intent(this, typeof(MainActivity));
        StartActivity(intent);
        Finish(); …Run Code Online (Sandbox Code Playgroud) splash-screen visual-studio xamarin.android xamarin visual-studio-2015
我刚刚开始学习Xamarin Android.我有几个按钮与相同的点击事件处理程序.
private Button flipper1Btn;
    private Button flipper2Btn;
    private ViewFlipper flipper;
    private TextView text;
    protected override void OnCreate(Bundle bundle)
    {
        base.OnCreate(bundle);
        // Set our view from the "main" layout resource
        SetContentView(Resource.Layout.Main);
        setControls();
        setEvents();
    }
    private void setControls()
    {
        flipper = FindViewById<ViewFlipper>(Resource.Id.viewFlipper1);
        flipper1Btn = FindViewById<Button>(Resource.Id.button1);
        flipper2Btn = FindViewById<Button>(Resource.Id.button2);
        text = FindViewById<TextView>(Resource.Id.textView1);
    }
    private void setEvents()
    {
        flipper1Btn.Click += FlipperBtn_Click;
        flipper2Btn.Click += FlipperBtn_Click;
    }
    #region Events
    private void FlipperBtn_Click(object sender, EventArgs e)
    {
        Button sendBtn = (Button)sender;       
    }
    #endregion
Run Code Online (Sandbox Code Playgroud)
在"FlipperBtn_Click"方法中,我想知道按下了哪个按钮并从此按钮获取值.我希望通过将div分配给我想要的多个属性来实现HTML5中的某些功能.我正在考虑android"Tag"属性,并试图做这样的事情:
private void …Run Code Online (Sandbox Code Playgroud) 我正在研究一个Xamarin.forms项目,但我需要使用Android.Widget.AutoCompleteTextView我该如何应用它?当我想添加AutoCompleteTextView UserNameAutoComplete;到我时   ,ContentPage我得到以下错误:
Content = new StackLayout 
{                   
    VerticalOptions = LayoutOptions.Center,
    Padding = new Thickness(25),
    Children = 
    {
        UserNameAutoComplete,
        passwordEditor,
    }
};
Run Code Online (Sandbox Code Playgroud)
无法从'Android.Widget.AutoCompleteTextView'转换为'Xamarin.Forms.View'
我正在用Xamarin IOS在MAC中制作IOS应用程序。工具栏中有文本框,但没有Android工具栏中的自动填充字段。所以有一种方法可以使文本框进入IOS Xamarin中的自动完成字段,并将其与JSON或数组连接。因为在Xamarin Guide中没有ios中自动完成的示例或指南。
xamarin ×8
c# ×3
ios ×2
android ×1
asynchronous ×1
f# ×1
layout ×1
sharpziplib ×1
swift ×1
uitableview ×1
xamarin.ios ×1