我知道应该很容易!!! 我看了教程,搜索了大约。2小时,尝试了15种不同的方法(可能更多),但仍然无法正常工作。
在我的应用中,当我聚焦/选择EditText并弹出键盘时,无法向下滚动以输入其他文本
AndroidManifest.xml > 活动设置为android:windowSoftInputMode =“ adjustPan”
这是layout> main.xml
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/bg"
android:orientation="vertical"
android:padding="20dp" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp" >
<TextView
android:id="@+id/txtProduct1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Produkt 1"
android:textColor="#FFFFFF"
android:textSize="28dp"
android:textStyle="bold" />
<TextView
android:id="@+id/txtInfo1"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_marginLeft="5dp"
android:gravity="right"
android:text="cena / hmot: 0 eur"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="#EEEEEE"
android:width="140dp" />
</LinearLayout>
<EditText
android:id="@+id/txtPrice1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginTop="10dp"
android:ems="10"
android:hint="Cena"
android:inputType="numberDecimal" >
</EditText>
<EditText
android:id="@+id/txtWeight1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:ems="10"
android:hint="Hmotnos?"
android:inputType="numberDecimal" />
<ImageView …Run Code Online (Sandbox Code Playgroud) 这听起来很简单,但我就是想不通。
我有一张桌子orders( id, username, telephone_number)。
我想通过比较过去的8个数字的订单数量从一个用户在telephone_number。
我尝试使用SUBSTR(telephone_number, -8),我已经搜索并尝试了很多,但我仍然无法让它工作。
有什么建议?