第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

當(dāng)按鈕停留在底部時(shí)水平和垂直滾動(dòng)

當(dāng)按鈕停留在底部時(shí)水平和垂直滾動(dòng)

PIPIONE 2023-05-17 17:57:46
我有一個(gè) Android 應(yīng)用程序,它有一個(gè)可以顯示自定義數(shù)據(jù)的活動(dòng)。我需要水平和垂直,scrollbars以便在尺寸大于屏幕時(shí)可以看到數(shù)據(jù)。所以我嘗試添加一個(gè)HorizontalScrollView,它添加了水平滾動(dòng),但現(xiàn)在按鈕不再粘在屏幕底部。我該怎么辦?<?xml version="1.0" encoding="utf-8"?><android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:app="http://schemas.android.com/apk/res-auto"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"app:layout_behavior="@string/appbar_scrolling_view_behavior"tools:context=".activities.UserModeAdvancedActivity"tools:showIn="@layout/activity_user_mode_advanced"><ScrollView    android:layout_width="match_parent"    android:layout_height="match_parent"    android:fillViewport="true">    <HorizontalScrollView        android:fillViewport="true"        android:layout_width="match_parent"        android:layout_height="match_parent">    <LinearLayout        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:orientation="vertical">        <TableLayout            android:id="@+id/tableLayout_user_mode_advanced"            android:layout_width="match_parent"            android:layout_height="0dp"            android:layout_marginStart="24dp"            android:layout_weight="1"            android:padding="6dp"            android:stretchColumns="*"            app:layout_constraintStart_toStartOf="parent"            tools:layout_editor_absoluteY="0dp">        </TableLayout></android.support.constraint.ConstraintLayout>
查看完整描述

1 回答

?
慕姐8265434

TA貢獻(xiàn)1813條經(jīng)驗(yàn) 獲得超2個(gè)贊

試試下面的代碼:-


    <?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"

xmlns:app="http://schemas.android.com/apk/res-auto"

xmlns:tools="http://schemas.android.com/tools"

android:weightSum="10"

android:orientation="vertical">

<ScrollView

    android:layout_width="match_parent"

    android:layout_height="0dp"

    android:layout_weight="9"

    android:fillViewport="true">


    <HorizontalScrollView

        android:fillViewport="true"

        android:layout_width="match_parent"

        android:layout_height="match_parent">


        <LinearLayout

            android:layout_width="match_parent"

            android:layout_height="wrap_content"

            android:orientation="vertical">


            <TableLayout

                android:id="@+id/tableLayout_user_mode_advanced"

                android:layout_width="match_parent"

                android:layout_height="0dp"

                android:layout_marginStart="24dp"

                android:layout_weight="1"

                android:padding="6dp"

                android:stretchColumns="*"

                app:layout_constraintStart_toStartOf="parent"

                tools:layout_editor_absoluteY="0dp">

            </TableLayout>

        </LinearLayout>

    </HorizontalScrollView>

</ScrollView>

<LinearLayout

    android:layout_height="0dp"

    android:layout_weight="1"

    android:layout_width="match_parent"

    android:gravity="center_horizontal">

    <Button

        android:id="@+id/buttonAlarmOverview"

        android:layout_width="200dp"

        android:layout_height="wrap_content"

        android:background="@drawable/rounded_button"

        android:onClick="onButtonClick"

        android:text="@string/button_show_more" />

</LinearLayout>



查看完整回答
反對(duì) 回復(fù) 2023-05-17
  • 1 回答
  • 0 關(guān)注
  • 157 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)