小编Bil*_*der的帖子

Relativelayout没有包装其内容

我希望我的内心RelativeLayout包装它的内容并保持在View元素之下.为什么它不像下面的图片?

我的layout.xml

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <View
        android:id="@+id/linearLayout"
        android:layout_above="@+id/input_layout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>

    <RelativeLayout
        android:id="@+id/input_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:background="#ebebeb">

        <EditText
            android:id="@+id/editText"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:layout_alignParentLeft="true"
            android:layout_alignParentStart="true"
            android:layout_toLeftOf="@+id/imageView13"
            android:layout_toStartOf="@+id/imageView13"
            android:background="@android:color/white"
            android:padding="8dp" />

        <ImageView
            android:id="@+id/imageView13"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:layout_alignParentEnd="true"
            android:layout_alignParentRight="true"
            android:src="@drawable/ic_m_send" />

    </RelativeLayout>

</RelativeLayout>
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

xml android android-layout android-relativelayout android-wrap-content

5
推荐指数
1
解决办法
3061
查看次数

世博会裸工作流程谷歌登录身份验证错误

Google SignIn 在托管工作流程中工作正常,但在弹出时停止工作。react-native-unimodules 已正确配置。所有其他配置都完全相同。出现以下错误。

授权错误

错误400:Invalid_request重定向_uri的参数值无效:缺少权限:null:/oauth2redirect/google在此输入图像描述

多次检查 ClientId 以进行确认。

更新:我最终使用了“@react-native-google-signin/google-signin”包,它工作得很好。

ios react-native google-signin expo

5
推荐指数
1
解决办法
941
查看次数