material

Material Design Lite (MDL) Navigation Drawer on the right side

可紊 提交于 2019-12-09 05:01:32
问题 I am using Google Material Design Lite (MDL) for web and I am unable to put the navigation drawer on the right side. The documentation has none information about how to do that. Is that even possible? The default drawer always come from the left. <header class="custom-header mdl-layout__header mdl-layout__header--waterfall"> <div class="mdl-layout__drawer-button"> <i class="material-icons">menu</i> </div> <div class="mdl-layout__header-row"> <span class="mdl-layout-title">My App</span> </div>

What is the status on Multiple Materials?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-09 03:24:37
问题 I cannot find any documentation on multiple materials - i know MultiMaterial has been deprecated but how does it work now? Does three.js support this and if so how does faceVertexUvs map to multiple material (i mean a practicle example please) 回答1: To apply multiple materials to an object, you are now able to assign them just as an array to the material property. mesh.material = [material1, material2, material3]; See Migration Guide (r84 → r85): MultiMaterial has been removed. Use an Array

How to remove the delay when opening an Activity with a DrawerLayout?

亡梦爱人 提交于 2019-12-08 15:49:53
问题 I have an activity with a DrawerLayout but whenever it opens there is a delay like a split-second where the screen is white then my screen is drawn. This happens after the Transition finishes. So it sort of looks like the screen animation transition is jumping. I tried putting this on my OnCreate after binding the views with ButterKnife but it did nothing. if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { postponeEnterTransition(); drawerLayout.getViewTreeObserver()

Angular 2 material datepicker highlight special days

 ̄綄美尐妖づ 提交于 2019-12-08 12:02:27
I've been looking around for a way to mark up special days in the calendar to the user. I know that you can disable certain days in the datepicker but I would like to be able to just mark/style certain days, for instance change background/color to red on dates that have a special value, holidays for instance, and not disable them. I have not found any way to do this, sorry if I have missed something obvious. Have anyone found a way to do this or is it easier to just make my own datepicker in this case? If you look at the HTML of an open datepicker, you will see each day is represented by a td

Transparent Object hides other transparent Objects (alphaTest don't works and depthWrite = false causes some trouble)

ε祈祈猫儿з 提交于 2019-12-08 11:05:51
问题 I currently have a problem with transparency. As you can see in the pictures, the non transparent objects behind the transparent object are shown. But the backside of the other transparent object is not shown, I set material.side = THREE.DoubleSide . It is visible, when I set material.depthWrite = false , but then the visible glitch happens, you can see in the second picture. I use THREE.MeshPhongMaterial and the newest Version of Three.js . Here are the values for the material you can see in

load: id=gralloc != hmi->id=gralloc

两盒软妹~` 提交于 2019-12-08 03:24:21
问题 I want use Material Design in my App, so I change AndroidManifest.xml just like: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.zdr.umarket" > <uses-permission android:name="android.permission.WRITE_SETTINGS"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true"

Alpha applied to floating action button creates weird circle?

南笙酒味 提交于 2019-12-08 02:34:16
问题 In my app I am using a material design floating action button. Whenever I change the backgroundTintColor property of the button to something with an alpha below 255, it creates this strange circle within the button. I have provided a picture of the button below with my xml code... Any help would be greatly appreciated. <FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|right|end" android:layout_alignParentBottom="true" android

Can we drag and drop md-list item or md-cards in angular material design

*爱你&永不变心* 提交于 2019-12-07 18:58:11
问题 Can we drag and drop md-list item or md-cards in angular material design using jQuery or other framework? 回答1: I can give a partial answer to this. It is not recommended to add jQuery to an Angular project. Angular is controller-centric while jQuery is focused on manipulating the DOM. They are really different approaches, and while you could possibly get something to work using jQuery and Angular together--it would tend to be a fragile and overly complex solution. The same holds for Angular

SceneKit, flip direction of SCNMaterial

江枫思渺然 提交于 2019-12-07 00:26:17
问题 extremely new to SceneKit, so just looking for help here: I have an SCNSphere with a camera at the center of it I create an SCNMaterial, doubleSided, and assign it to the sphere Since the camera is at the center, the image looks flipped vertically, which when having text inside totally messes things up. So how can i flip the material, or the image (although later it will be frames from a video), any other suggestion is welcome. This solution, btw, is failing on me, normalImage is applied as a

Unity插件 - MeshEditor(八)模型镜像特效

孤人 提交于 2019-12-06 22:11:46
将静态模型(带MeshFilter)按指定轴向、指定距离克隆一个镜像物体出来,思路很简单,将模型的顶点坐标按指定轴取反,并累加上设定的距离值,然后就完毕了!不过,因为镜像体的顶点镜像于之前模型的顶点,所以三角面的渲染顺序要变,面的渲染,在unity中,因为一个三角面是以这个三角面的三个组成顶点的顺时针顺序渲染的,镜像颠倒以后,面的渲染顺序正好相反,模型的面正好全部渲染到相反方向(不过感觉像是一个做双面材质的笨办法),这里将所有三角面保存的顶点信息整体倒置一遍就正好倒置了所有面的渲染方向了。 感觉有点绕,例如,一个面有三个顶点组成,分别是1,2,3,他们是这样分布的: 渲染顺序为1,2,3的话,就是渲染的面向屏幕之外的这个面,渲染顺序为1,3,2的话,就是渲染的面向屏幕之内的这个面。 基本情况就是这样了。 接下来是代码: 第一步: 重新生成镜像物的顶点: /// <summary> /// 生成镜像顶点 /// </summary> Vector3[] GenerateVertices(Vector3[] oldVertices) { Vector3[] newVertices = oldVertices; //镜像所有顶点 switch (_MirrorDirection) { case MirrorDirection.x: for (int i = 0; i <