我想做一个像这样的ImageView叠加ImageView; 只有绿色圆圈的一半覆盖图像:
我试过使用RelativeLayout并将两者ImageView放在里面.然后我通过使用覆盖图像上的圆圈android:layout_alignBottom.它覆盖了但我不知道如何设置偏移量,以便只有一半的圆圈覆盖基本图像.
编辑:
对不起,这是我的布局xml代码
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginBottom="32sp" >
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/ic_person_black"
android:adjustViewBounds="true"
android:id="@+id/image_view_product" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@id/image_view_product"
android:layout_centerHorizontal="true"
android:background="@drawable/image_view_circle"
android:src="@drawable/ic_circle" />
</RelativeLayout>
Run Code Online (Sandbox Code Playgroud) 我尝试在Laravel 5上运行计划.当我运行它时它的工作正常:
$schedule->call(function() {
// do something here..
})->everyMinute();
Run Code Online (Sandbox Code Playgroud)
但是当我添加时withoutOverlapping(),调度程序从不运行任务:
$schedule->call(function () {
// do something here..
})->everyMinute()->name('job_name')->withoutOverlapping();
Run Code Online (Sandbox Code Playgroud)
*这些计划代码写在/app/Console/Kernel.php
是否可以从storage文件夹加载视图而不是resources\views?