小编Azr*_*kri的帖子

如何通过 https://localhost:[port] 使用 ngrok

我正在C# / .NET / MVC 上的Web 应用程序安装横幅上做一个简单的练习,这需要 https。当我尝试使用 ngrok 作为托管服务来测试它时,网站加载了一段时间,然后收到错误502 bad gateway

我通常使用此命令运行我的 ngrok ngrok http -host-header="localhost:44315" 44315

我对所有这些编程和网络内容都很陌生。所以请以正确的方式指导我。谢谢

.net visual-studio web

6
推荐指数
1
解决办法
3353
查看次数

RecyclerView之间的距离太远了

目前是android开发的初学者,我一直在关注一些练习/教程,我遇到的问题是RecyclerView中的项目之间的距离太远,如下图所示.如何让它更接近彼此?我一直在寻找,但没有任何作用.

编辑:更改android:layout_height = "match_parent"为后android:layout_height = "wrap_content"仍然没有更改布局.

所以我把我的java课程包括在内

RecyclerView截图

这是我的 .xml

custom_row_news_items.xml

<RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAppearance="?android:attr/textAppearanceSmall"
        android:text="Small Text"
        android:id="@+id/date_text"
        android:layout_alignParentTop="true"
        android:layout_alignParentEnd="true" />

    <ImageView
        android:src="@drawable/img"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/thumb_img"
        android:layout_below="@+id/date_text"
        android:layout_centerHorizontal="true" />

    <TextView
        android:background="#006699"
        android:gravity="center"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textAppearance="?android:attr/textAppearanceLarge"
        android:text="Large Text"
        android:id="@+id/title_text"
        android:layout_alignBottom="@+id/thumb_img"
        android:layout_centerHorizontal="true" />

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textAppearance="?android:attr/textAppearanceMedium"
        android:text="Medium Text"
        android:id="@+id/des_text"
        android:layout_below="@+id/thumb_img"
        android:layout_centerHorizontal="true" />
</RelativeLayout>
Run Code Online (Sandbox Code Playgroud)

content_navigation_drawer.xml

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:showIn="@layout/app_bar_navigation_drawer"
tools:context="com.example.azrie.dummyvoicethenews.NavigationDrawer">

<android.support.v7.widget.RecyclerView …
Run Code Online (Sandbox Code Playgroud)

android android-recyclerview

5
推荐指数
2
解决办法
1862
查看次数

Animate 不适用于 React 中的 whileHover

我目前面临这个问题,尽管我的比例在悬停时触发,但我的动画拒绝工作。

我浏览了文档,但仍然无法弄清楚。我错过了什么?帮助!

这是我的代码和来自浏览器的警告:

            import { motion } from "framer-motion";

            <motion.div className="heart-overlay"

                whileHover={{
                    animate: {x: 500},
                    scale: 1.2,
                    transition: { ease: "easeOut", duration: 2 },
                }}>

                <div className="heart-top">
                    <Img className="heart-default" src={heart_default_top} />
                </div>
                <div className="heart-bot">
                    <Img className="heart-default" src={heart_default_bot} />
                </div>
            </motion.div>
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

javascript reactjs framerjs framer-motion

0
推荐指数
1
解决办法
2314
查看次数