mobile 相关问题

标签Mobile应用于标记有关移动计算问题的问题。移动计算是人机交互的一种形式,通过该形式,计算机在正常使用期间被运输。例如智能手机和平板电脑。

如何显示 SFSafariViewController 而无需在浏览器中打开它的选项

我正在使用 SFSafariViewController 作为登录页面。我想禁用在外部浏览器中打开网页的选项。有没有简单的方法可以隐藏右下角的浏览器图标...

回答 1 投票 0

隧道连接博览会重新加载错误

我使用命令“npx expo start -c --tunnel”运行我的 Expo 应用程序,每次打开应用程序 5 分钟后,都会出现涉及 Ngrok 的连接错误......

回答 1 投票 0

无法查看实时服务器以使用 IP 地址在移动设备上测试媒体查询

我正在尝试在 VS Code 上使用实时服务器扩展,并使用实时服务器端口在手机浏览器上访问我的服务器 IP 地址。 我已经尝试过配置 Windows 的解决方案

回答 1 投票 0

Xcode 14.2 预览版无法工作,但模拟器可以工作

当我尝试启动预览时遇到问题,它显示此错误: 15.0 秒后等待连接 dtservicehub 超时 我的 XCode 版本是 14.2,我的 MacOS 版本是...

回答 1 投票 0

通知单击始终会打开启动器活动

当我单击通知时,点击操作始终会启动带有启动器活动的应用程序,即使该应用程序已经在运行。我尝试了不同的标志配置以及其他任何方式,但他什么也没...

回答 1 投票 0

Flutter:连接数据库的问题

我想连接到本地数据库。我把它放在资产文件夹中,并在 pubspec.yaml 中指示“-assets/DB/information.db”。但我犯了一个错误。请帮我弄清楚。 ````

回答 1 投票 0

如何解决我的作品集网站中的滚动问题

我的投资组合网站在 PC 和笔记本电脑上运行良好,但在移动设备上它被锁定在主页上,然后我无法滚动网站。我在 JS 和 CSS 中更改了很多代码,但问题没有解决 ...

回答 1 投票 0

如何在触摸设备上触摸某个html元素时防止滚动?

我有一个简单的浏览器游戏,它在桌面上完成,但我正在尝试在移动设备上运行。 目前的问题是,当用户使用触摸屏进行垂直拖动动作时...

回答 1 投票 0

使用没有 API 和 OAuth 的网站对 flutter 应用程序进行身份验证

我有一个应用程序,我需要使用其他网站进行身份验证。 我通过场景来解释一下: 网站(例如:hashnode.com)。顺便说一句,我不能提及该网站的隐私问题。 ...

回答 1 投票 0

PageVIew 上的 Flutter 刷新指示器

在Flutter中,我会使用refreshIndicator来刷新由水平页面视图(可滚动卡片的列表)创建的列表,但似乎refreshIndicator仅适用于listView / gridView。 有

回答 1 投票 0


React Native Text 组件在 TextInput 组件内部 iOS 上的问题:在 TextInput 组件内部键入文本时失去焦点

