請幫我兩個附加滾動視圖後面的按鈕(IE)滾動從病房半按鈕開始請幫我如何設計我要添加按鈕的半背後滾動視圖
-2
A
回答
0
試試這個代碼,滾動視圖是從按鈕到中途的一半,很多TextView是用於檢查滾動視圖的。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >
<ScrollView
android:id="@+id/scrollView1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_alignTop="@+id/button1"
android:layout_marginLeft="22dp"
android:layout_marginTop="20dp" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Large TextLarge TextLarge TextLarge
Large TextLarge TextLarge TextLarge TextLarge Text
Large TextLarge TextLarge TextLarge TextLarge Text
Large TextLarge TextLarge TextLarge TextLarge Text
Large TextLarge TextLarge TextLarge TextLarge Text
Large TextLarge TextLarge TextLarge TextLarge Text
Large TextLarge TextLarge TextLarge TextLarge Text
Large TextLarge TextLarge TextLarge TextLarge Text
Large TextLarge TextLarge TextLarge TextLarge Text
Large TextLarge TextLarge TextLarge TextLarge Text
Large TextLarge TextLarge TextLarge TextLarge Text
Large TextLarge TextLarge TextLarge TextLarge Text
Large TextLarge TextLarge TextLarge TextLarge Text
Large TextLarge TextLarge TextLarge TextLarge Text
Large TextLarge TextLarge TextLarge TextLarge Text
Large TextLarge TextLarge TextLarge TextLarge Text"
android:textAppearance="?android:attr/textAppearanceLarge" />
</LinearLayout>
</ScrollView>
<Button
android:id="@+id/button1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/scrollView1"
android:layout_alignParentTop="true"
android:layout_marginLeft="39dp"
android:layout_marginRight="39dp"
android:background="#ffff55"
android:text="Button" />
</RelativeLayout>
+0
這裏有一個問題,那裏的按鈕是可點擊的 – user1562058
+0
你可以在類中編寫button.setClickable(false); –
相關問題
- 1. 按鈕滾動視圖。 jquery
- 2. 將按鈕添加到帶有縮放的滾動視圖
- 3. 將事件添加到滾動視圖中的按鈕陣列
- 4. 我的滾動視圖不顯示最後一項(按鈕)
- 5. 添加子視圖後,iOS:ScrollView不滾動
- 6. 插入小工具按鈕後,滾動視圖不會滾動
- 7. 是否可以將按鈕添加到滾動視圖?
- 8. 如何在列表視圖上添加滾動按鈕?
- 9. 嘗試添加textview按鈕點擊滾動視圖
- 10. 將按鈕和androidplot添加到滾動視圖
- 11. 如何在滾動視圖上添加多個按鈕
- 12. Android:以編程方式將按鈕添加到滾動視圖
- 13. 向垂直滾動視圖添加按鈕
- 14. 滾動視圖中的活動按鈕
- 15. 如何添加滾動視圖中的背景圖片
- 16. 如何在滾動視圖中添加文本視圖和單選按鈕?
- 17. 使用滾動視圖來顯示edittext鍵盤背後的按鈕
- 18. 爲滾動背景添加視差
- 19. 想要在列表視圖中添加兩個浮動按鈕
- 20. 滾動視圖底部的Android按鈕
- 21. 向視圖添加滾動視圖
- 22. 將視圖添加到滾動視圖
- 23. 添加滾動視圖後相對佈局不滾動
- 24. 滾動視圖背後ActionBar Android
- 25. 動態創建和添加滾動按鈕的按鈕
- 26. 上的按鈕,其是在滾動視圖的頂部添加圖像
- 27. 添加按鈕動態使用js.now我需要這些按鈕
- 28. 爲什麼按鈕出現在我背景的一半後面?
- 29. 添加滾動視圖將整個佈局推到一半視圖大小?
- 30. 可滾動的背景和Android主要活動上的按鈕
你能畫嗎?這有點混亂。 –