Chuyển đến nội dung chính

Bài đăng nổi bật

Stardock DeskScapes Full

DeskScapes gives you the capability to animate and customize the wallpaper on your Windows desktop. Choose from the massive integrated library or use your own images or video files to personalize your desktop. Animate your Windows desktop wallpaper Use video and Dream files with DeskScapes to apply animated wallpaper to your desktop. The .Dream format, which DeskScapes uses, has been specially designed to contain content used to animate wallpaper. You can also apply any dream as your PC screensaver! Easily customize and create your own backgrounds DeskScapes includes over 60 special effects plus colorization options to make any image or video into a fantastic, custom background. Want to create a .Dream to share? Use the included Dream Maker app to package your own animated or video creations. System Requirements Requires a 64-bit processor and operating system Windows® 7 / 8 / 10 64-bit Microsoft DirectX™ Minimum screen resolution: 1280 x 720 Download  - DeskScapes Full  How ...

The Secret

Different image for focused,pressed and normal state in android button

     In this tutorial we are going to learn about the android button and every state (pressed,focused and normal) of an image when placed on that button.

1) First create a new project in android studio more details...

2) Remove the TextView code from activity_main.xml, create a button in your project by using the following code or tools.

<Button
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:background="@drawable/btnhome_new" />


android add button in main_activity.xml

Note:
     In the above image you can see an error @drawable/btnhome_new. This is because the program contains the file btnhome_new.xml  on drawable directory, which is not yet created.

3) Now we are going to create a file btnhome_new.xml on drawable directory.
   a) Right click on the drawable directory  => New => Drawable resource file
 
Create new xml file in android

   b) Now a file is opened btnhome_new.xml just remove all the code from that file and replace with the code given below.

Note : Once we create this file the error(@drawable/btnhome_new) will be removed from activity_main.xml.

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/btnblue"
android:state_pressed="true" />
<item android:drawable="@drawable/btnrose"
android:state_focused="true" />
<item android:drawable="@drawable/btnred" />
</selector>

Selector added in a xml file in android.jpeg

You can see some errors in this code
@drawable/btnblue
@drawable/btnrose
@drawable/btnred

 Because btnBlue.jpg , btnRose.jpg and btnRed.jpg are not in drawable directory.
  4) Now we are going to create all these files in drawable directory.

     Copy the images to drawable directory.

     Paste the copied images to drawable directory.
Paste the copied images to android drawable folder

     A dialog box will ask for confirmation, just press ok.
Paste dialog box in adndroid studio
     Now the images are placed into drawable folder, and you can see that the error has been removed.

Successfully removed the error in android

Note : Image name should not contain capital letters.


Nhận xét

Bài đăng phổ biến từ blog này

kmspico download

KMSpico 8. 5 is an Small Tool. By Applying KMSpico You can Stimulate Your Office 2013 Item and Windows 8 Most Version. 1st name was KMSnano, now has converted into KMSpico. Its purpose is the very same as KMSnano, is an Activator of Windows 8 and Office 2013. So it is a very usefull tool. So Download and Enjoy. KMSpico v8. 5 Setup Edition: - Requirements:. NET 4. 0 or Windows 8/2012. - Trigger: Windows Vista Business/N/Enterprise/N House windows 7 Professional/N/E/Enterprise/N/E Windows almost 8 Core/N/Professional/N/ProWMC Windows (8. one particular Preview) Office 2010/2013 House windows Server 2008/Standard/Datacenter/Enterprise/2008R2/Standard/Datacenter/Enterprise/2012/Standard/Datacenter Instruction: Work KMSpico_Install_v8. 5. exe Mount it. 1 (Optional) Produce a tokens backup with the buttom: Create. Press the Red Buttom. Performed. to download KMSpico click the download button below: DOWNLOAD

download adobe flash player 11

Adobe Flash Player is a key module for your program that permits you to see everything from video to diversions and movement on the web Convenient elements  Adobe Flash Player incorporates a scope of fascinating increases and upgrades when contrasted with past forms. Top of that rundown is the incorporation of support for the H.264 video codec and the HE-AAC sound codec, which together offer a much wealthier, better quality picture alongside perfectly clear stable. Presenting these abilities in Adobe Flash Player with just somewhat lessened execution looks set to trigger another unrest in web video, as HD motion pictures are as of now a critical component on YouTube - and they look and sound incredible! It's showing signs of improvement and better  Adobe Flash Player resolves a portion of the issues that past adaptations have experienced (like security and steadiness issues), also including support for ActionScript 3.0. It likewise makes awesome 3D illustrations conceivable. T...

Download OBS Full ( Gaming Screen recorder)

The most capable free screen recorder and gushing instrument accessible for gamers, with all that you have to accomplish proficient outcomes. It may take a short time to acquaint yourself with its interface, however the exertion will pay off. YouTube gives anybody the chance to end up plainly a supporter, however keeping in mind the end goal to begin you will require a type of programming to combine your substance. It might be that you're simply recording a straight piece to camera, however it's more probable that you'll need to make something somewhat more confounded that includes the utilization of numerous sources. Utilizing OBS Studio you can not just record straightforwardly from your webcam and receiver, you can likewise join film from amusements, include existing recordings and still pictures, catch a window or part of your screen, and substantially more. As you may figure from the name, OBS Studio is a product studio. It empowers you to work with these different sou...

Free $100