Android ImageView and Splash Screen 1. After copying an image file (Ctrl-c or right click copy), right click and paste it into one of the res/drawable.

Slides:



Advertisements
Similar presentations
1 After completing this lesson, you will be able to: Create a new presentation using a design template. Enter text in the Slide pane. Create a new slide.
Advertisements

Burning a Video or File to a CD 1.Double click on the Nero- Burning Rom icon on your desktop or go to “Start” > “Programs” > “ahead Nero” > “Nero Burning.
Select Get External Data from the Data menu on the toolbar. Then click Import Data on the menu. Browse to the correct folder and select the required file.
SVHS TAKS Scores by Teachers Addressing the Objectives.
Folder & File management 1.Window Bars 2.Window Explore 3.Create a new folder or File 4.Rename a folder or file 5.File Extensions & Types 6.Cut, Copy,
Android development the first app. Andoid vs iOS which is better? Short answer: neither Proponents on both sides For an iOS side, see this article on.
Connecting to USF Network for Web Site SSH Secure Shell is the FTP program you will use to download your http files onto the USF server. To get the SSH.
EDU 271. Introduction to Microsoft Publisher  Microsoft Publisher helps you easily create, customize, and publish materials such as: newsletters, brochures,
Teach Yourself Windows 98 Module 2: Working with Files, Folders, and the Desktop.
Animation.
1/29/ Android Programming: FrameLayout By Dr. Ramji M. Makwana Professor and Head, Computer Engineering Department A.D. Patel.
Android - Broadcast Receivers
Android Boot Camp for Developers Using Java, 3E
Networking: Part 1 (Web Content). Networking with Android Android provides A full-featured web browser based on Chromium, the open source browser engine.
Android Hello World 1. Click on Start and type eclipse into the textbox 2.
OneNote 2007 Adding text and images from the web.
ANDROID – DRAWING IMAGES – SIMPLE EXAMPLE IN INTERFACE AND EVENT HANDLING L. Grewe.
First Venture into the Android World Chapter 1 Part 2.
Windows Top 10 Time Savers! Pickens Technical College Business Department.
How to use Draggo. Table of Contents 1) About Draggo 2) Creating an account 3) Get the button: Part 1 4) Get the button: Part 2 5) Page Setup (Basics)
HW#9 Clues CSCI 571 Fall, HW#9 Prototype
Click the I Pro and select MANAGE and the PROJECTS. This will allow you to set up a folder that will contain the files for your current project. If you.
Simple Copying an Android project in Eclipse Reference: existing-project-with-a-new-name 1.
Integrate Google Drive Apps With VLE-Frog
Prepared by the Academic Faculty Members of IT. Tables Creating Tables. Merging Cells. Splitting Cells. Sorting Tables. Performing Calculations.
1 SAVE A DRAWING AS A TEMPLATE TO REUSE: SETTINGS, DRAWING SHEETS, LAYOUTS, STYLES WITHOUT RECREATING THEM IN EACH NEW DRAWING. TO REUSE: SETTINGS, DRAWING.
CMPE419 Mobile Application Development Asst.Prof.Dr.Ahmet Ünveren SPRING Computer Engineering Department Asst.Prof.Dr.Ahmet Ünveren
CMPE419 Mobile Application Development Asst.Prof.Dr.Ahmet Ünveren SPRING Computer Engineering Department Asst.Prof.Dr.Ahmet Ünveren
CMPE419 Mobile Application Development Asst.Prof.Dr.Ahmet Ünveren SPRING Computer Engineering Department Asst.Prof.Dr.Ahmet Ünveren
How to Add Pictures to SOF Gallery. Select and Click onto [PHOTO GALLERY] STEP 1.
Lab7 – Appendix.
Introduction to android
Lecture 3 Zablon Ochomo Android Layouts Lecture 3 Zablon Ochomo
several communicating screens
DRAWING LINES To draw lines click View in the Main Menu Toolbar -> Toolbars and check the Editor option. The Editor toolbar will appear amongst the toobars.
Android Moving to a second Activity
Android dan database 2 M. Taufiq, M. Kom.
Top 25 Lists.
Android 5: Assignment 1, First Half, Arithmetic Operations and Exceptions.
Android Widgets 1 7 August 2018
Android – Read/Write to External Storage
Android 7: Assignment 2, Part 1, One Button Recursion and Debugging
Android SDK & App Development
: Animated text countdown (Advanced)
Picasso Revisted.
CIS 470 Mobile App Development
CIS 470 Mobile App Development
CIS 470 Mobile App Development
How to: Move documents on SharePoint
Android ListView Demo.
CIS 470 Mobile App Development
Android Sensor Programming
CA16R405 - Mobile Application Development (Theory)
CMPE419 Mobile Application Development
CMPE419 Mobile Application Development
A few tricks to take you beyond the basics of Microsoft Office 2007
BMI Android Application will take weight and height from the users to calculate Body Mass Index (BMI) with the information, whether user is underweight,
Android: Shapes.
CIS 470 Mobile App Development
Chapter 6 Lesson 5.
Adding Components to Activity
Objects First with Java
CMPE419 Mobile Application Development
CMPE419 Mobile Application Development
CMPE419 Mobile Application Development
Android: Shapes.
Click “Execute” button.
CIS 470 Mobile App Development
Data Base.
CIS 694/EEC 693 Android Sensor Programming
Presentation transcript:

Android ImageView and Splash Screen 1

After copying an image file (Ctrl-c or right click copy), right click and paste it into one of the res/drawable folders of your project 2

Problems with the file name: Invalid file name: must contain only [a-z0-9_.] Android is very sensitive about names 3

After deleting, renaming the external file, copying and pasting 4

If a file is in the folder but not visible in the package explorer, then go to Project/Clean 5

After dragging an ImageView widget onto the layout, a dialog box appears, click on image name and OK (or double click on image name) 6

Experiment with the ScaleType attribute 7

Some changes to the ImageView attributes <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:layout_marginLeft="98dp" android:layout_marginTop="58dp" /> <ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" /> 8

So far (want it to fill the screen) 9

Remove padding from the Layout <RelativeLayout xmlns:android=" xmlns:tools=" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" > <!--Removed from above --> 10

Closer (still not quite filling the screen) 11

Add attributes to ImageView <ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:adjustViewBounds="true" android:scaleType="fitXY" /> 12

OK 13

Add a new activity: right click on package New/Other 14

Choose Android Activity Next/Next 15

Give a name, click Next, review changes, click Finish 16

Go to the AndroidManifest, switch the xml view tab 17

Add an intent-filter for the new activity 18

Use Thread and sleep to wait on splash screen before moving to new activity 19 This way of instantiating an Intent and starting a new activity uses the intent-filter action name in the AndroidManifest