本文介绍了虚线分隔定制厚度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个虚线分隔符

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">

    <!--
#17b851 #C7B299
     -->
    <stroke
       android:color="#9e9c85"
       android:dashWidth="10px"
       android:dashGap="10px"
       />
</shape>

现在的几乎看不出来。我怎样才能使它厚。我试图让机器人:身高=2px的&放大器;机器人:dashHeight =5像素 但它没有工作。

Right now its barely visible. How can I make it thick . I tried giving android:height="2px" & android:dashHeight="5px" but it didnt work.

推荐答案

您可以使用笔画宽度,

android:width="3dp"

快照

这篇关于虚线分隔定制厚度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 13:17
查看更多