android-drawable

    4热度

    1回答

    我有一组资源ID存储在一个数组中。这是在回收站视图内访问以填充图像视图。问题是当我访问阵列时,返回的所有值都是0. // arrays.xml <array name="array_category_icons"> <item>@drawable/autumn</item> <item>@drawable/backpack</item> </array> // insi

    -1热度

    2回答

    好吧,这是非常愚蠢的,但我找不到出路。 作为一个简单的测试,我就把bg.png到可绘制/可绘制-xhdpi但是当我引用它 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="mat

    3热度

    1回答

    我试图根据不同的级别更改进度条颜色。使用进度条 <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:maxLevel="1" android:drawable="@drawable/progress_horizontal_green"/> <item and

    0热度

    1回答

    我在画布中绘制了我的游戏的background.png图像(图像比较高,因为是一个模仿背景)。这些图像有这样的尺寸: 绘制-xhdpi:1817x443像素 绘制,华电国际:1363x332像素 绘制-MDPI:909x222像素 绘制-LDPI:682x166像素 我做了一些测试: 在我万普拉斯X图像看起来相当不错,BU在我的三星 Galaxy Nexus和Wiko Iggy的形象失去了质量。

    1热度

    2回答

    我想更改我的进度栏的渐变颜色。现在,我可以将其更改为纯色,但我无法将其更改为渐变色。 LayerDrawable progressDrawable = (LayerDrawable) myProgressBar.getProgressDrawable(); // get the color drawable of the progress bar Drawable primaryColor

    0热度

    1回答

    在这个图片我希望文字完全是与CYAN颜色的三角形绘制文本。 我已经创建了自己的ImageView: public class BookImageView extends android.support.v7.widget.AppCompatImageView { private static final Float DISCOUNT_SIDE_SIZE = 0.33333F; privat

    1热度

    1回答

    我有一个EditText包含一个可绘制的图像(任何随机图像,我不知道哪一个)。我试图通过将它转换成HTML来将它与文本一起发送到服务器。 我的服务器上,我得到这个: <p dir="ltr">Hi, this is a text <img src="[email protected]"></p> 如何发送提拉文件,而不是这个名字?

    -2热度

    4回答

    嗨大家请建议我如何创建android xml drawable像下面的图像? 现在我使用以下代码 <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item> <rotate androi

    0热度

    1回答

    My Image Please Click 如何更改红线图标?是可以改变它与PNG图片? 我看到的代码是由pathdata定义,我不知道pathdata是从哪里来的? 我怎样才能做一个“链接”到一个新的.xml文件?例如,如果我单击导入,系统必须重定向到a.xml,如果我单击幻灯片菜单,那么系统必须重定向到b.xml? 三江源大家,并在Android开发抱歉即时通讯新

    -1热度

    1回答

    我想把这个checkedtextview的所有这些参数放到一个可绘制的文件中,这样如果我制作更多的checkedtextviews,我可以使用相同的参数绘制文件。 <CheckedTextView android:id="@+id/DrinkWater" android:layout_width="match_parent" android:la