每当我尝试指定外部libs UI元素的属性时,我都没有绑定Namespace'app'.
<LinearLayout
android:id="@+id/card_database"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clickable="true"
android:onClick="dbclicked"
android:orientation="horizontal"
android:background="#ffff7f31"
>
<ImageView
android:id="@+id/img_database"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/db"
/>
<TextView
android:id="@+id/txt_database"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:paddingStart="15dp"
android:text="@string/db"
android:textColor="#ffffff"
android:textSize="20sp"
android:autoText="false" />
</LinearLayout>
</com.balysv.materialripple.MaterialRippleLayout>
Run Code Online (Sandbox Code Playgroud)
编译'com.balysv:material-ripple:1.0.0'在build.gradle中使用,我正在运行带有更新的最新版Android Studio.
要做的事情: 使用库绘制时间序列折线图,其中x轴时间戳不是等距的.
样本数据:
1467886121:325
1467886153:326
1467886185:325
1467886248:326
1467886280:326
1467886311:326
1467886343:327
1467886375:327
1467886406:327
1467886438:328
1467886529:328
1467886561:327
1467886593:327
1467886625:326
1467886659:327
1467886692:326
1467886725: 326
注意: LHS值是UNIX时间戳,RHS值是相应时间戳的数据点.时间戳不是等距的,因此它们应根据两者之间的时间间隔进行间隔.最近,MPAndroidChart引入了这个功能[github:link]
在这里,他们似乎正在添加相隔一小时的新值.我想根据UNIX时间戳中的时间间隔添加值.
我该怎么做?
我需要使用两个不同的 ssl 证书,其中 nginx 指向同一个应用程序。
https://domain1.com指向 1.1.1.1
https://domain2.com指向 1.1.1.1 。
。
。
。
https://domainN.com指向 1.1.1.1
尝试了以下方法:
server {
listen 80;
server_name domain1.com;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name domain1.com;
root /app/dist;
index index.html;
ssl_certificate /etc/nginx/ssl/d1/certificate.crt;
ssl_certificate_key /etc/nginx/ssl/d1/private.key;
location / {
try_files $uri $uri/ /index.html;
}
}
server {
listen 80;
server_name domain2.com;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name domain2.com;
root /app/dist;
index index.html;
ssl_certificate /etc/nginx/ssl/d2/certificate.crt;
ssl_certificate_key /etc/nginx/ssl/d2/private.key;
location / …Run Code Online (Sandbox Code Playgroud)