2015-12-17 45 views
-1

我採用了棱角分明的Java腳本,其中我要保持畫面靜止的上半部分,而在較低的一部分,我需要像滑動頁面的某些功能離子框架使得Android移動應用程序。意思是當我只滑動下部時需要滑動。上下滾動上部也應該固定,下部需要滾動。我嘗試使用<ion-slide>標記進行滑動,並在我的頁面中包含引導程序和jquery庫以便進行正確的移動視圖和滾動,但是滾動部分無法正常工作,頁面上半部分中包含的背景圖像未自動調整其大小。任何人都可以幫助我嗎?如何使滾動離子網頁

謝謝...

+0

請添加代碼,你嘗試過什麼。 –

+0

對不起,但我在一個組織工作,如果分享我的代碼,它可能會導致泄露機密數據。 –

+0

你必須至少在有問題的地方編寫演示代碼。 –

回答

0

嘗試用這種方式

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:background="@drawable/bg" 
android:orientation="vertical" > 
<ScrollView 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" > 

    <LinearLayout 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:layout_marginTop="5dp" 
     android:background="@android:color/transparent" 
     android:orientation="vertical" > 

     <WebView 
      android:id="@+id/webRootOperations" 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:visibility="gone" 
      android:background="@android:color/transparent" /> 

</LinearLayout> 
</ScrollView> 
</LinearLayout>