drawable

Applying successive animations to ImageView in Android

依然范特西╮ 提交于 2019-12-14 02:19:06
问题 I would like to apply successive animations (say ScaleAnimation) to an ImageView showing a resource image. The animation is triggered by a button. For example, I would like to incrementally enlarge an image upon each button click. I've set fillAfter="true" on the animation. However, all the animations start from the original state of the ImageView. It seems as if the ImageView resets its state and the animation is always the same, instead of starting from the final state of the previous

Morph a retangler view into a circle [closed]

谁都会走 提交于 2019-12-14 02:13:04
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am trying to animate/morph a rectangular view/layout, as all views are rectangular. The user case for this would be: The user long-clicks a view that contains an ImageView or just the main view with a background, a new view would be generated being the size of the screen, then this view would shrink into a

Android 1.5 w/ xml drawables

徘徊边缘 提交于 2019-12-13 21:23:32
问题 I am having an issue w/ a pretty basic login screen. It does have a view flipper and relative layouts, both supported since API 1 as far as I can tell. Getting the following error : 08-23 13:20:45.567: ERROR/AndroidRuntime(801): Uncaught handler: thread main exiting due to uncaught exception 08-23 13:20:45.577: ERROR/AndroidRuntime(801): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.munzee.android.client/com.munzee.android.client.LogInActivity}: android.view

Android Button with Text with different images for Enabled and Pressed

霸气de小男生 提交于 2019-12-13 21:18:50
问题 I am trying to create a stateful Button having Text and an Image on the top via the following code: <Button android:id="@+id/btnMultiplayer" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:drawableTop="@drawable/multiplayer" android:paddingLeft="20dp" android:paddingRight="20dp" android:text="Multiplayer"/> to get this: However, I couldn't find the way to change the drawable on the top when the image is pressed. I tried to set android

Multiple screen support for my app?

可紊 提交于 2019-12-13 19:54:43
问题 I am quite confused whether I have to deal with my device, which I'm currently testing my app on, as a medium or large density device. The device is Samsung Galaxy S3 mini with 480 x 800 pixels, 4.0 inches display according to the device specifications provided by Samsung. I am planning to optimize my drawables such that a wide range of screen sizes and densities are supported. Since S3 mini is my testing device, which launcher icon is actually the one used in it? is it the one under drawable

mysterious line arround editText from searchview

强颜欢笑 提交于 2019-12-13 19:22:21
问题 I have a searchview and i changed the edittext box of them with a drawable (with java code). However I have a mysterious border that i can't remove. If you see the screenshot you will see the red line that is a border defined in drawable 'editext.xml' My problem is I doesn't know what is the black line arround the edittext. Anybody know what is and how i remove it? drawable (edittext): <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"

Html.fromHtml problem

筅森魡賤 提交于 2019-12-13 18:04:48
问题 I'm using Html.fromhtml to insert image in an editText ... but the instead of displaying the image, it displays [obj] " the text obj inside a square" what could be the problem ?? This is the imageGetter ImageGetter imageGetter = new ImageGetter() { public Drawable getDrawable(String source) { Drawable d = getResources().getDrawable(R.drawable.e11); d.setBounds(0, 0, d.getIntrinsicWidth(), d.getIntrinsicHeight()); return d; } }; This is the code line: CharSequence cs = Html.fromHtml("<img src=

draw an image to gtk.DrawingArea?

不想你离开。 提交于 2019-12-13 15:41:20
问题 I'm writing a PyGtk paint program based on the basic tutorial found here. Is there any way to add an image to the drawing area so that you can still draw over the image? Like a stamp, or an imported photo for example. I've tried adding a gtk.Image() but gtk.DrawingArea object has no attribute add . self.window = gtk.Window((gtk.WINDOW_TOPLEVEL)) self.window.set_title ("Canvas") self.window.set_position(gtk.WIN_POS_CENTER) hbox = gtk.HBox(False, 0) self.window.add(hbox) self.window.set

Android Studio doesn't recognize images in hdpi folder

删除回忆录丶 提交于 2019-12-13 09:48:47
问题 I saved some images directly to the drawable folder. These, Android Studio recognizes normally. But the images saved in the mhdpi, hdpi, xhdpi, xxhdpi and xxxhdpi folders the code does not recognize and shows an error. Does anyone know what's going on? Thanks! 回答1: Try making new drawable folders for putting images after right clicking res folder and name folders like this drawable-hdpi drawable-mdpi drawable-xhdpi drawable-xxhdpi drawable-xxxhdpi Drag and drop image with same name according

Using same drawable image in two different folder to support all tablets.(same image (no change)in two folders)

孤街浪徒 提交于 2019-12-13 08:59:45
问题 I want to keep same images in two folders drawable-large-xhdpi and drawable-xlarge-hdpi. avoiding duplication of images reduces memory How? I am having images of 1920x1080 resolution Any usefull answer i am very thankful to all. (example: if the image is half of screen width , it should be half of the screen in all tablets) 回答1: If you want to keep exactly the same image in drawable-large-xhdpi and drawable-xlarge-hdpi then you apparently do not really understand what these xhdpi and hdpi