我有这样的布局:
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
...
<FrameLayout
android:id="@+id/content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="200dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintBottom_toBottomOf="parent" />
</android.support.constraint.ConstraintLayout >
Run Code Online (Sandbox Code Playgroud)
此recyclerview被添加到“ id / content”框架布局中
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:layout_gravity="bottom"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
app:layoutManager="LinearLayoutManager" />
Run Code Online (Sandbox Code Playgroud)
将recyclerview放置在屏幕底部具有理想的效果。
当recyclerview中有许多视图持有者时,就会出现问题。我想在顶部留一些空间以查看地图(200dp的余量)。我已经尝试了很多方法,但似乎找不到一个理想的解决方案。本质上,我想要的是recyclerview将wrap_content直到该内容太大为止。如果内容太大,我希望将recyclerview扩展为可填充的空间,同时在顶部保留200dp。在iOS中,可以使用> = 200约束。这可能在android上吗?怎么样?
android android-layout android-recyclerview android-constraintlayout
以下是我到目前为止所做的事情:
1.在我的Mac上安装Charles
2.将mac和iPhone连接到相同的WiFi网络
3. Charles-> Proxy-> SSL Proxy Settings.启用*
4. Charles->帮助 - >在移动设备上安装Charles Root证书
5.配置iPhone代理到步骤3中提供的
IP.6.在iPhone上,转到chls.pro/ssl并安装根证书.
iPhone网站流量显示在Charles,但仍然是ssl加密.我错过了什么?
当我在Xcode中"找到所有"时,我希望从项目的每个部分获得结果,包括故事板.此搜索中是否包含属性字符串?