相关疑难解决方法(0)

How to convert a Drawable to a Bitmap?

I would like to set a certain Drawable as the device's wallpaper, but all wallpaper functions accept Bitmaps only. I cannot use WallpaperManager because I'm pre 2.1.

Also, my drawables are downloaded from the web and do not reside in R.drawable.

android bitmap wallpaper android-drawable

918
推荐指数
17
解决办法
62万
查看次数

Android动画旋转

我在Android代码中进行了一些挖掘,并在不确定的进度条中看到了它的使用.尝试使用此标记创建自己的drawable后:

<animated-rotate xmlns:android="http://schemas.android.com/apk/res/android"
    android:drawable="@drawable/spinner_pia"
    android:pivotX="50%"
    android:pivotY="50%"
    android:framesCount="12"
    android:frameDuration="100" />
Run Code Online (Sandbox Code Playgroud)

我收到一个错误:"没有找到包''android'中属性'frameDuration'的资源标识符" - 这意味着frameDuration是一个私有属性.有没有办法使用这个"动画旋转"功能?

我的任务是替换系统的默认不确定进度条.我想尽可能少地编写代码(如果可能的话,只需更改一些属性).使用ProgressBar视图,设置:

android:indeterminateOnly="true"
android:indeterminateBehavior="cycle"
android:indeterminateDuration="3500"
android:indeterminateDrawable="@drawable/pia_sivuvator"
Run Code Online (Sandbox Code Playgroud)

并指向该对象的"@ drawable/pia_sivuvator"将使我的任务变得优雅,但我仍然坚持这些私有属性.

救命?

customization animation android progress-bar

53
推荐指数
4
解决办法
7万
查看次数

以编程方式旋转可绘制或视图

<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:drawable="@drawable/your_drawable"
android:fromDegrees="0"
android:pivotX="50%"
android:pivotY="50%"
android:toDegrees="360" />
Run Code Online (Sandbox Code Playgroud)

我想以编程方式旋转drawable.

我该怎么办?

这是我的回调

private class RotateListener implements RotateGestureDetector.OnRotateGestureListener{
    @Override
    public boolean onRotate(MotionEvent event1, MotionEvent event2,
            double deltaAngle) {

        return true;
    }
}
Run Code Online (Sandbox Code Playgroud)

deltaangle不大于0.1,我不知道什么是提取价值.

java android rotation

13
推荐指数
2
解决办法
3万
查看次数

我可以在哪里找到像MBProgressHUD这样的ios库,但对于android?

对于iOS我使用MBProgressHUD显示进度指示器,我喜欢它.

对于Android我使用标准进度对话框,但我想创建一些漂亮的进度条与微调在ios中.

我想加载这样的图像 ios微调器

如果您有任何相关信息,请回答.

抱歉我的英语,不是我的母语.

android android-progressbar

3
推荐指数
1
解决办法
5382
查看次数