android - How to merge and move text around on image

hi
Here's what i want to do.
- Open a jpg in full screen.
- Type text on the jpg.
- able to move that text where i want it positioned on the bitmap.
- moving of text must be done with a finger (not in code).

kind of like creating a personal funny Christmas card...

I find loots of example of writing text onto Bitmap but nothing about moving that text around.

Help is needed!

EDIT - The image and added text must be saved as a new jpg with same size

-------------Problems Reply------------

  1. Draw the bitmap onto the screen, then draw the text onto it at an initial x,y (e.g. the center), following the examples you found.
  2. Receive input events describing finger-dragging movements.
  3. Use those input events to change the x,y values for drawing the text.
  4. Redraw the bitmap and the text onto the screen, with the text being at the new x,y location.
  5. Repeat from step 2.

Let us know if there are particular parts of this that you need more elaboration on.

Category:android Views:0 Time:2011-05-05

Related post

  • When running Android JUnit tests the values of text in TextView can not be accessed by .getText().toString() causing tests to fail 2011-02-03

    When running Android JUnit tests the values of text in TextView can not be accessed by .getText().toString() causing tests to fail. http://www.android10.org/index.php/articlesother/203-unit-testing-with-the-junit-testing-framework I downloaded the co

  • Android - Radio Button Not Showing its Text 2011-07-25

    My app has a radio button group as part of a RelativeLayout. My problem is that the RadioButtons are not showing their text. All I get is the buttons themselves. Here is the XML: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:a

  • Using text2pcap (or equivilent) to merge multiple plain text packets into one pcap 2011-09-08

    I'm trying to merge multiple plain text packets into one large pcap file. I have been using text2pcap on each individual text file, then using mergecap on all the pcaps to create my final output. However, that's really slow, as it involves writing ou

  • Xpath expression in Android for node with two child text nodes 2011-09-20

    I have a sample XML (Android platform) and I wanted to know the easiest and most efficient approach to get the node value of the text node. <div id="myid"> <img src="..." width="1" height="2" alt="Text" /> <p><strong>Unwanted

  • Android: a service to TTS displayed text 2011-10-24

    I am planning to write a service to enable Android users to listen to any text is currently displayed (be an email, an ebook, a web page, a note, an SMS, etc...), upon request. Do you think it is feasible? Do you know if it has been done, already? Ho

  • Android: TextView.setTextAppearance() does not effect text size 2011-12-22

    Running on my Samsung Galaxy Note, the below code logs 28.0 for each log statement. Am I doing something wrong? label = new TextView(context); Log.e("text size", "" + label.getTextSize()); label.setTextAppearance(context, android.R.attr.textAppearanc

  • Android share intent for facebook- share text AND link 2012-01-07

    I am trying to use the Android share intent to post something on facebook. It looks like this: shareIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); shareIntent.setType("text/plain"); shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, "Free educa

  • Android onClick does not change the text color of buttons 2012-04-20

    I am trying to change the color of the text on the buttons. Here is my code import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget

  • merge images with text 2009-04-03

    Is there a way to put text on a png and then merge it wit a jpg / gif image? --------------Solutions------------- you can draw any text in or on image with gd using ttf or type1 fonts ( if its enabled in gd in php). http://hr.php.net/manual/en/image.

  • Android speech - how can you read text in Android? 2009-07-21

    How can you read data, i.e. convert simple text strings to voice (speech) in Android? Is there an API where I can do something like this: TextToVoice speaker = new TextToVoice(); speaker.Speak("Hello World"); --------------Solutions------------- Here

  • Android: AutoCompleteTextView show suggestions when no text entered 2010-01-24

    I am using AutoCompleteTextView , when user clicks on it, I want to show suggestions even if it has no text - but setThreshold(0) works exactly the same as setThreshold(1) - so the user has to enter at least 1 character to show the suggestions. -----

  • Android listview produces black highlighting over text when scrolling. How to stop this? 2010-05-08

    Duplicate: Background ListView becomes black when scrolling I have a listview within which each item contains black text on a white background. When testing on a Nexus One, when scrolling down to read through the text, a black highlight appears over

  • android: how to merge an array of bitmap together in one bitmap? 2010-06-28

    i'm trying to make a map loader for tiled, on android.. so far i could parse the tmx file, grab all the tile data, and put them in a 2dimensional array, like this: Bitmap tiles[x][y] ... it works and i can render tiled maps on android now, but only b

  • Android: Sorting a merged cursor 2010-07-30

    I'm wondering if there's any way to merge two cursors together and then resort them. I can easily merge two cursors together by using a MergedCursor, but that doesn't sort them. I have two sets of contacts in two separate cursors (with totally differ

  • Android widget: How to change the text of a button 2010-10-03

    How can I change the text of an Android button widget within code and not the XML file? --------------Solutions------------- You can use the setText() method. Example: import android.widget.Button; Button p1_button = (Button)findViewById(R.id.Player1

  • In Android, how do you capture the text value of the item clicked in a ListView? 2010-10-15

    What I'm trying to do is set the text of the item I click on into the myEditText. Not sure how to access the specific item in ListView though... ListView myListView = (ListView)findViewById(R.id.myListView); final EditText myEditText = (EditText)find

  • Android: Preserve button size when changing text 2010-10-24

    I have for example a Play/Pause button and would like its size not to change when I change the text from 'play' to 'pause' and back. Due to internationalization I don't know if 'play' or 'pause' will be the longer string.. I imagine I need to set the

  • setting android:background is messing up the text for my radiobutton 2010-12-05

    I built this for Android 2.2 Here is my code. The java is generated by eclipse. The xml I changed. package foo.bar.radiobuttontest; import android.app.Activity; import android.os.Bundle; import foo.bar.radiobuttontest.R; public class rbt extends Acti

  • Merge two strings (text files) 2011-01-12

    Possible Duplicate: Any decent text diff/merge engine for .NET ? I got two text files that I would like to merge in some way. The first is just a edited version of the second. Are there any open source tools available which can help me with that? Edi

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.179 (s). 11 q(s)