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

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

水平和垂直滾動(dòng)。如何在代碼視圖中顯示我的 java 代碼并水平和垂直滾動(dòng)我的代碼?

水平和垂直滾動(dòng)。如何在代碼視圖中顯示我的 java 代碼并水平和垂直滾動(dòng)我的代碼?

慕村225694 2022-05-21 13:45:16
我想在帶有代碼視圖的片段中顯示我的java代碼現(xiàn)在我的問(wèn)題是我的代碼僅用于向下滾動(dòng)但我想滾動(dòng)可能同時(shí)水平和垂直代碼所以現(xiàn)在我該怎么辦?我已經(jīng)嘗試過(guò)嵌套 Horizontalscrollview 和 scrollview,但它不起作用,我的應(yīng)用程序被迷住了。<ScrollView    android:layout_width="match_parent"    android:layout_height="match_parent">    <LinearLayout        android:layout_width="match_parent"        android:layout_height="match_parent"        android:orientation="vertical">        <TextView            android:layout_width="match_parent"            android:layout_height="wrap_content"            android:text="saiful" />        <thereisnospon.codeview.CodeView            android:id="@+id/codeViewId"            android:layout_width="match_parent"            android:layout_height="match_parent">        </thereisnospon.codeview.CodeView>    </LinearLayout></ScrollView>我的java文件是public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {    View view = inflater.inflate(R.layout.fragment_java, container, false);    codeView = view.findViewById(R.id.codeViewId);    codeView.setTheme(CodeViewTheme.ANDROIDSTUDIO).fillColor();    codeView.showCode(Content.java);    return view;}
查看完整描述

1 回答

?
撒科打諢

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

不要亂用水平和垂直滾動(dòng)視圖。這是一個(gè)很好的圖書(shū)館。試試看。

“適用于 Android 的雙向平移容器,具有適用于 API 7 及更高版本的本機(jī)滾動(dòng)功能。”


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

添加回答

舉報(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)