我有一个内部有两个视图的相对布局,一个CardView和一个ImageButton,我需要将IB放在cardview上面,但是cardview不尊重z索引顺序.如果我用一个LinearLayout替换cardview,它似乎是好的,所以我想问题是与cardview本身.
这是我的代码:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:background="@drawable/icons_bg_whited"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.noname.classmates.Activity.Register"
tools:ignore="MergeRootFrame"
android:padding="27dip">
<android.support.v7.widget.CardView
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:id="@+id/card_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
card_view:cardCornerRadius="10dp"
android:layout_marginTop="38dip">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/container"/>
</android.support.v7.widget.CardView>
<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/btn_upload_pic"
android:layout_centerHorizontal="true"
android:src="@drawable/upload_profile_pic"
android:contentDescription="@string/upload_profile_picture"
android:background="@android:color/transparent" /> </RelativeLayout>
Run Code Online (Sandbox Code Playgroud) 我听说你可以在公共文件夹中发布google驱动器中的静态网站,我想知道如何将我的域配置到托管在驱动器中的网站.
谢谢
当我尝试在 dotnet core API 中运行 docker build 时,出现此错误:
Invalid framework identifier ''
Run Code Online (Sandbox Code Playgroud)
这是我的 dockerfile:
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2-stretch-slim AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM mcr.microsoft.com/dotnet/core/sdk:2.2-stretch AS build
WORKDIR /src
COPY Backend/AppManagerAPI/AppManagerAPI.csproj Backend/AppManagerAPI/
COPY Backend/DTO/DTO.csproj Backend/DTO/
COPY nuget.config ./
COPY Build/dependencies.props ./Build
COPY Backend/Database/Database.csproj Backend/Database/
COPY Backend/Service/Service.csproj Backend/Service/
COPY Utilities/Utilities.csproj Utilities/
RUN dotnet restore "Backend/AppManagerAPI/AppManagerAPI.csproj"
COPY . .
WORKDIR "/src/Backend/AppManagerAPI"
RUN dotnet build "AppManagerAPI.csproj" -c Release -o /app
FROM build AS publish
RUN dotnet publish "AppManagerAPI.csproj" -c Release -o /app …Run Code Online (Sandbox Code Playgroud) 我有一个listview,它有一个适配器,工作正常,但后来我添加了一些代码,因为我希望行是不同的颜色,之后,onclick颜色不会显示.
这是我添加的代码:
if (position % 2 == 0)
vi.findViewById(R.id.parentL).setBackgroundColor(ctx.getResources().getColor(R.color.row1));
else
vi.findViewById(R.id.parentL).setBackgroundColor(ctx.getResources().getColor(R.color.row2));
Run Code Online (Sandbox Code Playgroud) android ×2
.net-core ×1
asp.net-core ×1
c# ×1
colors ×1
docker ×1
dockerfile ×1
java ×1
listview ×1
onclick ×1