Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/192.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
AndroidSwipeLayout固定标题_Android_Android Layout_Xamarin.android - Fatal编程技术网

AndroidSwipeLayout固定标题

AndroidSwipeLayout固定标题,android,android-layout,xamarin.android,Android,Android Layout,Xamarin.android,使用(第一次)AndroidSwipeLayout插件,看起来整个布局必须是“可滑动的” 是否有办法在同一布局中显示固定标题(通用图像/文本或其他视图) 注意:我对Xamarin Android使用绑定端口,但布局模式是相同的 原始Android组件 Xamarin Android移植 更新 在主布局内部使用似乎可以按预期工作 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" and

使用(第一次)AndroidSwipeLayout插件,看起来整个布局必须是“可滑动的”

是否有办法在同一布局中显示固定标题(通用图像/文本或其他视图)

注意:我对Xamarin Android使用绑定端口,但布局模式是相同的

原始Android组件

Xamarin Android移植

更新 在主布局内部使用似乎可以按预期工作

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:padding="10dp"
    android:gravity="center">
    <TextView
        android:text="My fixed text"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/txtIncomingCall" />
    <include
        android:id="@+id/idSwipeLayout"
        layout="@layout/SwipeLayout"
        android:layout_width="match_parent" />
</LinearLayout>

<?xml version="1.0" encoding="utf-8"?>
<com.daimajia.swipe.SwipeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="80dp">

  <!-- Bottom View Start-->
  <LinearLayout
      android:background="#66ddff00"
      android:id="@+id/bottom_wrapper"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:weightSum="1"
      >
    <!--What you want to show-->
  </LinearLayout>
  <!-- Bottom View End-->

  <!-- Surface View Start -->
  <LinearLayout
      android:padding="10dp"
      android:background="#ffffff"
      android:layout_width="match_parent"
      android:layout_height="wrap_content">
    <!--What you want to show in SurfaceView-->
  </LinearLayout>
  <!-- Surface View End -->

</com.daimajia.swipe.SwipeLayout>