dotted-line

Dotted line is actually not dotted when app is running on real Android device

試著忘記壹切 提交于 2019-11-27 15:35:20
问题 in my app I use XML defined vertical dotted line. <?xml version="1.0" encoding="utf-8"?> <rotate xmlns:android="http://schemas.android.com/apk/res/android" android:fromDegrees="90" android:toDegrees="90"> <shape android:shape="line"> <stroke android:width="1dp" android:color="@color/light_gray" android:dashWidth="2dp" android:dashGap="4dp" /> </shape> When I am nitpicking my layout in Android Studio, the line is rendered properly dotted, as it should, but problem comes out when I run the app

Objective-C SpriteKit Create dotted line to certain points

泄露秘密 提交于 2019-11-27 07:27:56
问题 I have a certain point at the bottom of the screen . . . when I touch the screen somewhere, I'd like a dotted line to appear between the point, and the point my finger is at. The length and rotation of the line will change based on where my finger is, or moves to. I'm assuming I'd make the dotted line with a repetition of a small line image, but I guess that's why I need your help! 回答1: Note that all this can be organized better, and I personally don't like SKShapeNode in any shape :) or form