我对在Android工作室项目中显示3D模型和图形感到有些困惑.
我一直在与Rajawali合作,这是一款Android OpenGL ES 2.0/3.0引擎.
感谢Rajawali,我能够显示3D模型,执行简单的动画并移动相机.
现在我想执行越来越复杂的动作和动画,也许创建自定义材质和纹理,但Rajawali wiki非常过时,这个库有一些限制(在我看来).
所以现在我想知道是否有办法在Unity3D中创建场景或某些东西,例如我可以用手指旋转的动画3D模型视图,然后将其转换为Android Java类或CustomView.
谢谢.
编辑:
这是我目前得到的:
这是我的Android Studio APP的主屏幕.在Backgroud我有一个用Rajawali"加载"的3D模型视图.
如何使用Unity获得相同的结果?
我正在尝试按照 github 上 angularfire2 文档中的指南进行操作,但是当我尝试打开用于 google 登录的弹出窗口时,它会立即关闭。
我试过不同的浏览器,但我不知道发生了什么。
这是我的表单组件的 HTML:
<div class="container " >
<h2 class="date">Wallet manager</h2>
<h1>SUBBO</h1>
<form>
<div class="form-group">
<label class="date" for="exampleInputEmail1">Email address</label>
<input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email">
<small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
</div>
<div class="form-group">
<label class="date" for="exampleInputPassword1">Password</label>
<input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
</div>
<button type="submit" (click)="login()" style="margin-top:20px" class="btn btn-outline-warning">Login</button>
<button type="submit" (click)="logout()" style="margin-top:20px" class="btn btn-outline-warning">Logout</button>
</form>
</div>Run Code Online (Sandbox Code Playgroud)
这是代码:
import { Component, OnInit } from '@angular/core';
import { AngularFireAuth …Run Code Online (Sandbox Code Playgroud) 我目前正在 Vuetify 的帮助下在 Vue.js 中开发一个 webapp。
我发现扩展面板元素非常有用,我想在我的网站中使用它。
所以我很容易从 Firebase 获取我想要显示的数据,然后我继续使用此模板加载项目:
<v-expansion-panel popout>
<v-expansion-panel-content
v-for="doc in filteredclienti"
:key="doc.id">
<div slot="header">{{doc.data().Nome}} {{doc.data().Cognome}}</div>
<v-card>
Card content
</v-card>
</v-expansion-panel-content>
</v-expansion-panel
Run Code Online (Sandbox Code Playgroud)
一切正常,面板正常,弹出动画也正常。
现在我想为每个项目显示一个简单的进入/离开动画。
我试图在之后添加一个<transition-group>标签,<v-expansion-panel popuot>但控制台告诉我只需要一个<v-expansion-panel-content>元素。
所以我尝试添加<transition-group>inside<v-expansion-panel-content>但在这种情况下布局不再正确并且弹出动画不再起作用。
我该怎么做?谢谢!
我刚刚在android studio中发现了seekbar离散小部件,我发现它非常有用,但是我不知道如何删除步长指示器,或者使用更合适的drawable对其进行更改。
有人设法做到了吗?
这是我当前搜索栏的屏幕:
我想更改所有当前的步数指示器,谢谢。
编辑:
这是我当前可绘制的进度:
<item android:id="@android:id/background" >
<shape >
<corners android:radius="20dp" />
<gradient
android:startColor="@color/Trasparente"
android:centerColor="@color/Trasparente"
android:centerX="1"
android:endColor="@color/Trasparente"
android:angle="0"
/>
</shape>
</item>
<item android:id="@android:id/progress" >
<clip android:clipOrientation="horizontal" android:gravity="left" >
<shape>
<corners android:radius="20dp" />
<gradient
android:startColor="@color/colorBluClima"
android:centerColor="@color/colorGreenServizi"
android:centerX="0.35"
android:endColor="@color/colorRossoErrore"
android:angle="0"
/>
</shape>
</clip>
</item>
Run Code Online (Sandbox Code Playgroud)
这是布局中的我的搜索栏:
<SeekBar
android:maxHeight="12dp"
style="@style/Widget.AppCompat.SeekBar.Discrete"
android:layout_width="812dp"
android:layout_height="100dp"
android:max="19"
android:id="@+id/SeekBarStufa220"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:layout_marginStart="90dp"
app:layout_constraintLeft_toLeftOf="parent"
android:layout_marginEnd="90dp"
app:layout_constraintRight_toRightOf="parent"
android:paddingEnd="85dp"
android:paddingStart="85dp"
android:progressDrawable="@drawable/progress_seek_clima"
android:thumb="@drawable/ic_temprature"
app:layout_constraintVertical_bias="0.79"
android:progress="10" />
Run Code Online (Sandbox Code Playgroud)
拇指是一个简单的可绘制对象
我正在开发一个Android应用程序,它在Android设备和BLE pheripheral(一个简单的发送器)之间打开一个BLE连接.
我发现外围设备具有多种读取特性.当我尝试启用通知时,问题就出现了.
第一个总是返回true,并且它开始触发我的通知回调,其他的总是返回false值.
List<BluetoothGattDescriptor> descrittoriDellaChar = getListaDescrittoriDaCharact(charact);
Boolean status = null;
for (int i = 0; i < descrittoriDellaChar.size(); i++) {
BluetoothGattDescriptor TargetDescriptor = descrittoriDellaChar.get(i);
byte[] valore = TargetDescriptor.getValue();
if (valore != BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE) {
getCharDiLettura().add(charact);
TargetDescriptor.setValue(BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE);
//TargetDescriptor.setValue(BluetoothGattDescriptor.ENABLE_INDICATION_VALUE);
boolean success=false;
while(success==false) {
success = gattGlobale.writeDescriptor(TargetDescriptor);
}
status = gattGlobale.setCharacteristicNotification(charact, true);
}
}
boolean prio= gattGlobale.requestConnectionPriority(gattGlobale.CONNECTION_PRIORITY_HIGH);
Run Code Online (Sandbox Code Playgroud)
我使用相同的方法,因为我只有1个特征来阅读,现在它不再起作用了.
我正在开发一个Android BLE应用程序,我尝试在应用程序和BLE设备之间建立稳定的连接.
为了实现这一点,我希望我的应用程序将BLE设备数据保存在共享首选项或某处.
应用程序关闭后,我希望我的应用程序可以检索此数据并尝试连接而无需扫描设备.
我宁愿每次都避免扫描因为扫描给我带来了很多问题而且需要时间.
怎么办?有没有办法保存BLE数据?
我最近一直在使用 Vuetify 框架在Vue.js 中进行开发,但遇到了一个我不知道如何解决的问题。
因此,在某些情况下,我需要使用 vuetify网格组件在网格中显示一些数据。
我查看了有关它的代码,并决定在我的一个页面中的 V-Card 中尝试它。
当我在里面只有几个元素时,比如 7/8,网格不是那么高。
但是当组件越来越多时,网格变得太高,它填满了我的可用空间,扩展了我的页面(我不希望我的页面扩展超过屏幕高度)。
我以为通过style="max-height:300px"在V-card上添加一个简单的我可以阻止网格扩展并且网格会得到一个简单的横向滚动条,但是我得到的效果有点不同。
卡片高度限制为 300 像素,但里面的元素会不断扩展超过 v 卡片的高度。
这是一个Codepen。
我怎样才能得到我正在寻找的结果?谢谢。
我已经在Android环境中使用Firebase 2到3个月了.
我的所有安全性都是用户注册和登录以及基于身份验证的一些数据库规则.
现在我在Web环境(HTML和Javascript)中开始一个新项目.
它应该是一个连接到firebase以执行一些写入和读取操作的Web应用程序.
我不希望用户进行身份验证,因为没有必要.
令我害怕的是浏览器开发者控制台可以看到所有HTML和JavaScript.在我的Html中,有一个Firebase配置,需要将我的项目与数据库和所有其他功能连接起来.
让每个人都看到配置是安全的吗?
在这种情况下实施安全性的正确方法是什么?
android ×4
firebase ×2
vue.js ×2
vuetify.js ×2
angularfire2 ×1
bluetooth ×1
css ×1
html ×1
javascript ×1