<Text style={{ justifyContent: 'center', alignItems: 'center', alignSelf: 'center', textAlign: 'left', textAlignVertical: 'center', lineHeight: 40, width: screenWidth - 32, }}> {textwithinput.map((item: any, index: number) => { return ( <Text key={index} style={{ color: themeColor.headertextColor, fontSize: getFontSize(16), // lineHeight: 40, fontFamily: fonts.openSansRegular4, justifyContent: 'center', alignItems: 'center', textAlign: 'left', textAlignVertical: 'center', alignSelf: 'center', }}> {item.startsWith('TEXT_INPUT_') ? '' : item} {item.startsWith('TEXT_INPUT_') && ( <TouchableOpacity style={{ padding: 0, // marginTop: Platform.OS == 'ios' ? 0 :10, backgroundColor:'red' }}> <TextInputPaper value={inputValue} ref={null} style={{ height: 26, width: 80, padding: 0, borderRadius: 5, paddingRight: 5, paddingLeft: 5, backgroundColor: colors.transparent, fontSize: getFontSize(16), fontFamily: fonts.openSansMedium5, color: themeColor.textColor, borderWidth: 1, borderColor: themeColor.selectedBG, }} keyboardType="default" autoCorrect={false} autoCapitalize="none" // contentStyle={{ // paddingLeft: 5, // height: 26, // paddingRight: 5, // paddingTop: 0, // paddingBottom: 0, // }} // mode={'outlined'} onChangeText={setInputValue} /> </TouchableOpacity> )} </Text> ); })} </Text> 我在 React Native 中的 TextInput 组件遇到问题,特别是在 iOS 设备上。每当我尝试在 TextInput 中输入文本时,我都会注意到仅输入一个字符后焦点就会丢失。此问题在 Android 设备上不存在,其中 TextInput 的行为符合预期。 我尝试调查潜在的原因,例如键盘配置、焦点管理或 TextInput 属性,但我一直无法找到解决方案。 还有其他人遇到过类似的问题吗?如果是这样,您能否提供解决此问题的见解或潜在的解决方案?任何帮助将不胜感激。谢谢你。 我尝试了另一种方法来解决此问题,请检查下面的代码 const paragraph='The heart functions as a pump at the centre of the circulatory system. In humans it TEXTINPUT_0 located in the chest cavity, between the lungs, a bit to the left. The heart consists of four chambers surrounded by a very strong muscular wall, the myocardium. The upper chambers, the right and left atria, TEXTINPUT_1 blood entering the heart, and the lower chambers, the right and left ventricles pump the blood out of the heart, via the pulmonary and the systemic circulatory systems. The two systems work as TEXTINPUT_2' // created component const ParagraphWithInputs = ({ paragraph }) => { // Split the paragraph into words const words = paragraph.split(' '); // State to store input values const [inputValues, setInputValues] = useState({}); // Function to handle text change in TextInput components const handleTextChange = (index, value) => { setInputValues({ ...inputValues, [index]: value }); }; console.log('sdhgfhdsfgud',inputValues); return ( <View style={{ flexDirection: 'row', flexWrap: 'wrap',width:screenWidth-32,alignSelf:'center' }}> {words.map((word, index) => { if (word.startsWith('TEXTINPUT_')) { // If the word is a TEXTINPUT placeholder, render a TextInput component const inputKey = word; return ( <View key={index} style={{ flexDirection: 'row', alignItems: 'center' }}> <TextInput style={{ borderWidth: 1, width: 100,height:26,borderRadius:5,marginEnd:5,padding:0 ,paddingHorizontal:3,}} // Fixed width for TextInput value={inputValues[word] || ''} onChangeText={(text) => handleTextChange(word, text)} /> </View> ); } else { // If the word is regular text, render it within a Text component return <Text style={{lineHeight:40}} key={index}>{word} </Text>; // Add space after each word } })} </View> ); }; // use component in your code <ParagraphWithInputs paragraph={paragraph} />

回答 1 投票 0

移动网站上的文字无法正确显示

我正在处理的网站的某些文本使用检查元素正确显示,并使用“切换设备”工具查看网站以在我的笔记本电脑上查看移动版本,但是在我的

回答 1 投票 0

动态更改网格 Xamarin 的背景

我想根据状态更改网格的背景颜色。我制作了一个转换器,它接受状态并根据它的颜色改变颜色,但由于某种原因在调试后它没有......

回答 1 投票 0

通过charles通过wifi代理设置拦截移动流量非常麻烦,有更好的解决方案吗

每次在手机的wifi设置中设置代理都非常麻烦,而且很多时候都效果不佳。需要重新启动charles,断开wifi并重新连接。 有什么好的、可靠的方法...

回答 1 投票 0

如何在 Python 移动应用程序中与 Android 按钮交互

我正在为Android创建一个移动应用程序。该应用程序有许多页面和一个导航系统。但是,如果您转到某些页面并单击系统后退按钮,则返回的不是一页...

回答 1 投票 0

Firebase 在高峰时崩溃

我目前正在开发一个有关我学校门票的应用程序。我正在 FlutterFlow 上开发它,所以我使用 Firebase。 因此,我有一个问题。我最多可以同时连接 50 人

回答 1 投票 0

颤振:sqflite DB

代码中创建了本地数据库。它将位于哪里? 类数据库助手{ 最终数据库名称=“app.db”; 字符串用户 = “创建表用户(userId INTE...

回答 1 投票 0

在移动视图中叠加拉伸

我想让覆盖拉伸以覆盖移动视图中的所有内容,例如 4 行,每行 2 个单元格,总共 7 个单元格。最后一行只有一个单元格。 这是我写的代码,它......

回答 1 投票 0

无法自定义Flutter Toast消息

fluttertoast:我正在使用 ^8.2.4 包。我用 BatteryLevelCubit 将其包装在我的 MaterialApp.router 小部件中。在其中我每分钟检查一次电池状态。 我想要的是能够展示这个

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.