0
Android应用中,我从Android相机返回其设置为ImageView
像一个位图:放的TextView上的ImageView
bitmap = android.provider.MediaStore.Images.Media
.getBitmap(cr, selectedImage);
image.setImageBitmap(bitmap);
进一步我想提出一个TextView这个图像上,之后保存它的website.Someone作为回答有关这一主题的另一个问题提出来做到这一点在我的xml:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView
android:id="@+id/imageview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scaleType="center"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="20dip"
android:layout_gravity="center_horizontal|bottom"
android:padding="12dip"
android:background="#AA000000"
android:textColor="#ffffffff"
android:text="Golden Gate" />
</FrameLayout>
那么这个问题是TextView的不会在那里当我保存的图像和将其上传到网站!!!!我假设这只是为了p磨砂的屏幕。 无论如何,如果有人可以帮助我,我会很感激它。谢谢!
谁是paintObj? – adrian
Paint p = new Paint(); 只是您创建的Paint对象,您可以在其中设置各种标志,例如抗锯齿,颜色等 – Tomas