Open-sided Android stroke?
问题 Is it possible to create an Android shape object with stroke on only certain sides? Eg I have: <stroke android:width=\"3dip\" android:color=\"#000000\" android:dashWidth=\"10dip\" android:dashGap=\"6dip\" /> Which is similar to this CSS: border: 3px dashed black; How can I set the stroke on just one side? This is how I would do it in CSS: border-left: 3px dashed black; How do you do this in Android XML? 回答1: I achieved a good solution with this one: <?xml version="1.0" encoding="utf-8"?>