Back to project page androidui.
The source code is released under:
MIT License
If you think the Android project androidui listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.example.aporter.helloandroidwithimageview; /*w ww . j a va 2s.c o m*/ import android.app.Activity; import android.graphics.Color; import android.os.Bundle; import android.widget.ImageView; import android.widget.TextView; public class HelloAndroidWithImageViewActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Set the Activity's user interface setContentView(R.layout.activity_hello_android_with_image_view); // Get a reference to the android image ImageView androidImage = (ImageView) findViewById(R.id.android); // Rotate androidImage by 45 degrees androidImage.setRotation(45.0f); // Get a reference to the hello world text. TextView helloText = (TextView) findViewById(R.id.hello_text); // Set the text helloText.setText(R.string.hello_world); // Add a shadow to the TextView helloText.setShadowLayer(16f, 12f, 32f, Color.GRAY); } }