tag:blogger.com,1999:blog-77320579933256170582024-02-08T07:15:55.616+05:30Mayadi A Knowledge SourceUnknownnoreply@blogger.comBlogger30125tag:blogger.com,1999:blog-7732057993325617058.post-49272452289176823072017-02-05T17:25:00.001+05:302017-02-05T17:25:59.529+05:30Smallest Bicycle | Amazing Look and Feel | Made of Iron<iframe allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/NVEP1MVEEOg" width="560"></iframe><br /><br />
<br /><br />
Hey There, this is the worlds smallest bicycle ever. Must watch and subscribe our channel.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7732057993325617058.post-24906093083759504522017-01-22T22:07:00.001+05:302017-02-01T20:41:42.789+05:30Gta 5 Skyfall | Gta Jumps | Gta 5 Funny Falls | Computer HD Gameplay<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: center;">
<iframe allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/inaUIxsHH_8?autoplay=1" width="560"></iframe></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7732057993325617058.post-74202280643576696772017-01-17T00:50:00.002+05:302017-01-17T00:52:47.139+05:30Post Website URL with Picture on Facebook<div dir="ltr" style="text-align: left;" trbidi="on">
<h2>
Just Paste this code.</h2>
<div>
<span style="background-color: white; color: #4b4f56; font-family: "helvetica neue" , "helvetica" , "arial" , sans-serif; font-size: 14px; white-space: pre-wrap;"><meta property="og:image" content="your url here" /></span></div>
</div>
Unknownnoreply@blogger.com0United States37.09024 -95.712891000000013-36.4162205 99.052733999999987 90 69.521483999999987tag:blogger.com,1999:blog-7732057993325617058.post-83073638243166405202016-12-17T18:17:00.001+05:302016-12-17T18:18:47.311+05:30Gta 5 Amazing Stunts | Cars on Fire Funny stunts | HD Gameplay<div dir="ltr" style="text-align: left;" trbidi="on">
<center>
<iframe allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/rHB8wfMPV-Y" width="560"></iframe>
</center>
<pre>Hi there,
Check out the amazing GTA 5 moments
We Played it with
2GB Nvidia Geforce GT 710
https://www.youtube.com/watch?v=Ngdq9ZjT5ZI
12 GB RAM.
https://www.youtube.com/watch?v=DWDEYaBrdeo
Intel i3 2nd Generation Processor.
Subscribe us and thanks for watching.
have a great day :)
Android Breakdown
http://androidbreakdown.blogspot.in
Mayadi-Blog
http://explore-mayadi.blogspot.in/
gta 5 amazing stunts
gta 5 amazing stunts and fails
gta 5 amazing stunts montage
gta 5 amazing stunts bike
gta 5 best stunts
gta 5 awesome stunts
gta 5 best stunts ever
gta 5 awesome stunts and crashes
gta 5 best stunts 2014
gta 5 best stunts of 2013
gta 5 awesome stunts and fails
gta 5 stunts and fails
gta 5 stunts and crashes
gta 5 stunts and jumps
gta 5 stunts and deaths
gta 5 stunts and tricks
gta 5 stunts and funny moments
gta 5 stunts and crashes and deaths
gta 5 best stunts bike
gta 5 amazing bmx stunts
gta 5 best stunts bmx
gta 5 awesome bike stunts
gta 5 best bmx stunts ever
gta 5 stunts bmx
gta 5 stunts bugatti
gta 5 stunts by jelly
gta 5 stunts by video games
gta 5 amazing car stunts
gta 5 best stunt car
gta 5 best stunt compilation
gta 5 awesome car stunts
gta 5 best stunts and crashes
gta 5 best stunt jump car
gta 5 stunts compilation
gta 5 stunts crashes and deaths
gta 5 stunts crashes
gta 5 stunts dailymotion
gta 5 stunts download
gta 5 stunts deaths and crashes
gta 5 stunts deaths
gta 5 stunts dada9x9
gta 5 stunt driving
gta 5 best stunts ever seen
gta 5 best stunts ever 2014
gta 5 online best stunts ever
gta 5 best stunt jump ever
youtube gta 5 best stunt ever
gta 5 stunts epic
gta 5 stunts ep 1
gta 5 stunts en fails
gta 5 amazing stunts & fails ignite
gta 5 amazing stunts & fails ignite - youtube
gta 5 best stunt fails
gta 5 awesome stunt fails
gta 5 best bike for stunts
gta 5 stunts fails and crashes
gta 5 stunts funny moments
gta 5 stunts fails and deaths
gta 5 stunts for dummies
gta 5 stunts funny
gta 5 stunts gone wrong
gta 5 stunts gameplay
gta 5 stunt guide
gta 5 stunt gifs
gta 5 stunts hazardous
gta 5 stunts hike the gamer
gta 5 stunts hike
gta 5 stunts how to
gta 5 stunts hd
gta 5 stunt helicopter
gta 5 best stunts in the world
gta 5 best stunts in 2013
gta 5 stunts in cars
gta 5 stunts impossible
gta 5 stunts in planes
gta 5 stunts in first person
gta 5 stunt in bike
amazing stunts in gta 5
gta 5 amazing stunt jumps
gta 5 best stunts jump
gta 5 awesome stunt jumps
gta 5 best stunt jump location
gta 5 best stunt jump vehicle
gta 5 awesome jet stunts
gta 5 online best stunt jumps
gta 5 stunts jumps
gta 5 stunt jumps map
gta 5 stunts jelly
gta 5 stunts kwebbelkop
gta 5 stunts kotaku
gta 5 stunt kills
gta 5 stunts karte
gta 5 best stunt location
gta 5 stunts locations
gta 5 stunts long
gta 5 stunts list
gta 5 stunts live stream
gta 5 stunt lighthouse
gta 5 stunt la puerta
gta 5 stunt lads
gta 5 stunt landing
gta 5 stunt lobby
the amazing stuntman gta 5
gta 5 best stunts montage
gta 5 awesome stunts montage
gta 5 best stunt motorcycle
gta 5 best stunt montage ever
gta 5 awesome motorcycle stunts
gta 5 online best stunt motorcycle
gta 5 stunts montage
gta 5 stunts map
gta 5 stunts new
gta 5 stunts next gen
gta 5 best stunts of 2014
gta 5 best stunts of 2015
gta 5 best stunts of all time
gta 5 awesome stunts online
gta 5 best stunts online
gta 5 best stunts on bmx
gta 5 stunts online
gta 5 stunts on bmx
gta 5 stunts on bikes
gta 5 best stunt places
gta 5 best stunt plane
gta 5 awesome plane stunts
gta 5 stunts plane
gta 5 stunts ps4
gta 5 stunts places
gta 5 stunts part 1
gta 5 stunts ps3
gta 5 stunts pc
gta 5 stunts parkour
gta 5 stunts quad
gta 5 best stunt races
gta 5 stunts redkeymon
gta 5 stunts races
gta 5 stunts ramps
gta 5 stunts reddit
gta 5 stunt races playlist
gta 5 stunt races ps3
gta 5 stunt races ps4
gta 5 stunt races xbox one
gta 5 stunt ramp map
gta 5 best stunt spots
gta 5 stunt spots
gta 5 stunt school
gta 5 stunt show
gta 5 stunts top 10
gta 5 stunts to try
gta 5 stunts theivaneh
gta 5 stunts tips
gta 5 stunts top 50
gta 5 stunts train
gta 5 stunts team epiphany
gta 5 stunts typical gamer
gta 5 stunts undefined
gta 5 stunts youtube
gta 5 stunt jumps
gta 5 awesome stunts videos
gta 5 best stunt vehicle
gta 5 stunts videos
gta 5 stunters vs snipers
gta 5 stunts vanossgaming
gta 5 stunts vanoss
gta 5 stunts vimeo
gta 5 videos amazing stunts
gta 5 stunt video download
gta 5 stunts with cars
gta 5 stunts with moon gravity
gta 5 stunts with planes
gta 5 stunts with bikes
gta 5 stunts with hike the gamer
gta 5 stunts with friends
gta 5 stunts with music
gta 5 stunts with bmx
gta 5 stunts with motorcycles
gta 5 stunts xbox 360
gta 5 stunts xbox one
gta 5 amazing stunts youtube
gta 5 best stunts youtube
gta 5 awesome stunts youtube
gta 5 stunts yt
gta 5 stunts zentorno
gta 5 stunts zum nachmachen
gta 5 stunts 1
gta 5 stunts 1 hour
gta 5 stunts 10
gta 5 stunts 12
gta 5 stunts 100
gta 5 best stunts 2013
gta 5 best stunts 2015
gta 5 stunts 2014
gta 5 stunts 2
gta 5 stunt 26
gta 5 stunts 3
</pre>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7732057993325617058.post-24586532769959578452016-09-20T21:49:00.002+05:302016-09-20T21:53:13.614+05:30Max Payne 3 GamePlay - Part 2 <div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: center;">
<h1 class="firstHeading" id="firstHeading" lang="en" style="background-image: none; border-bottom: 1px solid rgb(170, 170, 170); font-family: "linux libertine", georgia, times, serif; font-size: 1.8em; font-weight: normal; line-height: 1.3; margin: 0px 0px 0.25em; overflow: visible; padding: 0px; text-align: center;">
<i><a href="http://explore-mayadi.blogspot.in/2016/09/max-payne-3-gameplay-part-1.html"><<Prev</a> Max Payne 3 Next>></i></h1>
<h1 class="firstHeading" id="firstHeading" lang="en" style="background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-bottom: 1px solid rgb(170, 170, 170); font-family: "Linux Libertine", Georgia, Times, serif; font-size: 1.8em; font-weight: normal; line-height: 1.3; margin: 0px 0px 0.25em; overflow: visible; padding: 0px; text-align: center;">
<iframe allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/DQMcNtrm80Y" width="560"></iframe></h1>
<div style="text-align: justify;">
<span style="background-color: white; text-align: start;"></span><br />
<div style="text-align: start;">
<span style="background-color: white; text-align: start;"><span style="font-family: sans-serif;"><span style="font-size: 14px;"><br /><b>Hi there,</b></span></span></span></div>
<span style="background-color: white; text-align: start;">
</span>
<br />
<div style="text-align: start;">
<span style="background-color: white; text-align: start;"><span style="font-family: sans-serif;"><span style="font-size: 14px;"><br /></span></span></span></div>
<span style="background-color: white; text-align: start;">
</span>
<br />
<div style="text-align: start;">
<span style="background-color: white; text-align: start;"><span style="font-family: sans-serif;"><span style="font-size: 14px;">Check out the Game Play of MaxPayne 3</span></span></span></div>
<span style="background-color: white; text-align: start;">
</span>
<br />
<div style="text-align: start;">
<span style="background-color: white; text-align: start;"><span style="font-family: sans-serif;"><span style="font-size: 14px;"><br /></span></span></span></div>
<span style="background-color: white; text-align: start;">
</span>
<br />
<div style="text-align: start;">
<span style="background-color: white; text-align: start;"><span style="font-family: sans-serif;"><span style="font-size: 14px;">We Played it with</span></span></span></div>
<span style="background-color: white; text-align: start;">
</span>
<div style="text-align: start;">
<span style="background-color: white; text-align: start;"><span style="font-family: sans-serif;"><span style="font-size: 14px;">2GB Nvidia Geforce GT 710</span></span></span></div>
<span style="background-color: white; text-align: start;">
<div style="text-align: start;">
<span style="font-family: sans-serif;"><span style="font-size: 14px;">https://www.youtube.com/watch?v=Ngdq9ZjT5ZI</span></span></div>
<div style="text-align: start;">
<span style="font-family: sans-serif;"><span style="font-size: 14px;"><br /></span></span></div>
<div style="text-align: start;">
<span style="font-family: sans-serif;"><span style="font-size: 14px;">12 GB RAM.</span></span></div>
<div style="text-align: start;">
<span style="font-family: sans-serif;"><span style="font-size: 14px;">https://www.youtube.com/watch?v=DWDEYaBrdeo</span></span></div>
<div style="text-align: start;">
<span style="font-family: sans-serif;"><span style="font-size: 14px;"><br /></span></span></div>
<div style="text-align: start;">
<span style="font-family: sans-serif;"><span style="font-size: 14px;">Intel i3 2nd Generation Processor.</span></span></div>
<div style="text-align: start;">
<span style="font-family: sans-serif;"><span style="font-size: 14px;"><br /></span></span></div>
<div style="text-align: start;">
<span style="font-family: sans-serif;"><span style="font-size: 14px;"><br /></span></span></div>
<div style="text-align: start;">
<span style="font-family: sans-serif;"><span style="font-size: 14px;">Subscribe us and thanks for watching.</span></span></div>
<div style="text-align: start;">
<span style="font-family: sans-serif;"><span style="font-size: 14px;">have a great day :)</span></span></div>
<div style="font-family: sans-serif; font-size: 14px; font-style: italic; font-weight: bold;">
<br /></div>
<div style="font-family: sans-serif; font-size: 14px; font-style: italic; font-weight: bold;">
<br /></div>
<div style="font-family: sans-serif; font-size: 14px; font-style: italic; font-weight: bold;">
OFFICIAL WEBSITE : http://www.rockstargames.com/maxpayne3/</div>
------------------------------------------------------------------------------------------<br /><br /><span style="font-family: sans-serif; font-style: italic; font-weight: bold;"><span style="font-size: 14px;">Max Payne 3</span></span></span><span style="background-color: white; font-family: sans-serif; font-size: 14px;"> is a </span><span style="font-family: sans-serif;"><span style="background: none rgb(255, 255, 255); font-size: 14px; text-align: start;">third-person shooter</span></span><span style="background-color: white; font-family: sans-serif; font-size: 14px;"> </span><span style="font-family: sans-serif;"><span style="background: none rgb(255, 255, 255); font-size: 14px; text-align: start;">video game</span></span><span style="background-color: white; font-family: sans-serif; font-size: 14px;"> developed by </span><span style="font-family: sans-serif;"><span style="background: none rgb(255, 255, 255); font-size: 14px; text-align: start;">Rockstar Studios</span></span><span style="background-color: white; font-family: sans-serif; font-size: 14px;"> and published by </span><span style="font-family: sans-serif;"><span style="background: none rgb(255, 255, 255); font-size: 14px; text-align: start;">Rockstar Games</span></span><span style="background-color: white; font-family: sans-serif; font-size: 14px;">. It was released on May 15, 2012 for the</span><span style="font-family: sans-serif;"><span style="background: none rgb(255, 255, 255); font-size: 14px; text-align: start;">PlayStation 3</span></span><span style="background-color: white; font-family: sans-serif; font-size: 14px;"> and </span><span style="font-family: sans-serif;"><span style="background: none rgb(255, 255, 255); font-size: 14px; text-align: start;">Xbox 360</span></span><span style="background-color: white; font-family: sans-serif; font-size: 14px;">; a </span><span style="font-family: sans-serif;"><span style="background: none rgb(255, 255, 255); font-size: 14px; text-align: start;">Microsoft Windows</span></span><span style="background-color: white; font-family: sans-serif; font-size: 14px;"> port was released on May 29, 2012, followed by an </span><span style="font-family: sans-serif;"><span style="background: none rgb(255, 255, 255); font-size: 14px; text-align: start;">OS X</span></span><span style="background-color: white; font-family: sans-serif; font-size: 14px;"> port on June 20, 2013. The game is the first entry in the </span><i style="background: none rgb(255, 255, 255); font-family: sans-serif; font-size: 14px; text-align: start; text-decoration: none;">Max Payne</i><span style="font-family: sans-serif;"><span style="background: none rgb(255, 255, 255); font-size: 14px; text-align: start;"> </span></span>series<span style="background-color: white; font-family: sans-serif; font-size: 14px;"> since 2003's </span><i style="background-color: white; font-family: sans-serif; font-size: 14px; text-align: start;"><span style="background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;">Max Payne 2: The Fall of Max Payne</span></i><span style="background-color: white; font-family: sans-serif; font-size: 14px;">, developed by </span><span style="font-family: sans-serif;"><span style="background: none rgb(255, 255, 255); font-size: 14px; text-align: start;">Remedy Entertainment</span></span><span style="background-color: white; font-family: sans-serif; font-size: 14px;">.</span><br />
<div style="border: 0px; box-sizing: border-box; font-size: 15px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 10px; padding: 0px; text-align: start; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: "georgia" , "times new roman" , serif;">For Max Payne, the tragedies that took his loved ones years ago are wounds that refuse to heal. No longer a cop, close to washed up and addicted to pain killers, Max takes a job in São Paulo, Brazil, protecting the family of wealthy real estate mogul Rodrigo Branco, in an effort to finally escape his troubled past. But as events spiral out of his control, Max Payne finds himself alone on the streets of an unfamiliar city, desperately searching for the truth and fighting for a way out.</span></span></div>
<div style="border: 0px; box-sizing: border-box; font-size: 15px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 10px; padding: 0px; text-align: start; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: "georgia" , "times new roman" , serif;">Featuring cutting edge shooting mechanics for precision gunplay, advanced new Bullet Time® and Shootdodge™ effects, full integration of Natural Motion’s Euphoria Character Behavior system for lifelike movement and a dark and twisted story, Max Payne 3 is a seamless, highly detailed, cinematic experience from Rockstar Games.</span></span></div>
<div style="border: 0px; box-sizing: border-box; font-size: 15px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 10px; padding: 0px; text-align: start; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: "georgia" , "times new roman" , serif;">In addition to an expansive single-player campaign, Max Payne 3 will also be the first entry in the series to introduce a thorough and engrossing multiplayer experience. In a unique twist, Max Payne 3 multiplayer delivers a compelling experience that dynamically alters maps and mode progression for all players in a match. Along with traditional multiplayer modes, Max Payne 3 will also include a deep reward and leveling system, persistent clans and multiple strategic load-out options.</span></span></div>
<div style="border: 0px; box-sizing: border-box; font-size: 15px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 10px; padding: 0px; text-align: start; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: "georgia" , "times new roman" , serif;">Developed across Rockstar Games Studios Worldwide, Max Payne 3 is now available for the Xbox 360, PlayStation3, Windows® PC, and Mac in North America and Europe.</span></span></div>
<span style="background-color: white; font-family: sans-serif; font-size: 14px;"><br /></span></div>
</div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7732057993325617058.post-87052773207423261502016-09-20T21:40:00.003+05:302016-09-20T21:51:53.715+05:30Max Payne 3 GamePlay - Part 1 <div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: center;">
<h1 class="firstHeading" id="firstHeading" lang="en" style="background-image: none; border-bottom: 1px solid rgb(170, 170, 170); font-family: "linux libertine", georgia, times, serif; font-size: 1.8em; font-weight: normal; line-height: 1.3; margin: 0px 0px 0.25em; overflow: visible; padding: 0px;">
<i> Max Payne 3 <a href="http://explore-mayadi.blogspot.in/2016/09/payne-3-hi-there-check-out-game-play-of.html">Next>></a></i></h1>
<h1 class="firstHeading" id="firstHeading" lang="en" style="background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-bottom: 1px solid rgb(170, 170, 170); font-family: "Linux Libertine", Georgia, Times, serif; font-size: 1.8em; font-weight: normal; line-height: 1.3; margin: 0px 0px 0.25em; overflow: visible; padding: 0px; text-align: center;">
<iframe allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/EjcM81zzGKk" style="text-align: center;" width="560"></iframe></h1>
<div style="text-align: justify;">
<span style="background-color: white; text-align: start;"></span><br />
<div style="text-align: start;">
<span style="background-color: white; text-align: start;"><span style="font-family: sans-serif;"><span style="font-size: 14px;"><br /><b>Hi there,</b></span></span></span></div>
<span style="background-color: white; text-align: start;">
</span>
<br />
<div style="text-align: start;">
<span style="background-color: white; text-align: start;"><span style="font-family: sans-serif;"><span style="font-size: 14px;"><br /></span></span></span></div>
<span style="background-color: white; text-align: start;">
</span>
<div style="text-align: start;">
<span style="background-color: white; text-align: start;"><span style="font-family: sans-serif;"><span style="font-size: 14px;">Check out the Game Play of MaxPayne 3</span></span></span></div>
<span style="background-color: white; text-align: start;">
<div style="text-align: start;">
<span style="font-family: sans-serif;"><span style="font-size: 14px;"><br /></span></span></div>
<div style="text-align: start;">
<span style="font-family: sans-serif;"><span style="font-size: 14px;">We Played it with</span></span></div>
<div style="text-align: start;">
<span style="font-family: sans-serif;"><span style="font-size: 14px;">2GB Nvidia Geforce GT 710</span></span></div>
<div style="text-align: start;">
<span style="font-family: sans-serif;"><span style="font-size: 14px;">https://www.youtube.com/watch?v=Ngdq9ZjT5ZI</span></span></div>
<div style="text-align: start;">
<span style="font-family: sans-serif;"><span style="font-size: 14px;"><br /></span></span></div>
<div style="text-align: start;">
<span style="font-family: sans-serif;"><span style="font-size: 14px;">12 GB RAM.</span></span></div>
<div style="text-align: start;">
<span style="font-family: sans-serif;"><span style="font-size: 14px;">https://www.youtube.com/watch?v=DWDEYaBrdeo</span></span></div>
<div style="text-align: start;">
<span style="font-family: sans-serif;"><span style="font-size: 14px;"><br /></span></span></div>
<div style="text-align: start;">
<span style="font-family: sans-serif;"><span style="font-size: 14px;">Intel i3 2nd Generation Processor.</span></span></div>
<div style="text-align: start;">
<span style="font-family: sans-serif;"><span style="font-size: 14px;"><br /></span></span></div>
<div style="text-align: start;">
<span style="font-family: sans-serif;"><span style="font-size: 14px;"><br /></span></span></div>
<div style="text-align: start;">
<span style="font-family: sans-serif;"><span style="font-size: 14px;">Subscribe us and thanks for watching.</span></span></div>
<div style="text-align: start;">
<span style="font-family: sans-serif;"><span style="font-size: 14px;">have a great day :)</span></span></div>
<div style="font-family: sans-serif; font-size: 14px; font-style: italic; font-weight: bold;">
<br /></div>
<div style="font-family: sans-serif; font-size: 14px; font-style: italic; font-weight: bold;">
<br /></div>
<div style="font-family: sans-serif; font-size: 14px; font-style: italic; font-weight: bold;">
OFFICIAL WEBSITE : http://www.rockstargames.com/maxpayne3/</div>
------------------------------------------------------------------------------------------<br /><br /><span style="font-family: sans-serif; font-style: italic; font-weight: bold;"><span style="font-size: 14px;">Max Payne 3</span></span></span><span style="background-color: white; font-family: sans-serif; font-size: 14px;"> is a </span><span style="font-family: sans-serif;"><span style="background: none rgb(255, 255, 255); font-size: 14px; text-align: start;">third-person shooter</span></span><span style="background-color: white; font-family: sans-serif; font-size: 14px;"> </span><span style="font-family: sans-serif;"><span style="background: none rgb(255, 255, 255); font-size: 14px; text-align: start;">video game</span></span><span style="background-color: white; font-family: sans-serif; font-size: 14px;"> developed by </span><span style="font-family: sans-serif;"><span style="background: none rgb(255, 255, 255); font-size: 14px; text-align: start;">Rockstar Studios</span></span><span style="background-color: white; font-family: sans-serif; font-size: 14px;"> and published by </span><span style="font-family: sans-serif;"><span style="background: none rgb(255, 255, 255); font-size: 14px; text-align: start;">Rockstar Games</span></span><span style="background-color: white; font-family: sans-serif; font-size: 14px;">. It was released on May 15, 2012 for the</span><span style="font-family: sans-serif;"><span style="background: none rgb(255, 255, 255); font-size: 14px; text-align: start;">PlayStation 3</span></span><span style="background-color: white; font-family: sans-serif; font-size: 14px;"> and </span><span style="font-family: sans-serif;"><span style="background: none rgb(255, 255, 255); font-size: 14px; text-align: start;">Xbox 360</span></span><span style="background-color: white; font-family: sans-serif; font-size: 14px;">; a </span><span style="font-family: sans-serif;"><span style="background: none rgb(255, 255, 255); font-size: 14px; text-align: start;">Microsoft Windows</span></span><span style="background-color: white; font-family: sans-serif; font-size: 14px;"> port was released on May 29, 2012, followed by an </span><span style="font-family: sans-serif;"><span style="background: none rgb(255, 255, 255); font-size: 14px; text-align: start;">OS X</span></span><span style="background-color: white; font-family: sans-serif; font-size: 14px;"> port on June 20, 2013. The game is the first entry in the </span><i style="background: none rgb(255, 255, 255); font-family: sans-serif; font-size: 14px; text-align: start; text-decoration: none;">Max Payne</i><span style="font-family: sans-serif;"><span style="background: none rgb(255, 255, 255); font-size: 14px; text-align: start;"> </span></span>series<span style="background-color: white; font-family: sans-serif; font-size: 14px;"> since 2003's </span><i style="background-color: white; font-family: sans-serif; font-size: 14px; text-align: start;"><span style="background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;">Max Payne 2: The Fall of Max Payne</span></i><span style="background-color: white; font-family: sans-serif; font-size: 14px;">, developed by </span><span style="font-family: sans-serif;"><span style="background: none rgb(255, 255, 255); font-size: 14px; text-align: start;">Remedy Entertainment</span></span><span style="background-color: white; font-family: sans-serif; font-size: 14px;">.</span><br />
<div style="border: 0px; box-sizing: border-box; font-size: 15px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 10px; padding: 0px; text-align: start; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: "georgia" , "times new roman" , serif;">For Max Payne, the tragedies that took his loved ones years ago are wounds that refuse to heal. No longer a cop, close to washed up and addicted to pain killers, Max takes a job in São Paulo, Brazil, protecting the family of wealthy real estate mogul Rodrigo Branco, in an effort to finally escape his troubled past. But as events spiral out of his control, Max Payne finds himself alone on the streets of an unfamiliar city, desperately searching for the truth and fighting for a way out.</span></span></div>
<div style="border: 0px; box-sizing: border-box; font-size: 15px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 10px; padding: 0px; text-align: start; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: "georgia" , "times new roman" , serif;">Featuring cutting edge shooting mechanics for precision gunplay, advanced new Bullet Time® and Shootdodge™ effects, full integration of Natural Motion’s Euphoria Character Behavior system for lifelike movement and a dark and twisted story, Max Payne 3 is a seamless, highly detailed, cinematic experience from Rockstar Games.</span></span></div>
<div style="border: 0px; box-sizing: border-box; font-size: 15px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 10px; padding: 0px; text-align: start; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: "georgia" , "times new roman" , serif;">In addition to an expansive single-player campaign, Max Payne 3 will also be the first entry in the series to introduce a thorough and engrossing multiplayer experience. In a unique twist, Max Payne 3 multiplayer delivers a compelling experience that dynamically alters maps and mode progression for all players in a match. Along with traditional multiplayer modes, Max Payne 3 will also include a deep reward and leveling system, persistent clans and multiple strategic load-out options.</span></span></div>
<div style="border: 0px; box-sizing: border-box; font-size: 15px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 10px; padding: 0px; text-align: start; vertical-align: baseline;">
<span style="background-color: white;"><span style="font-family: "georgia" , "times new roman" , serif;">Developed across Rockstar Games Studios Worldwide, Max Payne 3 is now available for the Xbox 360, PlayStation3, Windows® PC, and Mac in North America and Europe.</span></span></div>
<span style="background-color: white; font-family: sans-serif; font-size: 14px;"><br /></span></div>
</div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7732057993325617058.post-72253324711838573902016-09-20T17:24:00.000+05:302016-09-20T20:30:19.544+05:30Equal Space Between Recyclerview Grid Layout Columns Android<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://i.stack.imgur.com/Xvc4W.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYmhN8seUtrMNQfjPLCuNyNIuSIk3eHs4lNPhBkfLzPuiHGwwhHeRwviRP1ZqvaaEYVaOEqtQabh1wmuspzpw4ra2q0bD5flurLJZi_TgeSo_umjjCnclk7jCZ2Y1CIgGxKQGvr4_YznU/s1600/grid.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYmhN8seUtrMNQfjPLCuNyNIuSIk3eHs4lNPhBkfLzPuiHGwwhHeRwviRP1ZqvaaEYVaOEqtQabh1wmuspzpw4ra2q0bD5flurLJZi_TgeSo_umjjCnclk7jCZ2Y1CIgGxKQGvr4_YznU/s1600/grid.png" /></a></div>
<h3 style="-webkit-text-stroke-width: 0px; box-sizing: border-box; color: #333333; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 1.25em; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 600; letter-spacing: normal; line-height: 1.25; margin-bottom: 16px; margin-top: 0px !important; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<br /><br />ItemOffsetDecoration</h3>
<div class="highlight highlight-source-java" style="-webkit-text-stroke-width: 0px; box-sizing: border-box; color: #333333; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 16px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: normal; letter-spacing: normal; margin-bottom: 16px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<pre style="background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.45; margin-bottom: 0px; margin-top: 0px; overflow: auto; padding: 16px; word-break: normal; word-wrap: normal;"><span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">public</span> <span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">class</span> <span class="pl-en" style="box-sizing: border-box; color: #795da3;">ItemOffsetDecoration</span> <span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">extends</span> <span class="pl-e" style="box-sizing: border-box; color: #795da3;">RecyclerView</span>.<span class="pl-e" style="box-sizing: border-box; color: #795da3;">ItemDecoration</span> {
<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">private</span> <span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">int</span> mItemOffset;
<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">public</span> <span class="pl-en" style="box-sizing: border-box; color: #795da3;">ItemOffsetDecoration</span>(<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">int</span> <span class="pl-v" style="box-sizing: border-box; color: #ed6a43;">itemOffset</span>) {
mItemOffset <span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">=</span> itemOffset;
}
<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">public</span> <span class="pl-en" style="box-sizing: border-box; color: #795da3;">ItemOffsetDecoration</span>(<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">@NonNull</span> <span class="pl-smi" style="box-sizing: border-box; color: #333333;">Context</span> <span class="pl-v" style="box-sizing: border-box; color: #ed6a43;">context</span>, <span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">@DimenRes</span> <span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">int</span> <span class="pl-v" style="box-sizing: border-box; color: #ed6a43;">itemOffsetId</span>) {
<span class="pl-v" style="box-sizing: border-box; color: #ed6a43;">this</span>(context<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">.</span>getResources()<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">.</span>getDimensionPixelSize(itemOffsetId));
}
<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">@Override</span>
<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">public</span> <span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">void</span> <span class="pl-en" style="box-sizing: border-box; color: #795da3;">getItemOffsets</span>(<span class="pl-smi" style="box-sizing: border-box; color: #333333;">Rect</span> <span class="pl-v" style="box-sizing: border-box; color: #ed6a43;">outRect</span>, <span class="pl-smi" style="box-sizing: border-box; color: #333333;">View</span> <span class="pl-v" style="box-sizing: border-box; color: #ed6a43;">view</span>, <span class="pl-smi" style="box-sizing: border-box; color: #333333;">RecyclerView</span> <span class="pl-v" style="box-sizing: border-box; color: #ed6a43;">parent</span>,
<span class="pl-smi" style="box-sizing: border-box; color: #333333;">RecyclerView</span>.<span class="pl-smi" style="box-sizing: border-box; color: #333333;">State</span> <span class="pl-v" style="box-sizing: border-box; color: #ed6a43;">state</span>) {
<span class="pl-v" style="box-sizing: border-box; color: #ed6a43;">super</span><span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">.</span>getItemOffsets(outRect, view, parent, state);
outRect<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">.</span>set(mItemOffset, mItemOffset, mItemOffset, mItemOffset);
}
}</pre>
</div>
<h3 style="-webkit-text-stroke-width: 0px; box-sizing: border-box; color: #333333; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 1.25em; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 600; letter-spacing: normal; line-height: 1.25; margin-bottom: 16px; margin-top: 24px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
implementation</h3>
<div style="-webkit-text-stroke-width: 0px; box-sizing: border-box; color: #333333; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 16px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: normal; letter-spacing: normal; margin-bottom: 16px; margin-top: 0px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
In your source code, add ItemOffsetDecoration to your recyclerview.<br />
Item offset value should be half size of the actual value you want to add as space between items.</div>
<div class="highlight highlight-source-java" style="-webkit-text-stroke-width: 0px; box-sizing: border-box; color: #333333; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 16px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: normal; letter-spacing: normal; margin-bottom: 16px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<pre style="background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.45; margin-bottom: 0px; margin-top: 0px; overflow: auto; padding: 16px; word-break: normal; word-wrap: normal;">mRecyclerView<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">.</span>setLayoutManager(<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">new</span> <span class="pl-smi" style="box-sizing: border-box; color: #333333;">GridLayoutManager</span>(context, <span class="pl-c1" style="box-sizing: border-box; color: #0086b3;">NUM_COLUMNS</span>);
<span class="pl-smi" style="box-sizing: border-box; color: #333333;">ItemOffsetDecoration</span> itemDecoration <span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">=</span> <span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">new</span> <span class="pl-smi" style="box-sizing: border-box; color: #333333;">ItemOffsetDecoration</span>(context, <span class="pl-smi" style="box-sizing: border-box; color: #333333;">R</span><span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">.</span>dimen<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">.</span>item_offset);
mRecyclerView<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">.</span>addItemDecoration(itemDecoration);
</pre>
</div>
<div style="box-sizing: border-box; font-size: 16px; font-style: normal; letter-spacing: normal; margin-bottom: 16px; margin-top: 0px; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
<span style="color: #333333;">Also, set item offset value as padding for its recyclerview, and specify </span><b><span style="color: #660000;">android:clipToPadding=false.</span></b></div>
<pre style="-webkit-text-stroke-width: 0px; background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; color: #333333; font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.45; margin-bottom: 16px; margin-top: 0px; orphans: 2; overflow: auto; padding: 16px; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; word-wrap: normal;"><code style="background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; white-space: pre; word-break: normal; word-wrap: normal;"><android.support.v7.widget.RecyclerView
android:id="@+id/recyclerview_grid"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
android:padding="@dimen/item_offset"/></code></pre>
</div>
Mayank Sharmahttp://www.blogger.com/profile/15884254830865579332noreply@blogger.com6tag:blogger.com,1999:blog-7732057993325617058.post-25224510672090322072016-09-08T00:05:00.003+05:302016-09-08T00:43:58.538+05:30Best Video Splitter Software - idoo Video Editor<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7PHbB_Kz0IxIlwxUPEEBHqP4_TEBC8bqUGPBvhemw7LS1R66wMb2CMeYsYebeZdXCdRZ-lGp9HywPJ-tOq_SSHZ5EhkPqajG7fOAoYZh5saqXklm0uCehc1ogoOtlm9qN6TbHfuRq3BI/s1600/vidoeeditor_banerimg.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7PHbB_Kz0IxIlwxUPEEBHqP4_TEBC8bqUGPBvhemw7LS1R66wMb2CMeYsYebeZdXCdRZ-lGp9HywPJ-tOq_SSHZ5EhkPqajG7fOAoYZh5saqXklm0uCehc1ogoOtlm9qN6TbHfuRq3BI/s320/vidoeeditor_banerimg.jpg" width="285" /></a></div>
<h2 style="background-color: white; color: #464646; font-family: Georgia, Times, "Liberation Serif", serif; font-size: 14px; height: 60px; line-height: 60px; margin: 0px; padding: 0px 0px 0px 7px;">
</h2>
<h2 style="background-color: white; color: #464646; font-family: Georgia, Times, "Liberation Serif", serif; font-size: 14px; height: 60px; line-height: 60px; margin: 0px; padding: 0px 0px 0px 7px;">
Hello There,</h2>
<div>
<div style="text-align: left;">
<div style="text-align: left;">
<span style="font-family: "verdana" , sans-serif; font-size: medium;">When we needed a video splitter, which can split videos into several parts based on time, sizes etc. we searched a lot about it and found several video splitter softwares, but they all have a common thing between them and the common thing is that they all don't have shortest and fastest way to do it.</span><span style="font-family: "verdana" , sans-serif; font-size: medium;">But, we wanted the fastest and shortest way to split a video then we found idoo video editor. We can defiantly say that it is the best video splitter software yet, which can split videos within few clicks.</span></div>
</div>
<div style="text-align: left;">
<span style="font-family: "verdana" , sans-serif; font-size: x-small;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: "verdana" , sans-serif; font-size: x-small;"><br /></span></div>
<h3 style="background-color: white; color: #444444; font-family: Merriweather, Georgia, serif; font-size: 20px; line-height: 1.3; margin: 0px 0px 12px; padding: 0px;">
<strong>Key Features of idoo Video Editor :</strong></h3>
<ul style="background-color: white; color: #444444; font-family: "Source Sans Pro", Arial, Helvetica, sans-serif; font-size: 15px; line-height: 24px; list-style-position: inside; margin: 0px 0px 14px 14px; padding: 0px;">
<li style="list-style-position: inside; list-style-type: square;">In which you can easily combine the two or more video clips into single one.</li>
<li style="list-style-position: inside; list-style-type: square;">It has ability to split video into segments.</li>
<li style="list-style-position: inside; list-style-type: square;">It provided you to best and user friendly interface for editing videos.</li>
<li style="list-style-position: inside; list-style-type: square;">You’re able to cut videos and audios individually or in batches.</li>
<li style="list-style-position: inside; list-style-type: square;">It supports all kind of windows operating systems.</li>
<li style="list-style-position: inside; list-style-type: square;">In which easily handle and Trim video to get the exact frame of image.</li>
<li style="list-style-position: inside; list-style-type: square;">It has Watermark or subtitles your videos.</li>
<li style="list-style-position: inside; list-style-type: square;">It is simple and easy to use.</li>
<li style="list-style-position: inside; list-style-type: square;">Easily rotate the videos by different angles.</li>
<li style="list-style-position: inside; list-style-type: square;">You can easily Adjust and add special effects to the videos.</li>
</ul>
</div>
<div style="background-color: white; padding: 0px 30px 0px 7px; text-align: left;">
<b><span style="color: #4b4b4b; font-family: "georgia" , "times" , "liberation" serif , serif;"><span style="font-size: 12px; line-height: 28px;">Official website : </span></span><a href="http://www.idooeditor.com/" rel="nofollow" target="_blank"><i>http://www.idooeditor.com/</i></a><br /><span style="color: #4b4b4b; font-family: "georgia" , "times" , "liberation" serif , serif;"><span style="font-size: 12px; line-height: 28px;">or</span></span><br /><span style="color: #4b4b4b; font-family: "georgia" , "times" , "liberation" serif , serif;"><span style="font-size: 12px; line-height: 28px;">We also found a blog where you can get it easily just by follow some steps.</span></span></b></div>
<div style="text-align: left;">
<span style="font-family: "verdana" , sans-serif; font-size: x-large;"><span style="line-height: 28px;"><span style="color: #4b4b4b; font-weight: bold;">Go to This </span><span style="color: #666666;"><a href="http://warespro.com/idoo-video-editor-pro-3-5-0-crack/" rel="nofollow" target="_blank"><i><b>BLOG</b></i></a><b>.</b></span></span></span><br />
<b><span style="font-family: "verdana" , sans-serif; font-size: x-large;"><span style="line-height: 28px;"><span style="color: #666666;"><br /></span></span></span></b>
<b><span style="font-family: "verdana" , sans-serif; font-size: x-large;"><span style="line-height: 28px;"><span style="color: #666666;"><br /></span></span></span></b></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7732057993325617058.post-40388536825107966632016-08-24T11:45:00.000+05:302016-08-24T11:45:25.260+05:30How To Close All Tabs In Editor, Except The Current One In Android Studio.<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
<span style="color: #351c75;"><span style="font-family: "trebuchet ms" , sans-serif;"><span style="font-size: medium;">Did you know ?</span></span></span></h2>
<div style="text-align: left;">
<span style="color: #351c75;"><span style="font-family: "trebuchet ms" , sans-serif;"><span style="font-size: medium;"><span style="color: black;"><span style="font-size: small;">There are two ways of closing all tabs in the editor, except the current one:</span></span></span></span></span></div>
<div style="text-align: left;">
<br /></div>
<ul style="text-align: left;">
<li><span style="color: #351c75;"><span style="font-family: "trebuchet ms" , sans-serif;"><span style="font-size: medium;"><span style="color: black;"><span style="font-size: small;">First, right-click the editor tab, and choose Close Others on the context menu.</span></span></span></span></span></li>
<li><span style="color: #351c75;"><span style="font-family: "trebuchet ms" , sans-serif;"><span style="font-size: medium;"><span style="color: black;"><span style="font-size: small;">Second, keeping the Alt key pressed, click ❌ on the editor tab. </span></span></span></span></span></li>
</ul>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9u49dcakOB67LL4jpsBM0MhFcxIhb-EN7Us4XKqieuSg1JcDifna73J_J-BHc3gPhJOnoBgf2x8Lu61evfYhvk31MOiB7oOmrXsF0n8dd5xNBvdUBnmbR1_LkOoDRrm74FUo7vqlUQyo/s1600/ice_screenshot_20160824-113413.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9u49dcakOB67LL4jpsBM0MhFcxIhb-EN7Us4XKqieuSg1JcDifna73J_J-BHc3gPhJOnoBgf2x8Lu61evfYhvk31MOiB7oOmrXsF0n8dd5xNBvdUBnmbR1_LkOoDRrm74FUo7vqlUQyo/s1600/ice_screenshot_20160824-113413.png" /></a></div>
<span style="color: #351c75;"><span style="font-family: "trebuchet ms" , sans-serif;"><span style="font-size: medium;"><span style="color: black;"><span style="font-size: small;"> </span></span></span></span></span><br />
<div>
<div style="text-align: left;">
<span style="color: #351c75;"><span style="font-family: "trebuchet ms" , sans-serif;"><span style="font-size: medium;"></span></span></span></div>
</div>
</div>
Mayank Sharmahttp://www.blogger.com/profile/15884254830865579332noreply@blogger.com2tag:blogger.com,1999:blog-7732057993325617058.post-12527432886100336722016-08-24T11:35:00.001+05:302016-08-24T11:36:09.550+05:30Switcher in Android Studio<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
<span style="color: #351c75;"><span style="font-family: "trebuchet ms" , sans-serif;"><span style="font-size: medium;">Did you know ?</span></span></span></h2>
<h2 style="text-align: left;">
</h2>
<span style="font-family: "trebuchet ms" , sans-serif;">Use the Switcher <span style="color: #741b47;">(<span class="shortcut">Ctrl+Tab</span>)</span> to switch
between open files and tool windows. Keeping <span style="color: #741b47;"><span class="shortcut">Ctrl</span></span>
pressed, use the <span class="shortcut">Up</span> and <span class="shortcut">Down</span>
arrow keys, <span style="color: #741b47;"><span class="shortcut">Tab</span> </span>or <span style="color: #741b47;"><span class="shortcut">Shift+Tab</span></span>,<span style="color: #741b47;">
<span class="control">Alt</span></span> for navigation; use <span style="color: #741b47;"><span class="shortcut">Delete</span>
or <span class="shortcut">BackSpace</span></span> to close editor tab or hide a
tool window. </span><br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGTbY6TJdpYqv3U1XddwsHvKsSz6b1mi_suQ8dEoPtdRoYNbZ36ktKAlS3GPn2P0Zf1IO_feg_StZ8ORVN3zq95ycXP7bvlQKe42z0YWcMCk3uXLDicxMrVZB2m5xMgr-UQX1Oh5nxqRo/s1600/ice_screenshot_20160824-112847.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGTbY6TJdpYqv3U1XddwsHvKsSz6b1mi_suQ8dEoPtdRoYNbZ36ktKAlS3GPn2P0Zf1IO_feg_StZ8ORVN3zq95ycXP7bvlQKe42z0YWcMCk3uXLDicxMrVZB2m5xMgr-UQX1Oh5nxqRo/s1600/ice_screenshot_20160824-112847.png" /></a></div>
<br /></div>
Mayank Sharmahttp://www.blogger.com/profile/15884254830865579332noreply@blogger.com0tag:blogger.com,1999:blog-7732057993325617058.post-37579462993569280702016-08-23T10:45:00.000+05:302016-08-23T10:45:43.520+05:30Column Selection in Android Studio.<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
<span style="color: #351c75;"><span style="font-family: "trebuchet ms" , sans-serif;"><span style="font-size: large;">Did you know ?</span></span></span>
</h2>
<div style="text-align: justify;">
<span style="font-family: inherit;">You can easily make column selection by dragging your mouse pointer
while keeping the <span style="color: #741b47;"><span class="shortcut">Alt</span></span> key pressed. </span></div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSd6uo8ICrjSdZgm56XXh1REVMIpMHLx3rRa8ZsxWsfS_XGPAt7AYnlDBR6hSiBbr5lv59xBh0v8fuRtNl1xb4ohoQMCS1m93SfyVZMnX675bZZOy2UOpYiH7Q_SD_wT6-m95fy0i733I/s1600/ice_screenshot_20160823-103849.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSd6uo8ICrjSdZgm56XXh1REVMIpMHLx3rRa8ZsxWsfS_XGPAt7AYnlDBR6hSiBbr5lv59xBh0v8fuRtNl1xb4ohoQMCS1m93SfyVZMnX675bZZOy2UOpYiH7Q_SD_wT6-m95fy0i733I/s1600/ice_screenshot_20160823-103849.png" /></a></div>
<h2 style="text-align: left;">
<br /></h2>
</div>
Mayank Sharmahttp://www.blogger.com/profile/15884254830865579332noreply@blogger.com0tag:blogger.com,1999:blog-7732057993325617058.post-24787872937287522082016-08-22T11:01:00.000+05:302016-08-23T10:42:15.848+05:30Color Properties In Css In Android Studio.<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div style="text-align: left;">
<h2 style="text-align: left;">
<span style="color: #351c75;"><span style="font-family: "trebuchet ms" , sans-serif;"><span style="font-size: large;">Did you know ?</span></span></span></h2>
<span style="font-size: small;"><span style="font-family: "trebuchet ms" , sans-serif;"><span class="product">Android Studio</span> simplifies your work with <span style="color: #741b47;">
colors</span> in CSS files. The <span class="code_emphasis">color</span>
properties have the icons of the corresponding color in the left gutter
area of the editor.
</span></span></div>
<div style="text-align: left;">
<span style="font-size: small;"><span style="font-family: "trebuchet ms" , sans-serif;">
</span></span></div>
<div style="text-align: left;">
<span style="font-size: small;"><span style="font-family: "trebuchet ms" , sans-serif;">
Click color icons to choose the desired color from the <span style="color: #351c75;">color picker. </span></span></span></div>
<div style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5B3FBCeVivScE68LgrDz_qLf4FeOLLZTckhWn4FMifekUn1f3f9QYQ7pyynxK3RtyyvOgX9-_7oyz9haSqAgpAUikWp31u230M0VcvJb0bSa8EtpRZB3FF-kVGzRar1EWnf8AVMfIhCI/s1600/ice_screenshot_20160822-103541.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5B3FBCeVivScE68LgrDz_qLf4FeOLLZTckhWn4FMifekUn1f3f9QYQ7pyynxK3RtyyvOgX9-_7oyz9haSqAgpAUikWp31u230M0VcvJb0bSa8EtpRZB3FF-kVGzRar1EWnf8AVMfIhCI/s1600/ice_screenshot_20160822-103541.png" /></a></div>
<div style="text-align: left;">
<br /></div>
</div>
Mayank Sharmahttp://www.blogger.com/profile/15884254830865579332noreply@blogger.com0tag:blogger.com,1999:blog-7732057993325617058.post-74920911065666661012016-08-19T15:21:00.004+05:302016-08-19T21:34:09.847+05:30Gainward Graphic Card Hands on Review, Unboxing, How to Install, Gameplay, Rating and Overview.<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><img alt="Explore Mayadi" border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLiXS7xWvXW9qexI-Pr5K6uwFYF6bNGciAu0mEmbl-scpoxg_lcB0q3du06QMqWImSfTccDGBBlZcYJjJD6gKBr28xeSoIaY1H6YLwF0SPzHV92UqpkHNRboYE3V_yp_XZMnZ0gd71jPg/s320/81uy2E8xrgL._SX355_.jpg" style="margin-left: auto; margin-right: auto;" title="Gainward Nvidia Geforce GT 710 Graphic Card" width="320" /></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Gainward Nvidia Geforce GT 710</td></tr>
</tbody></table>
<div class="separator" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: left;">
</div>
<div style="font-style: Tribuchet; text-align: justify;">
<h3>
<span style="font-family: "trebuchet ms" , sans-serif; font-size: small;"><span class="" id="result_box" lang="en"> </span></span></h3>
<h3>
<span style="font-family: "trebuchet ms" , sans-serif; font-size: small;"><span class="" id="result_box" lang="en">Accelerate <span class="">your<span style="font-family: "trebuchet ms" , sans-serif;"> </span>entire</span> PC experience with the new discrete NVIDIA GeForce GT 710 graphics card. Use all PC applications with up to ten times more power than integrated <span class="">graphics solutions</span>. Games run faster up to 80%, and GeForce® Experience ™ guarantees absolute <span class="">reliability and stability</span><span class="">.</span></span></span></h3>
</div>
<center>
<iframe allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/Ngdq9ZjT5ZI" width="560"></iframe>
</center>
<br />
<h2 style="text-align: left;">
<span style="font-size: large;"><span style="color: #444444;"><span style="font-family: inherit;">⏬ Characteristics</span></span></span></h2>
<ul style="text-align: left;">
<li><h3 style="text-align: left;">
<span style="font-family: "trebuchet ms" , sans-serif;"><span style="font-size: small;">NVIDIA® PureVideo® HD</span></span></h3>
</li>
</ul>
<span style="font-family: "trebuchet ms" , sans-serif;"><span style="font-size: small;">The combination of accelerated HD video decoding and post-processing that delivers unprecedented picture clarity, smooth video playback, accurate color, and precise image scaling - and with extremely low power consumption.</span></span><br />
<ul style="text-align: left;">
<li><h3 style="text-align: left;">
<span style="font-family: "trebuchet ms" , sans-serif;"><span style="font-size: small;">TrueHD and DTS-HD audio Bitstreaming</span></span></h3>
</li>
</ul>
<span style="font-family: "trebuchet ms" , sans-serif;"><span style="font-size: small;">Full support for advanced lossless multi-channel HD audio codecs TrueHD and DTS-HD ensures the rich sound of the master recording to your living room.</span></span><br />
<br />
<ul style="text-align: left;">
<li><h3>
<span style="font-family: "trebuchet ms" , sans-serif;"><span style="font-size: small;"><span class="" id="result_box" lang="en"><span class="">NVIDIA</span> Adaptive Vertical Sync</span></span></span></h3>
</li>
</ul>
<span style="font-family: "trebuchet ms" , sans-serif;"><span style="font-size: small;"><span class="" id="result_box" lang="en"><span class="">Nothing is</span> more distracting than frame rate stuttering and screen tearing. Bucking occurs mainly at low frame rates and tearing at high frame rates. Adaptive V-Sync is a smarter way to render frames, which is at high frame rates prevents tearing and <span class="">deactivated</span> <span class="">at low</span> frame rates in order to avoid jerking. Finally undisturbed gaming pleasure.</span></span></span><br />
<br />
<ul style="text-align: left;">
<li><h3 style="text-align: left;">
<span style="font-family: "trebuchet ms" , sans-serif;"><span style="font-size: small;"><span class="" id="result_box" lang="en"><span class="" id="result_box" lang="en"><span class="">Antialiasing</span>: <span class="">NVIDIA</span> <span class="">FXAA</span> ™</span></span></span></span></h3>
</li>
</ul>
<span style="font-family: "trebuchet ms" , sans-serif;"><span style="font-size: small;"><span class="" id="result_box" lang="en"><span class="" id="result_box" lang="en">Antialiasing <span class="">removes excessive</span> podium <span class="">effect on edges</span>, but can reduce the frame rate. FXAA (Fast <span class="">Approximate</span> <span class="">Anti-Aliasing</span>) is a new <span class="">anti-aliasing</span> technology, which helps <span class="">with minimal impact on</span> <span class="">performance</span> for smooth edges. With <span class="">Kepler</span>-based GPUs FXAA <span class="">can be activated at</span> <span class="">hundreds of games</span> through <span class="">the NVIDIA Control Panel</span><span class="">.</span></span></span> </span></span><br />
<h2>
<span style="font-family: "times" , "times new roman" , serif;"><span style="font-size: small;"><span class="" id="result_box" lang="en"><span class=""></span></span></span></span></h2>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7732057993325617058.post-51139527990672401292016-08-17T18:30:00.000+05:302016-08-17T18:40:25.699+05:30How To Slide Images Using Animation.<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="" style="clear: both; text-align: left;">
<img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN7LFZE05EPA7FgZDQSwqp6c1VY-ejj85lZ40TtU2BXMlplbDnVVcfvI94nyPngauUT2DM_mLsPgcv26FbLHdF77Abs28U1ljc4yfbZ-PKgeczxCMUUT8IW7N6bPa_Qhq-BxWHYkSdbHg/s1600/down_arrow.png" /><span style="font-weight: normal;"><span style="background-color: white;"><span style="color: #a64d79;"><span style="color: #741b47;"><span style="background-color: white;"><b><span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><span style="font-size: x-large;"> C</span></span></b></span></span><span style="font-size: large;"><span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">ONCEPT</span></span></span></span></span></div>
<ol style="text-align: left;">
</ol>
<ol style="text-align: left;">
<li><h3 class="separator" style="clear: both; text-align: left;">
<span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif;"><span style="font-size: x-large;"><span style="font-size: small;"><span style="font-family: "trebuchet ms" , sans-serif;">Add a image view into a linear layout.</span></span></span></span></span></h3>
</li>
<li><h3 class="separator" style="clear: both; text-align: left;">
<span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif;"><span style="font-size: x-large;"><span style="font-size: small;"><span style="font-family: "trebuchet ms" , sans-serif;">Animate it toward left side until it disappear.</span></span></span></span></span></h3>
</li>
<li><h3 class="separator" style="clear: both; text-align: left;">
<span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif;"><span style="font-size: x-large;"><span style="font-size: small;"><span style="font-family: "trebuchet ms" , sans-serif;">Remove all views from linear layout.</span></span></span></span></span></h3>
</li>
<li><h3 class="separator" style="clear: both; text-align: left;">
<span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif;"><span style="font-size: x-large;"><span style="font-size: small;"><span style="font-family: "trebuchet ms" , sans-serif;">Again add same image view with different image from right side.</span></span></span></span></span></h3>
</li>
<li><h3 class="separator" style="clear: both; text-align: left;">
<span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif;"><span style="font-size: x-large;"><span style="font-size: small;"><span style="font-family: "trebuchet ms" , sans-serif;">animate it toward screen center<span style="font-family: "trebuchet ms" , sans-serif;">.</span></span></span></span></span></span></h3>
</li>
</ol>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKZd7xHCFjNXBYz6zub4J7CKJZYrZ5j65ug-FFnKpCyyqRVP3FaoCLGTQqeR1-xK3Wk0I_0coR9CurKZyP3oYJZu8jC9jnNggPRc6NTqliKd-LkdpH8fjCyULXgE-6ckeBb5mrwPyt-B8/s1600/Image+1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKZd7xHCFjNXBYz6zub4J7CKJZYrZ5j65ug-FFnKpCyyqRVP3FaoCLGTQqeR1-xK3Wk0I_0coR9CurKZyP3oYJZu8jC9jnNggPRc6NTqliKd-LkdpH8fjCyULXgE-6ckeBb5mrwPyt-B8/s400/Image+1.jpg" width="400" /></a></div>
<h3 class="separator" style="clear: both; text-align: left;">
</h3>
<div class="" style="clear: both; text-align: left;">
<img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN7LFZE05EPA7FgZDQSwqp6c1VY-ejj85lZ40TtU2BXMlplbDnVVcfvI94nyPngauUT2DM_mLsPgcv26FbLHdF77Abs28U1ljc4yfbZ-PKgeczxCMUUT8IW7N6bPa_Qhq-BxWHYkSdbHg/s1600/down_arrow.png" /><span style="font-weight: normal;"><span style="background-color: white;"><span style="color: #a64d79;"><span style="color: #741b47;"><span style="background-color: white;"><b><span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><span style="font-size: x-large;"> <span style="color: #351c75;"><span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">L</span></span></span></span></b></span></span><span style="color: #351c75;"><span style="font-size: large;"><span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">AYOUTS</span></span></span></span></span></span><br />
<br />
<div style="text-align: left;">
<span style="font-weight: normal;"><span style="background-color: white;"><span style="color: #a64d79;"><span style="color: #351c75;"><span style="font-size: large;"><span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><span style="color: black;"><span style="font-family: "courier new" , "courier" , monospace;"><span style="font-size: small;">activity_main.xml</span></span><span style="font-family: "courier new" , "courier" , monospace;"></span></span> </span></span></span></span></span></span></div>
</div>
<pre style="-webkit-text-stroke-width: 0px; background: rgb(255, 255, 255); color: black; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px;"><span style="font-family: "courier new" , "courier" , monospace;"><span style="color: #004a43;"><?</span><span style="color: maroon; font-weight: bold;">xml</span><span style="color: #004a43;"> </span><span style="color: #074726;">version</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #7d0045;">1.0</span><span style="color: maroon;">"</span><span style="color: #004a43;"> </span><span style="color: #074726;">encoding</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">utf-8</span><span style="color: maroon;">"</span><span style="color: #004a43;">?></span>
<span style="color: #a65700;"><</span><span style="color: #5f5035;">RelativeLayout</span> <span style="color: #666616;">xmlns</span><span style="color: purple;">:</span><span style="color: #074726;">android</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #666616;">http</span><span style="color: purple;">:</span><span style="color: maroon; font-weight: bold;">//</span><span style="color: #5555dd;">schemas.android.com</span><span style="color: #40015a;">/apk/res/android</span><span style="color: maroon;">"</span>
<span style="color: #666616;">xmlns</span><span style="color: purple;">:</span><span style="color: #074726;">tools</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #666616;">http</span><span style="color: purple;">:</span><span style="color: maroon; font-weight: bold;">//</span><span style="color: #5555dd;">schemas.android.com</span><span style="color: #40015a;">/tools</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">layout_width</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">match_parent</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">layout_height</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">match_parent</span><span style="color: maroon;">"</span>
<span style="color: #007997;">tools</span><span style="color: purple;">:</span><span style="color: #274796;">context</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">learning.com.viewslidewithoutlist.MainActivity</span><span style="color: maroon;">"</span><span style="color: #a65700;">></span>
<span style="color: #a65700;"><</span><span style="color: #5f5035;">LinearLayout</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">id</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">@+id/layout</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">layout_width</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">match_parent</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">layout_height</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">match_parent</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">layout_above</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">@+id/options</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">orientation</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">vertical</span><span style="color: maroon;">"</span> <span style="color: #a65700;">/></span>
<span style="color: #a65700;"><</span><span style="color: #5f5035;">LinearLayout</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">id</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">@+id/options</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">layout_width</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">match_parent</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">layout_height</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">wrap_content</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">layout_alignParentBottom</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">true</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">gravity</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">center</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">orientation</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">horizontal</span><span style="color: maroon;">"</span><span style="color: #a65700;">></span>
<span style="color: #a65700;"><</span><span style="color: #5f5035;">Button</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">id</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">@+id/close</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">layout_width</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">wrap_content</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">layout_height</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">50dp</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">text</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">close</span><span style="color: maroon;">"</span> <span style="color: #a65700;">/></span>
<span style="color: #a65700;"><</span><span style="color: #5f5035;">Button</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">id</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">@+id/next</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">layout_width</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">wrap_content</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">layout_height</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">50dp</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">text</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">next</span><span style="color: maroon;">"</span> <span style="color: #a65700;">/></span>
<span style="color: #a65700;"></</span><span style="color: #5f5035;">LinearLayout</span><span style="color: #a65700;">></span>
<span style="color: #a65700;"></</span><span style="color: #5f5035;">RelativeLayout</span><span style="color: #a65700;">></span></span></pre>
<pre style="-webkit-text-stroke-width: 0px; background: rgb(255, 255, 255); color: black; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px;"><span style="color: #a65700;"> </span></pre>
<h3 class="separator" style="clear: both; text-align: left;">
<span style="font-family: "courier new" , "courier" , monospace;"><span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif;"><span style="font-size: x-large;"><span style="font-size: small;"><span style="font-family: "trebuchet ms" , sans-serif;">Output :</span></span></span></span></span></span></h3>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFU-FnrDz5WyLxGpMKkUy6xaaIDKIie0W0LchdUtX6iIz3PIgtMJaCeLkrcWZj8-xHfpZ2GKbcjSEipPlqQnOr9cwOwrtY8nps4qJX1NaHvFEz0JzuNM03QdW1ihYKGBMiuqnTOxGZIEg/s1600/ice_screenshot_20160817-181713.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFU-FnrDz5WyLxGpMKkUy6xaaIDKIie0W0LchdUtX6iIz3PIgtMJaCeLkrcWZj8-xHfpZ2GKbcjSEipPlqQnOr9cwOwrtY8nps4qJX1NaHvFEz0JzuNM03QdW1ihYKGBMiuqnTOxGZIEg/s1600/ice_screenshot_20160817-181713.png" /></a></div>
<h3 class="separator" style="clear: both; text-align: left;">
<span style="font-family: "courier new" , "courier" , monospace;"><span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif;"><span style="font-size: x-large;"><span style="font-size: small;"><span style="font-family: "trebuchet ms" , sans-serif;"></span></span></span></span></span></span><br /><span style="font-family: "courier new" , "courier" , monospace;"></span></h3>
<img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN7LFZE05EPA7FgZDQSwqp6c1VY-ejj85lZ40TtU2BXMlplbDnVVcfvI94nyPngauUT2DM_mLsPgcv26FbLHdF77Abs28U1ljc4yfbZ-PKgeczxCMUUT8IW7N6bPa_Qhq-BxWHYkSdbHg/s1600/down_arrow.png" /><span style="font-weight: normal;"><span style="background-color: white;"><span style="color: #a64d79;"><span style="color: #741b47;"><span style="background-color: white;"><b><span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><span style="font-size: x-large;"> <span style="color: #0b5394;"><span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">C</span></span></span></span></b></span></span><span style="color: #351c75;"><span style="font-size: large;"><span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><span style="color: #0b5394;"><span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">ODING</span></span></span></span></span></span></span></span><br />
<br />
<span style="font-weight: normal;"><span style="background-color: white;"><span style="color: #a64d79;"><span style="color: #351c75;"><span style="font-size: large;"><span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><span style="color: #0b5394;"><span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"> </span></span></span></span></span></span></span></span><span style="font-weight: normal;"><span style="background-color: white;"><span style="color: #a64d79;"><span style="color: #351c75;"><span style="font-size: large;"><span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><span style="color: black;"><span style="font-family: "courier new" , "courier" , monospace;"><span style="font-size: small;">MainActivit</span></span></span></span></span></span></span></span></span><span style="font-weight: normal;"><span style="background-color: white;"><span style="color: #a64d79;"><span style="color: #351c75;"><span style="font-size: large;"><span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><span style="color: black;"><span style="font-family: "courier new" , "courier" , monospace;"><span style="font-size: small;">y.java</span></span></span></span></span></span></span></span></span><br />
<br />
<pre style="-webkit-text-stroke-width: 0px; background: rgb(255, 255, 255); color: black; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px;"><span style="font-family: "courier new" , "courier" , monospace;"><span style="color: maroon; font-weight: bold;">package</span><span style="color: #004a43;"> learning</span><span style="color: #808030;">.</span><span style="color: #004a43;">com</span><span style="color: #808030;">.</span><span style="color: #004a43;">viewslidewithoutlist</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">animation</span><span style="color: #808030;">.</span><span style="color: #004a43;">Animator</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">animation</span><span style="color: #808030;">.</span><span style="color: #004a43;">AnimatorListenerAdapter</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">os</span><span style="color: #808030;">.</span><span style="color: #004a43;">Bundle</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">support</span><span style="color: #808030;">.</span><span style="color: #004a43;">v7</span><span style="color: #808030;">.</span><span style="color: #004a43;">app</span><span style="color: #808030;">.</span><span style="color: #004a43;">AppCompatActivity</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">view</span><span style="color: #808030;">.</span><span style="color: #004a43;">View</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">widget</span><span style="color: #808030;">.</span><span style="color: #004a43;">Button</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">widget</span><span style="color: #808030;">.</span><span style="color: #004a43;">ImageView</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">widget</span><span style="color: #808030;">.</span><span style="color: #004a43;">LinearLayout</span><span style="color: purple;">;</span>
<span style="color: #3f5fbf;">/**</span>
<span style="color: #3f5fbf;"> </span><span style="color: #7f9fbf; font-weight: bold;">*</span><span style="color: #3f5fbf;"> This class swipes image in linear layout.</span>
<span style="color: #3f5fbf;"> */</span>
<span style="color: maroon; font-weight: bold;">public</span> <span style="color: maroon; font-weight: bold;">class</span> MainActivity <span style="color: maroon; font-weight: bold;">extends</span> AppCompatActivity <span style="color: purple;">{</span>
LinearLayout layout<span style="color: purple;">;</span>
<span style="color: #bb7977; font-weight: bold;">Button</span> next<span style="color: #808030;">,</span> close<span style="color: purple;">;</span>
<span style="color: dimgrey;">/*USED FOR IMAGE RESOURCE ARRAY*/</span>
<span style="color: #bb7977;">int</span> i <span style="color: #808030;">=</span> <span style="color: #008c00;">0</span><span style="color: purple;">;</span>
<span style="color: #808030;">@</span>Override
<span style="color: maroon; font-weight: bold;">protected</span> <span style="color: #bb7977;">void</span> onCreate<span style="color: #808030;">(</span>Bundle savedInstanceState<span style="color: #808030;">)</span> <span style="color: purple;">{</span>
<span style="color: maroon; font-weight: bold;">super</span><span style="color: #808030;">.</span>onCreate<span style="color: #808030;">(</span>savedInstanceState<span style="color: #808030;">)</span><span style="color: purple;">;</span>
setContentView<span style="color: #808030;">(</span>R<span style="color: #808030;">.</span>layout<span style="color: #808030;">.</span>activity_main<span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: dimgrey;">/*IMAGE RESOURCE ARRAY*/</span>
<span style="color: maroon; font-weight: bold;">final</span> <span style="color: #bb7977;">int</span><span style="color: #808030;">[</span><span style="color: #808030;">]</span> imgRes <span style="color: #808030;">=</span> <span style="color: purple;">{</span>R<span style="color: #808030;">.</span>drawable<span style="color: #808030;">.</span>image<span style="color: #808030;">,</span> R<span style="color: #808030;">.</span>drawable<span style="color: #808030;">.</span>nexus<span style="color: purple;">}</span><span style="color: purple;">;</span>
<span style="color: dimgrey;">/*FINDING IDS*/</span>
layout <span style="color: #808030;">=</span> <span style="color: #808030;">(</span>LinearLayout<span style="color: #808030;">)</span> findViewById<span style="color: #808030;">(</span>R<span style="color: #808030;">.</span>id<span style="color: #808030;">.</span>layout<span style="color: #808030;">)</span><span style="color: purple;">;</span>
next <span style="color: #808030;">=</span> <span style="color: #808030;">(</span><span style="color: #bb7977; font-weight: bold;">Button</span><span style="color: #808030;">)</span> findViewById<span style="color: #808030;">(</span>R<span style="color: #808030;">.</span>id<span style="color: #808030;">.</span>next<span style="color: #808030;">)</span><span style="color: purple;">;</span>
close <span style="color: #808030;">=</span> <span style="color: #808030;">(</span><span style="color: #bb7977; font-weight: bold;">Button</span><span style="color: #808030;">)</span> findViewById<span style="color: #808030;">(</span>R<span style="color: #808030;">.</span>id<span style="color: #808030;">.</span>close<span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: dimgrey;">/*CREATES A IMAGE VIEW OBJECT*/</span>
<span style="color: maroon; font-weight: bold;">final</span> ImageView imageView <span style="color: #808030;">=</span> <span style="color: maroon; font-weight: bold;">new</span> ImageView<span style="color: #808030;">(</span>getApplicationContext<span style="color: #808030;">(</span><span style="color: #808030;">)</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
imageView<span style="color: #808030;">.</span>setImageResource<span style="color: #808030;">(</span>imgRes<span style="color: #808030;">[</span>i<span style="color: #808030;">]</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: dimgrey;">/*ADDS IMAGE VIEW IN LINEAR LAYOUT*/</span>
layout<span style="color: #808030;">.</span>addView<span style="color: #808030;">(</span>imageView<span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: dimgrey;">/*NEXT BUTTON ON CLICK LISTENER*/</span>
next<span style="color: #808030;">.</span>setOnClickListener<span style="color: #808030;">(</span><span style="color: maroon; font-weight: bold;">new</span> View<span style="color: #808030;">.</span>OnClickListener<span style="color: #808030;">(</span><span style="color: #808030;">)</span> <span style="color: purple;">{</span>
<span style="color: #808030;">@</span>Override
<span style="color: maroon; font-weight: bold;">public</span> <span style="color: #bb7977;">void</span> onClick<span style="color: #808030;">(</span>View v<span style="color: #808030;">)</span> <span style="color: purple;">{</span>
<span style="color: dimgrey;">/*DISABLE CLICK ON NEXT BUTTON UNTIL NEXT IMAGE APPEARS*/</span>
next<span style="color: #808030;">.</span>setClickable<span style="color: #808030;">(</span><span style="color: maroon; font-weight: bold;">false</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: dimgrey;">/*CONDITION TO LOOP IMAGE ARRAY*/</span>
<span style="color: maroon; font-weight: bold;">if</span> <span style="color: #808030;">(</span>i <span style="color: #808030;"><</span> <span style="color: #008c00;">1</span><span style="color: #808030;">)</span> <span style="color: purple;">{</span>
i<span style="color: #808030;">+</span><span style="color: #808030;">+</span><span style="color: purple;">;</span>
<span style="color: purple;">}</span> <span style="color: maroon; font-weight: bold;">else</span> <span style="color: purple;">{</span>
i <span style="color: #808030;">=</span> <span style="color: #008c00;">0</span><span style="color: purple;">;</span>
<span style="color: purple;">}</span>
<span style="color: dimgrey;">/*ANIMATION ON IMAGE WITH COMPLETE LISTENER*/</span>
imageView<span style="color: #808030;">.</span>animate<span style="color: #808030;">(</span><span style="color: #808030;">)</span><span style="color: #808030;">.</span>translationX<span style="color: #808030;">(</span><span style="color: #808030;">-</span><span style="color: #008c00;">1000</span><span style="color: #808030;">)</span>
<span style="color: #808030;">.</span>setListener<span style="color: #808030;">(</span><span style="color: maroon; font-weight: bold;">new</span> AnimatorListenerAdapter<span style="color: #808030;">(</span><span style="color: #808030;">)</span> <span style="color: purple;">{</span>
<span style="color: #808030;">@</span>Override
<span style="color: maroon; font-weight: bold;">public</span> <span style="color: #bb7977;">void</span> onAnimationEnd<span style="color: #808030;">(</span>Animator animation<span style="color: #808030;">)</span> <span style="color: purple;">{</span>
<span style="color: maroon; font-weight: bold;">super</span><span style="color: #808030;">.</span>onAnimationEnd<span style="color: #808030;">(</span>animation<span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: dimgrey;">/*REMOVES ALL VIEW FROM LINEAR LAYOUT*/</span>
layout<span style="color: #808030;">.</span>removeAllViews<span style="color: #808030;">(</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: dimgrey;">/*SETS NEXT IMAGE IN IMAGE VIEW*/</span>
imageView<span style="color: #808030;">.</span>setImageResource<span style="color: #808030;">(</span>imgRes<span style="color: #808030;">[</span>i<span style="color: #808030;">]</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: dimgrey;">/*SETS X TRANSACTION OUTSIDE SCREEN VIEW*/</span>
imageView<span style="color: #808030;">.</span>setTranslationX<span style="color: #808030;">(</span><span style="color: #008c00;">1000</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: dimgrey;">/*ADD IMAGE VIEW INTO LINEAR LAYOUT*/</span>
layout<span style="color: #808030;">.</span>addView<span style="color: #808030;">(</span>imageView<span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: dimgrey;">/*ANIMATE IMAGE VIEW TOWARD SCREEN*/</span>
imageView<span style="color: #808030;">.</span>animate<span style="color: #808030;">(</span><span style="color: #808030;">)</span><span style="color: #808030;">.</span>translationX<span style="color: #808030;">(</span><span style="color: #008c00;">0</span><span style="color: #808030;">)</span>
<span style="color: #808030;">.</span>setListener<span style="color: #808030;">(</span><span style="color: maroon; font-weight: bold;">new</span> AnimatorListenerAdapter<span style="color: #808030;">(</span><span style="color: #808030;">)</span> <span style="color: purple;">{</span>
<span style="color: #808030;">@</span>Override
<span style="color: maroon; font-weight: bold;">public</span> <span style="color: #bb7977;">void</span> onAnimationEnd<span style="color: #808030;">(</span>Animator animation<span style="color: #808030;">)</span> <span style="color: purple;">{</span>
<span style="color: maroon; font-weight: bold;">super</span><span style="color: #808030;">.</span>onAnimationEnd<span style="color: #808030;">(</span>animation<span style="color: #808030;">)</span><span style="color: purple;">;</span>
imageView<span style="color: #808030;">.</span>setTranslationX<span style="color: #808030;">(</span><span style="color: #008c00;">0</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: dimgrey;">/*AGAIN ENABLE CLICK ON NEXT BUTTON*/</span>
next<span style="color: #808030;">.</span>setClickable<span style="color: #808030;">(</span><span style="color: maroon; font-weight: bold;">true</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: purple;">}</span>
<span style="color: purple;">}</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: purple;">}</span>
<span style="color: purple;">}</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: purple;">}</span>
<span style="color: purple;">}</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: dimgrey;">/*ON CLICK LISTENER FOR CLOSE BUTTON*/</span>
close<span style="color: #808030;">.</span>setOnClickListener<span style="color: #808030;">(</span><span style="color: maroon; font-weight: bold;">new</span> View<span style="color: #808030;">.</span>OnClickListener<span style="color: #808030;">(</span><span style="color: #808030;">)</span> <span style="color: purple;">{</span>
<span style="color: #808030;">@</span>Override
<span style="color: maroon; font-weight: bold;">public</span> <span style="color: #bb7977;">void</span> onClick<span style="color: #808030;">(</span>View v<span style="color: #808030;">)</span> <span style="color: purple;">{</span>
<span style="color: dimgrey;">/*CLOSES THE ACTIVITY*/</span>
finish<span style="color: #808030;">(</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: purple;">}</span>
<span style="color: purple;">}</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: purple;">}</span>
<span style="color: purple;">}</span></span></pre>
<pre style="background-color: #2b2b2b; color: #a9b7c6; font-family: 'Courier New'; font-size: 9.0pt;"></pre>
<pre style="background-color: #2b2b2b; color: #a9b7c6; font-family: 'Courier New'; font-size: 9.0pt;"></pre>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7732057993325617058.post-25750496579291423912016-08-17T15:53:00.001+05:302016-08-23T10:46:45.553+05:30How To Find And Run Inspection In Android Studio.<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
<span style="color: #351c75;"><span style="font-family: "trebuchet ms" , sans-serif;"><span style="font-size: x-large;">Did you know ?</span></span></span></h2>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div style="text-align: left;">
To quickly find and run an inspection, press <span style="color: #660000;"><span class="shortcut">Ctrl+Alt+Shift+I</span></span>
and start typing the name of the inspection or its group. Choose the
desired inspection from the suggestion list and then specify the desired
scope. </div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
So when you press Ctrl+Alt+Shift+I, a prompt will come as below.</div>
<div style="text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_CxkOnO3BMt1Jj4AtSFOznoa9sZfVclE1ES7SxMhm5KljZ5vDGgzBO-GQoe26CHweyJbbY3w2SAKR3M7C-zwtGfhtuZowZKM3ZGtiG2FZnhynMmm_g1Zr_pEL7N45UbeG67uBW06bzXk/s1600/Image+1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Mayadi - Did you know?" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_CxkOnO3BMt1Jj4AtSFOznoa9sZfVclE1ES7SxMhm5KljZ5vDGgzBO-GQoe26CHweyJbbY3w2SAKR3M7C-zwtGfhtuZowZKM3ZGtiG2FZnhynMmm_g1Zr_pEL7N45UbeG67uBW06bzXk/s1600/Image+1.jpg" title="How to do inspection in android studio" /></a></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Now for example we will enter "Image" text in it.</div>
<div style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-2quIwaK_VbcPFzn5jFd2-3aCGqOlkaAY1pNLyZBNX7ebxhaZCOYF3ASnoj1rYIMYTL13YMxGXOr4p5EY1tUaMng5IdOGnHKNb7Ay8UsQG1b6nzA0KSudBDjfpQzxe245A9_R0CL83O4/s1600/Image+2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Mayadi - Did you know ?" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-2quIwaK_VbcPFzn5jFd2-3aCGqOlkaAY1pNLyZBNX7ebxhaZCOYF3ASnoj1rYIMYTL13YMxGXOr4p5EY1tUaMng5IdOGnHKNb7Ay8UsQG1b6nzA0KSudBDjfpQzxe245A9_R0CL83O4/s1600/Image+2.JPG" title="Search for Image text" /></a></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Then there will be available options related to searched text. Right now we will select 1st one<span style="color: #666666;"> "Image defined in density- independent drawable folder". <span style="color: black;">Which will inspect in drawable folder.</span></span></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="color: black;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghbB8ofgEn_80V_pCki-JPxsTQwYOLCOAgtDv8ia2_yPOxtp70U4k1os0hr_vO1DPkRUpm0yhJdJooWPX1rOIZylJindb2RBtwqD0l6DgOLj0QA0C3fatchY70zdhzuJEMHmLeX7Ezp9w/s1600/Image+3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghbB8ofgEn_80V_pCki-JPxsTQwYOLCOAgtDv8ia2_yPOxtp70U4k1os0hr_vO1DPkRUpm0yhJdJooWPX1rOIZylJindb2RBtwqD0l6DgOLj0QA0C3fatchY70zdhzuJEMHmLeX7Ezp9w/s1600/Image+3.jpg" /></a></span></div>
<br />
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
It will take some time to inspect. There are two options available, first is <span style="color: #666666;">"Cancel"</span> to cancel the inspection and second one is <span style="color: #666666;">"Background"</span> to run processing in background.</div>
<div style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaPgT2a1AKMJ7GFOlfm6P9Pvldt1nqTINcVJBOx7Oz2Uxcygl8pr9ddTL292ZdnX05OP4DckqT1mkPzTsswahWJuiBuGGcT8DrvI-mcfdjeHSCi0Wo66Pyd4nfwCst2v87-aA8nhqYyqo/s1600/ice_screenshot_20160817-153737.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaPgT2a1AKMJ7GFOlfm6P9Pvldt1nqTINcVJBOx7Oz2Uxcygl8pr9ddTL292ZdnX05OP4DckqT1mkPzTsswahWJuiBuGGcT8DrvI-mcfdjeHSCi0Wo66Pyd4nfwCst2v87-aA8nhqYyqo/s1600/ice_screenshot_20160817-153737.png" /> </a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
After the loading completes a window will come, where it will ask you to select certain option as you can see above. we will select <span style="color: #666666;">"whole project" <span style="color: black;">because we want to inspect in whole project then click <span style="color: #666666;">"OK"</span>.</span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkokvHKhhtgQvTL8yVRB03cn0mDuVJS-Tf8bTbDiqqzHSH9rK0z9g3g5cSj8m6DP7G_86RwtodJkxFCWQuCeeD1WADJVOPGLFOyzrTcx89s2KqUzU2-_PjAONc0SjDqU1DCu8rPHpmUlM/s1600/ice_screenshot_20160817-153842.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="216" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkokvHKhhtgQvTL8yVRB03cn0mDuVJS-Tf8bTbDiqqzHSH9rK0z9g3g5cSj8m6DP7G_86RwtodJkxFCWQuCeeD1WADJVOPGLFOyzrTcx89s2KqUzU2-_PjAONc0SjDqU1DCu8rPHpmUlM/s640/ice_screenshot_20160817-153842.png" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div style="text-align: left;">
Then a window will appear at bottom of android studio or we can open it manually by clicking <span style="color: #444444;">"inspection" </span>tab at left-bottom corner. Here you can see it will find a bitmap image in drawable folder according to your project.</div>
</div>
Mayank Sharmahttp://www.blogger.com/profile/15884254830865579332noreply@blogger.com0tag:blogger.com,1999:blog-7732057993325617058.post-4629105330338481892016-08-17T11:07:00.006+05:302016-08-23T10:47:30.335+05:30How To See/Search Usages Of class, Method Or Variable Across The Whole Project In Android Studio.<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
<span style="color: #351c75;"><span style="font-family: "trebuchet ms" , sans-serif;"><span style="font-size: x-large;">Did you know ?</span></span></span></h2>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: black;">You can bring forward the list of all usages of a class, method or
variable across the whole project, and quickly jump to the selected
usage. To do that, place the caret at the symbol's name or at its usage
in code and press<span style="background-color: white;"> <b><span style="color: #660000;"><span class="shortcut">Ctrl+Alt+F7</span> (<span class="control">Edit
| Find | Show Usages</span> in the main menu)</span></b></span>, scroll the list and click
the desired usage.</span></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<img alt="Mayadi - Did you know ?" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi07kjoWjkqPF61KzxaXrWUPeccH2bU3zRxcA35SqTw-Cz-kwvbturdJ6tb_fJ_q1IKL_i22wPhFMFtjM26kF7JVThhAWgwNVm2mJ01KbCrQl-F_97Rccr9ZIEMKCFSJJcMC1B4azDcGrg/s1600/ice_screenshot_20160817-110112.png" title="How to search usages of class, method and variable in whole project" /></div>
<span id="goog_1069381901"></span><span id="goog_1069381902"></span></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7732057993325617058.post-72360954550863532692016-08-08T23:45:00.001+05:302016-08-08T23:56:18.940+05:30Enlarge 3D 3x of Mobile Phone Screen Magnifier High Defination Expander Stand Holder<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: "times" , "times new roman" , serif;"><span style="color: #444444; font-size: x-large;">Enlarge Screen - </span><span style="color: #666666; font-size: x-large;">Mobile Phone (Unboxing)</span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<br />
<iframe allowfullscreen="" frameborder="0" height="400" src="https://www.youtube.com/embed/anj9XTWggU8" width="600"></iframe><br />
</div>
<div class="separator" style="clear: both; text-align: right;">
<script src="https://apis.google.com/js/platform.js"></script>
<div class="g-ytsubscribe" data-channelid="UCDdKucdZUFS_d5Nj7rXDgXw" data-layout="full" data-count="hidden"></div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: large;">Product Detail</span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: "open sans" , "arial" , "helvetica" , sans-serif , "simsun" ,; font-size: 14px; line-height: 18.2px;"><b><span style="background-color: #444444; color: white;"> I</span><span style="color: white;"><span style="background-color: #444444;">tem specifics </span></span><span style="background-color: #999999;"> </span></b><span style="background-color: #999999;"> </span></span></div>
<div class="ui-box product-property-main" style="border: 0px; box-sizing: border-box; font-stretch: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
<div class="ui-box-body" style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: border-box; font-stretch: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
<ul class="product-property-list util-clearfix" style="background-color: white; border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: border-box; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 10px 0px; vertical-align: baseline; zoom: 1;">
<li class="property-item" data-attr="349906" data-title="No" id="product-prop-200009237" style="border: 0px; box-sizing: border-box; float: left; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; list-style: none; margin: 0px; padding: 5px 0px; position: relative; vertical-align: baseline; width: 479px;"><span class="propery-title" style="border: 0px; box-sizing: border-box; color: #999999; float: left; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 3px 0px 0px; padding: 0px; vertical-align: baseline;">Bicycle Holder:</span><span class="propery-des" style="border: 0px; box-sizing: border-box; float: left; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; max-width: 300px; overflow: hidden; padding: 0px; text-overflow: ellipsis; vertical-align: baseline; white-space: nowrap;" title="No">No</span></li>
<li class="property-item" data-attr="124" data-title="Plastic" id="product-prop-10" style="border: 0px; box-sizing: border-box; float: left; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; list-style: none; margin: 0px; padding: 5px 0px; position: relative; vertical-align: baseline; width: 479px;"><span class="propery-title" style="border: 0px; box-sizing: border-box; color: #999999; float: left; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 3px 0px 0px; padding: 0px; vertical-align: baseline;">Material:</span><span class="propery-des" style="border: 0px; box-sizing: border-box; float: left; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; max-width: 300px; overflow: hidden; padding: 0px; text-overflow: ellipsis; vertical-align: baseline; white-space: nowrap;" title="Plastic">Plastic</span></li>
<li class="property-item" data-attr="349906" data-title="No" id="product-prop-1248" style="border: 0px; box-sizing: border-box; float: left; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; list-style: none; margin: 0px; padding: 5px 0px; position: relative; vertical-align: baseline; width: 479px;"><span class="propery-title" style="border: 0px; box-sizing: border-box; color: #999999; float: left; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 3px 0px 0px; padding: 0px; vertical-align: baseline;">Charger:</span><span class="propery-des" style="border: 0px; box-sizing: border-box; float: left; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; max-width: 300px; overflow: hidden; padding: 0px; text-overflow: ellipsis; vertical-align: baseline; white-space: nowrap;" title="No">No</span></li>
<li class="property-item" data-attr="200003683" data-title="No" id="product-prop-200000723" style="border: 0px; box-sizing: border-box; float: left; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; list-style: none; margin: 0px; padding: 5px 0px; position: relative; vertical-align: baseline; width: 479px;"><span class="propery-title" style="border: 0px; box-sizing: border-box; color: #999999; float: left; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 3px 0px 0px; padding: 0px; vertical-align: baseline;">Has Speaker:</span><span class="propery-des" style="border: 0px; box-sizing: border-box; float: left; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; max-width: 300px; overflow: hidden; padding: 0px; text-overflow: ellipsis; vertical-align: baseline; white-space: nowrap;" title="No">No</span></li>
<li class="property-item" data-attr="349906" data-title="No" id="product-prop-20299" style="border: 0px; box-sizing: border-box; float: left; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; list-style: none; margin: 0px; padding: 5px 0px; position: relative; vertical-align: baseline; width: 479px;"><span class="propery-title" style="border: 0px; box-sizing: border-box; color: #999999; float: left; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 3px 0px 0px; padding: 0px; vertical-align: baseline;">Car Holder:</span><span class="propery-des" style="border: 0px; box-sizing: border-box; float: left; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; max-width: 300px; overflow: hidden; padding: 0px; text-overflow: ellipsis; vertical-align: baseline; white-space: nowrap;" title="No">No</span></li>
<li class="property-item" data-attr="" data-title="3D Screen Magnifier Holder" id="product-prop-3" style="border: 0px; box-sizing: border-box; float: left; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; list-style: none; margin: 0px; padding: 5px 0px; position: relative; vertical-align: baseline; width: 479px;"><span class="propery-title" style="border: 0px; box-sizing: border-box; color: #999999; float: left; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 3px 0px 0px; padding: 0px; vertical-align: baseline;">Model Number:</span><span class="propery-des" style="border: 0px; box-sizing: border-box; float: left; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; max-width: 300px; overflow: hidden; padding: 0px; text-overflow: ellipsis; vertical-align: baseline; white-space: nowrap;" title="3D Screen Magnifier Holder">3D Screen Magnifier Holder</span></li>
<li class="property-item" data-attr="4" data-title="Other" id="product-prop-981" style="border: 0px; box-sizing: border-box; float: left; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; list-style: none; margin: 0px; padding: 5px 0px; position: relative; vertical-align: baseline; width: 479px;"><span class="propery-title" style="border: 0px; box-sizing: border-box; color: #999999; float: left; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 3px 0px 0px; padding: 0px; vertical-align: baseline;">Compatible Brand:</span><span class="propery-des" style="border: 0px; box-sizing: border-box; float: left; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; max-width: 300px; overflow: hidden; padding: 0px; text-overflow: ellipsis; vertical-align: baseline; white-space: nowrap;" title="Other">Other</span></li>
</ul>
<div style="background-color: white; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit;">
<span style="color: #999999;"><span style="line-height: 16px;"><br /></span></span></div>
<div>
<div class="separator" style="background-color: white; clear: both; font-family: "Times New Roman"; font-size: medium; font-style: inherit; font-variant: inherit; font-weight: inherit;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: large;"><br /></span></div>
<div class="separator" style="background-color: white; clear: both; font-family: "Times New Roman"; font-style: inherit; font-variant: inherit; font-weight: inherit;">
<span style="font-family: "trebuchet ms" , sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; font-family: "Times New Roman"; font-style: inherit; font-variant: inherit; font-weight: inherit;">
<span style="font-family: "trebuchet ms" , sans-serif;"><span style="color: white;"><span style="background-color: #444444;"> Features </span><span style="background-color: #999999;"> </span></span><span style="background-color: #999999;"> </span></span></div>
<div class="ui-box product-property-main" style="background-color: white; border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: border-box; font-stretch: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
<div class="ui-box-body" style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: border-box; font-stretch: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
<ul class="product-property-list util-clearfix" style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: border-box; font-stretch: inherit; margin: 0px; padding: 10px 0px; vertical-align: baseline; zoom: 1;">
<li class="property-item" data-attr="349906" data-title="No" id="product-prop-200009237" style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: border-box; float: left; font-stretch: inherit; list-style: none; margin: 0px; padding: 5px 0px; position: relative; vertical-align: baseline; width: 479px;"><div style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: content-box; font-stretch: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
<div style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: content-box; font-stretch: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
<div style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: content-box; font-stretch: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
<span style="color: #444444; font-family: "open sans" , "arial" , "helvetica" , sans-serif , "simsun" ,;"><span style="line-height: 16.9px;">1: Scalable HD 3D mobile phone magnifying glass, but also with the use of stends lazy, watch movies more casual carry scalable, portable and convenient storage.</span></span></div>
<div style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: content-box; font-stretch: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
<span style="color: #444444; font-family: "open sans" , "arial" , "helvetica" , sans-serif , "simsun" ,;"><span style="line-height: 16.9px;"><br /></span></span></div>
<div style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: content-box; font-stretch: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
<span style="color: #444444; font-family: "open sans" , "arial" , "helvetica" , sans-serif , "simsun" ,;"><span style="line-height: 16.9px;">2: fully enclosed design, full lock light increase screen brightness, effectively prevent the reflective screen.</span></span></div>
<div style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: content-box; font-stretch: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
<span style="color: #444444; font-family: "open sans" , "arial" , "helvetica" , sans-serif , "simsun" ,;"><span style="line-height: 16.9px;"><br /></span></span></div>
<div style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: content-box; font-stretch: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
<span style="color: #444444; font-family: "open sans" , "arial" , "helvetica" , sans-serif , "simsun" ,;"><span style="line-height: 16.9px;">3: The new upgrade HD lens, the picture is clearer.</span></span></div>
<div style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: content-box; font-stretch: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
<span style="color: #444444; font-family: "open sans" , "arial" , "helvetica" , sans-serif , "simsun" ,;"><span style="line-height: 16.9px;"><br /></span></span></div>
<div style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: content-box; font-stretch: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
<span style="color: #444444; font-family: "open sans" , "arial" , "helvetica" , sans-serif , "simsun" ,;"><span style="line-height: 16.9px;">4: Product size: long 18cm wide and 12.5cm.</span></span></div>
<div style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: content-box; font-stretch: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
<span style="color: #444444; font-family: "open sans" , "arial" , "helvetica" , sans-serif , "simsun" ,;"><span style="line-height: 16.9px;"><br /></span></span></div>
<div style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: content-box; font-stretch: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
<span style="color: #444444; font-family: "open sans" , "arial" , "helvetica" , sans-serif , "simsun" ,;"><span style="line-height: 16.9px;">5: 6 inches or less compatible phone or tablet.</span></span></div>
</div>
</div>
</li>
<li class="property-item" data-attr="349906" data-title="No" id="product-prop-200009237" style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; box-sizing: border-box; float: left; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 16px; list-style: none; margin: 0px; padding: 5px 0px; position: relative; vertical-align: baseline; width: 479px;"><div style="border: 0px; box-sizing: content-box; font-stretch: inherit; line-height: 16.9px; margin: 0px; padding: 0px; vertical-align: baseline;">
<span style="color: #444444;"><br /></span></div>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div style="margin-left: 1em; margin-right: 1em; text-align: center;">
<a href="https://ae01.alicdn.com/kf/HTB1pK8jKFXXXXbeXFXXq6xXFXXXO/For-3D-Movie-Video-Portable-Camouflage-Enlarge-3-times-of-Mobile-Phone-Screen-Magnifier-Amplifier-HD.jpg_640x640.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://ae01.alicdn.com/kf/HTB1pK8jKFXXXXbeXFXXq6xXFXXXO/For-3D-Movie-Video-Portable-Camouflage-Enlarge-3-times-of-Mobile-Phone-Screen-Magnifier-Amplifier-HD.jpg_640x640.jpg" width="400" /></a></div>
<div style="margin-left: 1em; margin-right: 1em; text-align: center;">
<span style="color: #999999;">Figure 1 : Front View</span></div>
<div style="margin-left: 1em; margin-right: 1em; text-align: center;">
<span style="color: #999999;"><br /></span></div>
<div style="margin-left: 1em; margin-right: 1em; text-align: center;">
<span style="color: #999999;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimJ8Zw3mfvRtOOEjCYhFmFnu46g5GgytRvNnKIE-LPEgGnVErWHTtWLHu0RPtj3ArgUohvAN5-deBzjN1Gbx6-mPOWpwBH5JWtvPZEGiKG-8a3UyTLgwMDR008Y1i3VeN01RlhoVVBhcc/s1600/Mobile-Phone-Gadget-3D-Screen-Magnifier-Video-Enlarge-Stand-Expander-Stand-Holder-Foldable-Eye-Treasure-Case.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimJ8Zw3mfvRtOOEjCYhFmFnu46g5GgytRvNnKIE-LPEgGnVErWHTtWLHu0RPtj3ArgUohvAN5-deBzjN1Gbx6-mPOWpwBH5JWtvPZEGiKG-8a3UyTLgwMDR008Y1i3VeN01RlhoVVBhcc/s320/Mobile-Phone-Gadget-3D-Screen-Magnifier-Video-Enlarge-Stand-Expander-Stand-Holder-Foldable-Eye-Treasure-Case.jpg" width="314" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="color: #999999;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="color: #999999;">Figure 2 : Side View</span></div>
<div style="margin-left: 1em; margin-right: 1em; text-align: center;">
<span style="color: #999999;"><br /></span></div>
<div>
<div class="" style="clear: both; text-align: center;">
<br /></div>
<div class="" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="" style="clear: both; text-align: center;">
<br /></div>
<div class="" style="clear: both; text-align: center;">
<br /></div>
<br /></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7732057993325617058.post-22757743048723461002016-04-20T15:36:00.001+05:302016-08-08T21:40:01.562+05:30How To Show Badges In Android<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: center;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4y_5xuxnzSYtxYC-jeH_XpVskBUicDcf4QoeI4K6JKVIMcygwYTBm5d4spG0F3n85RIxTGqi9xkS1OsGWTVszfrq_6TCeaD61HwR7wXdgnG6EX8ulV4qEBPIZOBMQKcQ6fqkELKXz_Q0/s1600/d8da1d82-4bde-6d63.jpg" imageanchor="1"><img border="0" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4y_5xuxnzSYtxYC-jeH_XpVskBUicDcf4QoeI4K6JKVIMcygwYTBm5d4spG0F3n85RIxTGqi9xkS1OsGWTVszfrq_6TCeaD61HwR7wXdgnG6EX8ulV4qEBPIZOBMQKcQ6fqkELKXz_Q0/s640/d8da1d82-4bde-6d63.jpg" width="360" /></a></span></h2>
<h2 style="text-align: left;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;">Step1: Download <a href="https://drive.google.com/file/d/0B3yyCbx5ZAj-Y0h4Ny1YWXJrS28/view?usp=sharing">BadgeUtils.java</a></span></h2>
<div>
<h2 style="text-align: left;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;">Step2: Paste it, in your project.</span></h2>
</div>
<div>
<span style="font-family: "trebuchet ms" , sans-serif; font-size: large;"></span><br />
<h2 style="font-family: 'Times New Roman'; font-size: xx-large;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: large;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;">Step3: use it's fuction </span></span></h2>
<span style="font-family: "trebuchet ms" , sans-serif; font-size: large;">
</span>
<div>
<span style="font-family: "trebuchet ms" , sans-serif; font-size: large;"><span style="background-color: white;">////add badge///////</span></span></div>
<span style="font-family: "trebuchet ms" , sans-serif; font-size: large;">
<div>
<span style="background-color: yellow;">BadgeUtils.setBadge(context, count);</span></div>
<div>
<span style="background-color: yellow;"><br /></span></div>
<div>
<span style="background-color: yellow;"><span style="background-color: white;">////remove badge///////</span></span></div>
</span></div>
<div>
<span style="background-color: yellow;">BadgeUtils.clearBadge(context);</span></div>
<div>
<span style="background-color: yellow;"><br /></span></div>
<div>
<span style="background-color: yellow;"><br /></span></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7732057993325617058.post-61364423014475173302016-04-13T19:30:00.005+05:302016-08-03T23:45:22.046+05:30How To Make A Swipe To Delete ListView<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgf6-DM9-vOGtoRx6fmJSsszAgwhGmAHvePFAUDZKlbjubMtr4cuYi3l0cLIlTEFe07zfG_RbCChyphenhyphenm2I9lAP6nRZ317qlXPKqHcwIUzRonDV0GjU0OZcS0fc0xIyuznNnX_lrVhqHgkfRg/s1600/demo.gif" imageanchor="1"><img border="0" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgf6-DM9-vOGtoRx6fmJSsszAgwhGmAHvePFAUDZKlbjubMtr4cuYi3l0cLIlTEFe07zfG_RbCChyphenhyphenm2I9lAP6nRZ317qlXPKqHcwIUzRonDV0GjU0OZcS0fc0xIyuznNnX_lrVhqHgkfRg/s640/demo.gif" width="382" /></a></div>
<div style="text-align: center;">
<br /></div>
<h2 style="text-align: left;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;">Step1: Download <a href="https://drive.google.com/file/d/0B3yyCbx5ZAj-S3JHbFAxcl9td3c/view?usp=sharing">SwipeMenuListView.zip</a></span></h2>
<div>
<h2 style="text-align: left;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;">Step2: Paste it in your Project.</span></h2>
</div>
<div>
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;">Step3: Add in Xml</span></div>
<div>
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;"><br /></span></div>
<br />
<pre style="background: #ffffff; color: black;"><span style="color: #808030;"><</span>android<span style="color: #808030;">.</span>com<span style="color: #808030;">.</span>indianwedding<span style="color: #808030;">.</span>swipemenulistview<span style="color: #808030;">.</span>SwipeMenuListView
<span style="color: #e34adc;"> android:</span>listSelector<span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">@android:color/transparent</span><span style="color: maroon;">"</span>
<span style="color: #e34adc;"> android:</span>id<span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">@+id/order_detail</span><span style="color: maroon;">"</span>
<span style="color: #e34adc;"> android:</span>layout_width<span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">match_parent</span><span style="color: maroon;">"</span>
<span style="color: #e34adc;"> android:</span>layout_height<span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">match_parent</span><span style="color: maroon;">"</span> <span style="color: #808030;">/</span><span style="color: #808030;">></span>
</pre>
<pre style="background: #ffffff; color: black;"><span style="color: #808030;">
</span></pre>
<pre style="background: #ffffff; color: black;"><span style="color: #808030;">
</span></pre>
<pre style="background: #ffffff; color: black;"><span style="color: #808030;"><h2 style="color: black; font-family: 'Times New Roman'; white-space: normal;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;">Step4: Add in your java file</span></h2>
<div>
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;">(add items)</span></div>
<div>
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;">
</span></div>
</span></pre>
<pre style="background: #ffffff; color: black;">SwipeMenuCreator creator = new SwipeMenuCreator() <span style="color: purple;">{</span>
<span style="color: #808030;">@</span>Override
<span style="color: maroon; font-weight: bold;">public</span> <span style="color: #bb7977;">void</span> create<span style="color: #808030;">(</span>SwipeMenu menu<span style="color: #808030;">)</span> <span style="color: purple;">{</span>
<span style="color: dimgrey;">// create "open" item</span>
SwipeMenuItem openItem <span style="color: #808030;">=</span> <span style="color: maroon; font-weight: bold;">new</span> SwipeMenuItem<span style="color: #808030;">(</span>
getApplicationContext<span style="color: #808030;">(</span><span style="color: #808030;">)</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: dimgrey;">// set item background</span>
openItem<span style="color: #808030;">.</span>setBackground<span style="color: #808030;">(</span><span style="color: maroon; font-weight: bold;">new</span> ColorDrawable<span style="color: #808030;">(</span><span style="color: #bb7977; font-weight: bold;">Color</span><span style="color: #808030;">.</span>rgb<span style="color: #808030;">(</span><span style="color: green;">0xC9</span><span style="color: #808030;">,</span> <span style="color: green;">0xC9</span><span style="color: #808030;">,</span>
<span style="color: green;">0xCE</span><span style="color: #808030;">)</span><span style="color: #808030;">)</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: dimgrey;">// set item width</span>
openItem<span style="color: #808030;">.</span>setWidth<span style="color: #808030;">(</span>dp2px<span style="color: #808030;">(</span><span style="color: #008c00;">90</span><span style="color: #808030;">)</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: dimgrey;">// set item title</span>
openItem<span style="color: #808030;">.</span>setTitle<span style="color: #808030;">(</span><span style="color: #0000e6;">"Open"</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: dimgrey;">// set item title fontsize</span>
openItem<span style="color: #808030;">.</span>setTitleSize<span style="color: #808030;">(</span><span style="color: #008c00;">18</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: dimgrey;">// set item title font color</span>
openItem<span style="color: #808030;">.</span>setTitleColor<span style="color: #808030;">(</span><span style="color: #bb7977; font-weight: bold;">Color</span><span style="color: #808030;">.</span>WHITE<span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: dimgrey;">// add to menu</span>
menu<span style="color: #808030;">.</span>addMenuItem<span style="color: #808030;">(</span>openItem<span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: dimgrey;">// create "delete" item</span>
SwipeMenuItem deleteItem <span style="color: #808030;">=</span> <span style="color: maroon; font-weight: bold;">new</span> SwipeMenuItem<span style="color: #808030;">(</span>
getApplicationContext<span style="color: #808030;">(</span><span style="color: #808030;">)</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: dimgrey;">// set item background</span>
deleteItem<span style="color: #808030;">.</span>setBackground<span style="color: #808030;">(</span><span style="color: maroon; font-weight: bold;">new</span> ColorDrawable<span style="color: #808030;">(</span><span style="color: #bb7977; font-weight: bold;">Color</span><span style="color: #808030;">.</span>rgb<span style="color: #808030;">(</span><span style="color: green;">0xF9</span><span style="color: #808030;">,</span>
<span style="color: green;">0x3F</span><span style="color: #808030;">,</span> <span style="color: green;">0x25</span><span style="color: #808030;">)</span><span style="color: #808030;">)</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: dimgrey;">// set item width</span>
deleteItem<span style="color: #808030;">.</span>setWidth<span style="color: #808030;">(</span>dp2px<span style="color: #808030;">(</span><span style="color: #008c00;">90</span><span style="color: #808030;">)</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: dimgrey;">// set a icon</span>
deleteItem<span style="color: #808030;">.</span>setIcon<span style="color: #808030;">(</span>R<span style="color: #808030;">.</span>drawable<span style="color: #808030;">.</span>ic_delete<span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: dimgrey;">// add to menu</span>
menu<span style="color: #808030;">.</span>addMenuItem<span style="color: #808030;">(</span>deleteItem<span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: purple;">}</span>
<span style="color: purple;">}</span><span style="color: #808030;">;</span>
<span style="color: dimgrey;">// set creator</span>
listView.setMenuCreator(creator)<span style="color: #808030;">;</span>
</pre>
<pre style="background: #ffffff; color: black;"><span style="color: #808030;">
</span></pre>
<pre style="background: #ffffff; color: black;"><span style="color: #808030;">
</span></pre>
<pre style="background: #ffffff; color: black;"><span style="color: #808030;"><span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;">(listener item click event)</span></span></pre>
<br />
<pre style="background: #ffffff; color: black;">listView.setOnMenuItemClickListener(new OnMenuItemClickListener() <span style="color: purple;">{</span>
<span style="color: #808030;">@</span>Override
<span style="color: maroon; font-weight: bold;">public</span> <span style="color: #bb7977;">boolean</span> onMenuItemClick<span style="color: #808030;">(</span><span style="color: #bb7977;">int</span> position<span style="color: #808030;">,</span> SwipeMenu menu<span style="color: #808030;">,</span> <span style="color: #bb7977;">int</span> index<span style="color: #808030;">)</span> <span style="color: purple;">{</span>
<span style="color: maroon; font-weight: bold;">switch</span> <span style="color: #808030;">(</span>index<span style="color: #808030;">)</span> <span style="color: purple;">{</span>
<span style="color: maroon; font-weight: bold;">case</span> <span style="color: #008c00;">0</span><span style="color: #808030;">:</span>
<span style="color: dimgrey;">// open</span>
<span style="color: maroon; font-weight: bold;">break</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">case</span> <span style="color: #008c00;">1</span><span style="color: #808030;">:</span>
<span style="color: dimgrey;">// delete</span>
<span style="color: maroon; font-weight: bold;">break</span><span style="color: purple;">;</span>
<span style="color: purple;">}</span>
<span style="color: dimgrey;">// false : close the menu; true : not close the menu</span>
<span style="color: maroon; font-weight: bold;">return</span> <span style="color: maroon; font-weight: bold;">false</span><span style="color: purple;">;</span>
<span style="color: purple;">}</span>
<span style="color: purple;">}</span>)<span style="color: #808030;">;</span>
</pre>
<pre style="background: #ffffff; color: black;"><span style="color: #808030;">
</span></pre>
<pre style="background: #ffffff; color: black;"><span style="color: #808030;"><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: black;"><span style="color: #808030;"><span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;">(Swipe Direction)</span></span></pre>
// Right
mListView.setSwipeDirection(SwipeMenuListView.DIRECTION_RIGHT);
// Left
mListView.setSwipeDirection(SwipeMenuListView.DIRECTION_LEFT);
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: black;"><span style="color: #808030;"><span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;">
</span></span></pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: black;"><span style="color: #808030;"><span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;">(Create Diff. Menu)</span></span></pre>
</span></pre>
<pre style="background: #ffffff; color: black;"><span style="color: #808030;"><ul style="box-sizing: border-box; color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 16px; line-height: 25.6px; margin-bottom: 16px; margin-top: 0px; padding-left: 2em; white-space: normal;">
<li style="box-sizing: border-box;">Use the ViewType of adapter</li>
</ul>
<div class="highlight highlight-source-java" style="box-sizing: border-box; color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 16px; line-height: 25.6px; margin-bottom: 16px; white-space: normal;">
<pre style="background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; overflow: auto; padding: 16px; word-break: normal; word-wrap: normal;"> <span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">class</span> <span class="pl-en" style="box-sizing: border-box; color: #795da3;">AppAdapter</span> <span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">extends</span> <span class="pl-e" style="box-sizing: border-box; color: #795da3;">BaseAdapter</span> {
<span class="pl-c1" style="box-sizing: border-box; color: #0086b3;">...</span>
<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">@Override</span>
<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">public</span> <span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">int</span> <span class="pl-en" style="box-sizing: border-box; color: #795da3;">getViewTypeCount</span>() {
<span class="pl-c" style="box-sizing: border-box; color: #969896;">// menu type count</span>
<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">return</span> <span class="pl-c1" style="box-sizing: border-box; color: #0086b3;">2</span>;
}
<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">@Override</span>
<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">public</span> <span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">int</span> <span class="pl-en" style="box-sizing: border-box; color: #795da3;">getItemViewType</span>(<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">int</span> <span class="pl-v" style="box-sizing: border-box; color: #ed6a43;">position</span>) {
<span class="pl-c" style="box-sizing: border-box; color: #969896;">// current menu type</span>
<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">return</span> type;
}
<span class="pl-c1" style="box-sizing: border-box; color: #0086b3;">...</span>
}</pre>
</div>
<ul style="box-sizing: border-box; color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 16px; line-height: 25.6px; margin-bottom: 16px; margin-top: 0px; padding-left: 2em; white-space: normal;">
<li style="box-sizing: border-box;">Create different menus depending on the view type</li>
</ul>
<div class="highlight highlight-source-java" style="box-sizing: border-box; color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 16px; line-height: 25.6px; margin-bottom: 16px; white-space: normal;">
<pre style="background-color: #f7f7f7; border-radius: 3px; box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 13.6px; font-stretch: normal; line-height: 1.45; overflow: auto; padding: 16px; word-break: normal; word-wrap: normal;"> <span class="pl-smi" style="box-sizing: border-box;">SwipeMenuCreator</span> creator <span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">=</span> <span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">new</span> <span class="pl-smi" style="box-sizing: border-box;">SwipeMenuCreator</span>() {
<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">@Override</span>
<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">public</span> <span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">void</span> <span class="pl-en" style="box-sizing: border-box; color: #795da3;">create</span>(<span class="pl-smi" style="box-sizing: border-box;">SwipeMenu</span> <span class="pl-v" style="box-sizing: border-box; color: #ed6a43;">menu</span>) {
<span class="pl-c" style="box-sizing: border-box; color: #969896;">// Create different menus depending on the view type</span>
<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">switch</span> (menu<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">.</span>getViewType()) {
<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">case</span> <span class="pl-c1" style="box-sizing: border-box; color: #0086b3;">0</span><span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">:</span>
<span class="pl-c" style="box-sizing: border-box; color: #969896;">// create menu of type 0</span>
<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">break</span>;
<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">case</span> <span class="pl-c1" style="box-sizing: border-box; color: #0086b3;">1</span><span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">:</span>
<span class="pl-c" style="box-sizing: border-box; color: #969896;">// create menu of type 1</span>
<span class="pl-k" style="box-sizing: border-box; color: #a71d5d;">break</span>;
<span class="pl-c1" style="box-sizing: border-box; color: #0086b3;">...</span>
}
}
};</pre>
</div>
</span></pre>
<pre style="background: #ffffff; color: black;"></pre>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7732057993325617058.post-45565550841920217002016-04-08T10:36:00.001+05:302016-08-03T23:45:22.035+05:30How To Make Carousal View in Android<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: justify;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiewewgwj5jewIfGwLt8CALTtEnO-XM5O2Jl8EonodVclBLw2GA8Wj848XkV_Na7csXy6OdBODEFThUya2J_zulVzZbgn4-zcU0kmR-GdUmX3a1M1oeG0K-YI8PfE6Ee-rLnFhsL4AqJcs/s1600/ice_screenshot_20160408-103917.png" imageanchor="1"><img border="0" height="232" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiewewgwj5jewIfGwLt8CALTtEnO-XM5O2Jl8EonodVclBLw2GA8Wj848XkV_Na7csXy6OdBODEFThUya2J_zulVzZbgn4-zcU0kmR-GdUmX3a1M1oeG0K-YI8PfE6Ee-rLnFhsL4AqJcs/s640/ice_screenshot_20160408-103917.png" width="640" /></a></span></h2>
<h2 style="text-align: left;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;">Step1: Download <span style="background-color: white; color: purple;"><a href="https://drive.google.com/file/d/0B3yyCbx5ZAj-R2pUWXVsMlNEYWs/view?usp=sharing">Carousal View in Android.zip</a></span></span></h2>
<div>
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;"><span style="background-color: white; color: purple;"><br /></span></span></div>
<div>
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;"><span style="background-color: white; color: purple;"></span></span><br />
<h2 style="font-family: 'times new roman';">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;"><span style="background-color: white;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;">Step2: Gradle compile.</span></span></span></h2>
<div>
<pre style="color: #a9b7c6; font-family: 'courier new';">
</pre>
<pre style="font-family: 'courier new';"><span style="font-family: "trebuchet ms" , sans-serif; font-size: small;"><span style="background-color: white; color: purple;"><span style="font-family: "trebuchet ms" , sans-serif; font-size: xx-small;"><span style="color: #6a8759;"><span style="background-color: white; font-size: medium;"> </span><span style="background-color: yellow; font-size: large;"> </span></span><span style="background-color: yellow; font-size: large;"><span style="color: purple;">compile</span><span style="color: #38761d;"> <span style="color: #6a8759;">'com.android.support:cardview-v7:23.0.</span><span style="color: #6a8759;">1'</span></span></span></span></span></span></pre>
<pre style="color: #a9b7c6; font-family: 'courier new';"><span style="font-family: "trebuchet ms" , sans-serif; font-size: medium;"><span style="background-color: white; color: purple;"><span style="background-color: white; font-family: "trebuchet ms" , sans-serif; font-size: xx-small;"><span style="background-color: white; color: #6a8759;">
</span></span></span></span></pre>
<pre style="color: #a9b7c6; font-family: 'courier new';">
</pre>
<pre style="color: #a9b7c6; font-family: 'courier new';"><span style="font-family: "trebuchet ms" , sans-serif; font-size: large;"><span style="background-color: white; color: purple;"><span style="background-color: white; font-family: "trebuchet ms" , sans-serif; font-size: x-small;">
</span></span></span></pre>
<pre style="color: #a9b7c6; font-family: 'courier new';"><span style="font-family: "trebuchet ms" , sans-serif; font-size: large;"><span style="background-color: white; color: purple;"><span style="background-color: white; font-family: "trebuchet ms" , sans-serif; font-size: x-small;">
</span></span></span></pre>
<pre style="color: #a9b7c6; font-family: 'courier new';"><span style="font-family: "trebuchet ms" , sans-serif; font-size: large;"><span style="background-color: white; color: purple;"><span style="background-color: white; font-family: "trebuchet ms" , sans-serif; font-size: x-small;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKUlSkFkrUbruFbgB0egtvhX3hRl5YawhMgPIdddsRqSfZdhBxKvw1r7ncLv4SLR5tGPt2PJ5FRH5x7CCeOUR1H5IimFR2U2GJGmG2Skg0QrdUwl9x-dpAd_nIVXrIqWFprOxTCaNCTN0/s1600/ice_screenshot_20160408-104940.png" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKUlSkFkrUbruFbgB0egtvhX3hRl5YawhMgPIdddsRqSfZdhBxKvw1r7ncLv4SLR5tGPt2PJ5FRH5x7CCeOUR1H5IimFR2U2GJGmG2Skg0QrdUwl9x-dpAd_nIVXrIqWFprOxTCaNCTN0/s1600/ice_screenshot_20160408-104940.png" /></a></span></span></span></pre>
<pre style="color: #a9b7c6; font-family: 'courier new';"><span style="font-family: "trebuchet ms" , sans-serif; font-size: large;"><span style="background-color: white; color: purple;"><span style="background-color: white; font-family: "trebuchet ms" , sans-serif; font-size: x-small;">
</span></span></span></pre>
<pre style="color: #a9b7c6; font-family: 'courier new';"><span style="font-family: "trebuchet ms" , sans-serif; font-size: large;"><span style="background-color: white; color: purple;"><span style="background-color: white; font-family: "trebuchet ms" , sans-serif; font-size: x-small;">
</span></span></span></pre>
<pre style="font-family: 'courier new';"><span style="font-family: "trebuchet ms" , sans-serif; font-size: large;"><span style="background-color: white; color: purple;"><span style="background-color: white; font-family: "trebuchet ms" , sans-serif; font-size: x-small;"><span style="font-size: x-large; white-space: normal;"><span style="color: #444444;">Step3:</span></span><span style="color: black; font-size: x-large; white-space: normal;"> Paste these files in your project.</span></span></span></span></pre>
<pre style="font-family: 'courier new';"><span style="font-family: "trebuchet ms" , sans-serif; font-size: large;"><span style="background-color: white; color: purple;"><span style="background-color: white; font-family: "trebuchet ms" , sans-serif; font-size: x-small;"><pre style="font-family: 'courier new'; font-size: medium;"><span style="font-family: "trebuchet ms" , sans-serif; font-size: large;"><span style="background-color: white; color: purple;"><span style="font-family: "trebuchet ms" , sans-serif; font-size: x-small;"><span style="font-size: x-large; white-space: normal;"><span style="color: #444444;">Step4:</span></span><span style="color: black; font-size: x-large; white-space: normal;"> Change Packages name.</span></span></span></span></pre>
</span></span></span></pre>
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;"><span style="background-color: white; color: purple;"><span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;">
</span></span></span></div>
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;"><span style="background-color: white; color: purple;">
</span></span></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7732057993325617058.post-9254812839439261852016-03-31T17:11:00.004+05:302017-10-21T01:46:31.153+05:30How To Make TreeView In Android (Expandable List View in Expandable List View)<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://www.youtube.com/watch?v=y7qbug00VGs" target="_blank">
<img border="0" data-original-height="315" data-original-width="560" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNDvWk95g5geWx9CBS1VTPPryXzfWPVz6badH-bsHrB8FPtyojjekT7fqR9IlI0MTLtq9ApP96E7cFRy__fr406jzM7ol_qHNKpY6P1rGl-wIYSMWLox7Ac8zQtq2LZP_Nz1isByO5SNU/s1600/treeview_youtube.png" />
</a>
</div>
<br />
<h2 style="text-align: left;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;"><div style="text-align: center;">
<a href="https://www.blogger.com/blogger.g?blogID=7732057993325617058" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><img src="https://camo.githubusercontent.com/e600e1392139be2db0f466f30c63ecd84af39080/68747470733a2f2f6c68352e67677068742e636f6d2f55743642795f69556e6b4e667a49626150427363386842655165466a5f3255584a685f3174667744646c544171476b6869523732415f417751304c304748334f4661673d683930302d7277" style="-webkit-user-select: none;" /></div>
</span></h2>
<h2 style="text-align: left;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;">Step1: Download <span style="background-color: white; color: purple;"><a href="https://drive.google.com/file/d/0B3yyCbx5ZAj-dGZRME9sM0hXSjg/view?usp=sharing">AndroidTreeView.zip</a></span></span></h2>
<div>
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;"><br /></span></div>
<div>
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;"><br /></span></div>
<h2 style="text-align: left;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqxsTKbLHLURikg4Q7e9MqlJ_xxNummlOWJhXA4Vr9wt-N2HaeDdYuDIbUt-Nc94QY9A8MGaeEqaey9QSUjZuVrQqWWjPg3SrIMX6qvBb4-MB7slYAKvdFizvZf_GFJFSvoTB2yO5zMLw/s1600/ice_screenshot_20160331-164436.png" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqxsTKbLHLURikg4Q7e9MqlJ_xxNummlOWJhXA4Vr9wt-N2HaeDdYuDIbUt-Nc94QY9A8MGaeEqaey9QSUjZuVrQqWWjPg3SrIMX6qvBb4-MB7slYAKvdFizvZf_GFJFSvoTB2yO5zMLw/s1600/ice_screenshot_20160331-164436.png" /></a></span></h2>
<div>
<br /></div>
<div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<h2 style="text-align: left;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;">Step2: Paste "atv,values and MyHolder.java" in your project.</span></h2>
</div>
<div>
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEYV1p5qSc3x74lATcnh-zIdBd9I6tKd4NnVRj5zEpWnfCD5SFikpf1vYxoDY1EG0sadyfLdOKWkjcEtcy6YGBbeX6TNTsRaoGdRsJTEt6pJYsayUTsEGLRQ19sGnVbDnnSGBT9Uq1o_Q/s1600/ice_screenshot_20160331-165013.png" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEYV1p5qSc3x74lATcnh-zIdBd9I6tKd4NnVRj5zEpWnfCD5SFikpf1vYxoDY1EG0sadyfLdOKWkjcEtcy6YGBbeX6TNTsRaoGdRsJTEt6pJYsayUTsEGLRQ19sGnVbDnnSGBT9Uq1o_Q/s1600/ice_screenshot_20160331-165013.png" /></a></span></div>
<hr />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRgTEQne0gwH0V-Kr9u9TxslUR3DsycM7-CRkcn2p7Z4K2IwWXUFhbQnlyHeYrrtdYm4Nn30sG-LoSkhaUDXghY6PG2NNQcCBt-w4ooBw1C1AOvKyx-yURIeWtNqTR9rkaD7gUIPH87Tk/s1600/ice_screenshot_20160331-170922.png" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRgTEQne0gwH0V-Kr9u9TxslUR3DsycM7-CRkcn2p7Z4K2IwWXUFhbQnlyHeYrrtdYm4Nn30sG-LoSkhaUDXghY6PG2NNQcCBt-w4ooBw1C1AOvKyx-yURIeWtNqTR9rkaD7gUIPH87Tk/s1600/ice_screenshot_20160331-170922.png" /></a><br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR4I3kd0Lsazabuqugugohul1h5YTUk0k40KfbmL5fsLTzRF740u8CymGHBhwC2w5xyu_1zjXA9-_RSzyfTK5pI0NJzOweE9TFOg3Ctb9gb1GpliFeArA7iF7bmHRnOITAdMg4pO1GaBo/s1600/ice_screenshot_20160331-172924.png" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR4I3kd0Lsazabuqugugohul1h5YTUk0k40KfbmL5fsLTzRF740u8CymGHBhwC2w5xyu_1zjXA9-_RSzyfTK5pI0NJzOweE9TFOg3Ctb9gb1GpliFeArA7iF7bmHRnOITAdMg4pO1GaBo/s1600/ice_screenshot_20160331-172924.png" /></a><br />
<br />
<h2 style="text-align: left;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;">Step3: Replace Package Name In all "atv" folder files.</span></h2>
<div>
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbaeR6UJdUIyYEHHSpfn0m6K5kwkauIX25u8CyaEJDGe9qEdh9gwntfuwck0CDoU4ixudYHGAZXsPefzVyuKmE8rWjzDYOZJnfqJ1zR0LKpj8IPSgQp0VYyk70nqzLXu_Xk1FFzF9R2CI/s1600/ice_screenshot_20160331-174442.png" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbaeR6UJdUIyYEHHSpfn0m6K5kwkauIX25u8CyaEJDGe9qEdh9gwntfuwck0CDoU4ixudYHGAZXsPefzVyuKmE8rWjzDYOZJnfqJ1zR0LKpj8IPSgQp0VYyk70nqzLXu_Xk1FFzF9R2CI/s1600/ice_screenshot_20160331-174442.png" /></a></span></div>
<div>
<br />
<br />
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;">Step4: Create your tree starting from root element.</span><br />
<a href="https://www.blogger.com/blogger.g?blogID=7732057993325617058" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://www.blogger.com/blogger.g?blogID=7732057993325617058" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"></a></div>
<pre style="background: rgb(255, 255, 255);"><a href="https://www.blogger.com/blogger.g?blogID=7732057993325617058" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a>TreeNode root <span style="color: #808030;">=</span> TreeNode<span style="color: #808030;">.</span>root<span style="color: #808030;">(</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
TreeNode parent <span style="color: #808030;">=</span> new TreeNode<span style="color: #808030;">(</span><span style="color: maroon;">"</span><span style="color: #0000e6;">MyParentNode</span><span style="color: maroon;">"</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
TreeNode child0 <span style="color: #808030;">=</span> new TreeNode<span style="color: #808030;">(</span><span style="color: maroon;">"</span><span style="color: #0000e6;">ChildNode0</span><span style="color: maroon;">"</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
TreeNode child1 <span style="color: #808030;">=</span> new TreeNode<span style="color: #808030;">(</span><span style="color: maroon;">"</span><span style="color: #0000e6;">ChildNode1</span><span style="color: maroon;">"</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
parent<span style="color: #808030;">.</span>addChildren<span style="color: #808030;">(</span>child0<span style="color: #808030;">,</span> child1<span style="color: #808030;">)</span><span style="color: purple;">;</span>
root<span style="color: #808030;">.</span>addChild<span style="color: #808030;">(</span>parent<span style="color: #808030;">)</span><span style="color: purple;">;</span></pre>
</div>
<div>
<br />
<br />
<div style="text-align: left;">
<span style="background-color: white; font-family: "helvetica" , "arial" , "freesans" , "clean" , sans-serif; line-height: 24px;"><span style="font-size: x-large;">(Add tree view to layout)</span></span></div>
<div style="text-align: left;">
<span style="background-color: white; font-family: "helvetica" , "arial" , "freesans" , "clean" , sans-serif; line-height: 24px;"><span style="font-size: x-large;"><br /></span></span></div>
</div>
<pre style="background: #ffffff; color: black;">AndroidTreeView tView <span style="color: #808030;">=</span> new AndroidTreeView<span style="color: #808030;">(</span>getActivity<span style="color: #808030;">(</span><span style="color: #808030;">)</span><span style="color: #808030;">,</span> root<span style="color: #808030;">)</span><span style="color: purple;">;</span>
containerView<span style="color: #808030;">.</span>addView<span style="color: #808030;">(</span>tView<span style="color: #808030;">.</span>getView<span style="color: #808030;">(</span><span style="color: #808030;">)</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
</pre>
<pre style="background: #ffffff; color: black;"><span style="color: purple;">
</span></pre>
<pre style="background: #ffffff; color: black;"><span style="color: purple;">
</span></pre>
<pre style="background: #ffffff; color: black;"><span style="color: purple;">
</span></pre>
<pre style="background: rgb(255, 255, 255);"><span style="color: purple;"><span style="background-color: transparent; font-family: "trebuchet ms" , sans-serif; font-size: x-large;">Step5: Custom View for nodes</span></span></pre>
<pre style="background: rgb(255, 255, 255);"><span style="color: purple;"><span style="background-color: transparent; font-family: "trebuchet ms" , sans-serif; font-size: x-large;">MyHolder.java</span></span></pre>
<pre style="background: rgb(255, 255, 255);"><span style="color: purple;"><div class="separator" style="clear: both; color: purple; text-align: center;">
<a href="https://www.blogger.com/blogger.g?blogID=7732057993325617058" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"></a></div>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="color: maroon; font-weight: bold;">package</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">com</span><span style="color: #808030;">.</span><span style="color: #004a43;">treeview</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">com</span><span style="color: #808030;">.</span><span style="color: #004a43;">treeview</span><span style="color: #808030;">.</span><span style="color: #004a43;">atv</span><span style="color: #808030;">.</span><span style="color: #004a43;">model</span><span style="color: #808030;">.</span><span style="color: #004a43;">TreeNode</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">content</span><span style="color: #808030;">.</span><span style="color: #004a43;">Context</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">view</span><span style="color: #808030;">.</span><span style="color: #004a43;">LayoutInflater</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">view</span><span style="color: #808030;">.</span><span style="color: #004a43;">View</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">widget</span><span style="color: #808030;">.</span><span style="color: #004a43;">ImageView</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">widget</span><span style="color: #808030;">.</span><span style="color: #004a43;">TextView</span><span style="color: purple;">;</span>
<span style="color: #3f5fbf;">/**</span>
<span style="color: #3f5fbf;"> </span><span style="color: #7f9fbf; font-weight: bold;">*</span><span style="color: #3f5fbf;"> Created by admin on </span><span style="color: #008c00;">31</span><span style="color: #7f9fbf; font-weight: bold;">-</span><span style="color: #008c00;">03</span><span style="color: #7f9fbf; font-weight: bold;">-</span><span style="color: #008c00;">2016</span><span style="color: #3f5fbf;">.</span>
<span style="color: #3f5fbf;"> */</span>
<span style="color: maroon; font-weight: bold;">public</span> <span style="color: maroon; font-weight: bold;">class</span> MyHolder <span style="color: maroon; font-weight: bold;">extends</span> TreeNode.BaseNodeViewHolder<MyHolder.IconTreeItem> <span style="color: purple;">{</span>
ImageView img<span style="color: purple;">;</span>
TextView tvValue<span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">public</span> MyHolder<span style="color: #808030;">(</span>Context context<span style="color: #808030;">)</span> <span style="color: purple;">{</span>
<span style="color: maroon; font-weight: bold;">super</span><span style="color: #808030;">(</span>context<span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: purple;">}</span>
<span style="color: #808030;">@</span>Override
<span style="color: maroon; font-weight: bold;">public</span> View createNodeView<span style="color: #808030;">(</span>TreeNode node<span style="color: #808030;">,</span> IconTreeItem value<span style="color: #808030;">)</span> <span style="color: purple;">{</span>
<span style="color: maroon; font-weight: bold;">final</span> LayoutInflater inflater <span style="color: #808030;">=</span> LayoutInflater<span style="color: #808030;">.</span>from<span style="color: #808030;">(</span>context<span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">final</span> View view <span style="color: #808030;">=</span> inflater<span style="color: #808030;">.</span>inflate<span style="color: #808030;">(</span>R<span style="color: #808030;">.</span>layout<span style="color: #808030;">.</span>child<span style="color: dimgrey;">/*your layout here*/</span><span style="color: #808030;">,</span> <span style="color: maroon; font-weight: bold;">null</span><span style="color: #808030;">,</span> <span style="color: maroon; font-weight: bold;">false</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
img <span style="color: #808030;">=</span> <span style="color: #808030;">(</span>ImageView<span style="color: #808030;">)</span> view<span style="color: #808030;">.</span>findViewById<span style="color: #808030;">(</span>R<span style="color: #808030;">.</span>id<span style="color: #808030;">.</span>image<span style="color: #808030;">)</span><span style="color: purple;">;</span>
tvValue <span style="color: #808030;">=</span> <span style="color: #808030;">(</span>TextView<span style="color: #808030;">)</span> view<span style="color: #808030;">.</span>findViewById<span style="color: #808030;">(</span>R<span style="color: #808030;">.</span>id<span style="color: #808030;">.</span>text<span style="color: #808030;">)</span><span style="color: purple;">;</span>
img<span style="color: #808030;">.</span>setImageResource<span style="color: #808030;">(</span>value<span style="color: #808030;">.</span>icon<span style="color: #808030;">)</span><span style="color: purple;">;</span>
tvValue<span style="color: #808030;">.</span>setText<span style="color: #808030;">(</span>value<span style="color: #808030;">.</span>text<span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">return</span> view<span style="color: purple;">;</span>
<span style="color: purple;">}</span>
<span style="color: dimgrey;">//for toggle image on click////</span>
<span style="color: maroon; font-weight: bold;">public</span> <span style="color: #bb7977;">void</span> toggle<span style="color: #808030;">(</span><span style="color: #bb7977;">boolean</span> active<span style="color: #808030;">)</span> <span style="color: purple;">{</span>
img<span style="color: #808030;">.</span>setImageResource<span style="color: #808030;">(</span>active <span style="color: #808030;">?</span> R<span style="color: #808030;">.</span>drawable<span style="color: #808030;">.</span>add_wishlist <span style="color: #808030;">:</span> R<span style="color: #808030;">.</span>drawable<span style="color: #808030;">.</span>inquire_now<span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: purple;">}</span>
<span style="color: maroon; font-weight: bold;">public</span> <span style="color: maroon; font-weight: bold;">static</span> <span style="color: maroon; font-weight: bold;">class</span> IconTreeItem <span style="color: purple;">{</span>
<span style="color: maroon; font-weight: bold;">public</span> <span style="color: #bb7977;">int</span> icon<span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">public</span> <span style="color: #bb7977; font-weight: bold;">String</span> text<span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">public</span> IconTreeItem<span style="color: #808030;">(</span><span style="color: #bb7977;">int</span> icon<span style="color: #808030;">,</span> <span style="color: #bb7977; font-weight: bold;">String</span> text<span style="color: #808030;">)</span> <span style="color: purple;">{</span>
<span style="color: maroon; font-weight: bold;">this</span><span style="color: #808030;">.</span>icon <span style="color: #808030;">=</span> icon<span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">this</span><span style="color: #808030;">.</span>text <span style="color: #808030;">=</span> text<span style="color: purple;">;</span>
<span style="color: purple;">}</span>
<span style="color: purple;">}</span>
<span style="color: purple;">}</span></pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="color: purple;">
</span></pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="color: purple;">
</span></pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="color: purple;"><span style="background-color: transparent; font-family: "trebuchet ms" , sans-serif; font-size: x-large;">Step6: Connect View Holder with node.</span></span></pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="color: purple;"><span style="background-color: transparent; font-family: "trebuchet ms" , sans-serif; font-size: x-large;">
</span></span></pre>
</pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;">IconTreeItem nodeItem = new IconTreeItem()<span style="color: #808030;">;</span>
TreeNode child1 = new TreeNode(nodeItem).setViewHolder(new MyHolder(mContext))<span style="color: #808030;">;</span></pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="color: #808030;">
</span></pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="color: #808030;">
</span></pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="color: #808030;">
</span></pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="background-color: transparent; font-family: "trebuchet ms" , sans-serif; font-size: x-large;">Step6: onClick Working</span></pre>
</pre>
<span style="color: purple;">
</span></span></pre>
<pre style="background: rgb(255, 255, 255);">TreeNode.setClickListener(new TreeNodeClickListener() <span style="color: purple;">{</span></pre>
<pre style="background: rgb(255, 255, 255);"><span style="color: purple;"><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"> <a href="https://www.blogger.com/blogger.g?blogID=7732057993325617058" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><span style="color: #808030;">@</span>Override
<span style="color: maroon; font-weight: bold;">public</span> <span style="color: #bb7977;">void</span> onClick<span style="color: #808030;">(</span>TreeNode node<span style="color: #808030;">,</span> <span style="color: #bb7977; font-weight: bold;">Object</span> value<span style="color: #808030;">)</span> <span style="color: purple;">{</span>
<span style="color: dimgrey;">//Your Code Here//</span>
<span style="color: purple;">}</span>
<span style="color: purple;">}</span>)<span style="color: #808030;">;</span></pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="color: #808030;">
</span></pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="color: #808030;">(Other fuctions)</span></pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><a href="https://www.blogger.com/blogger.g?blogID=7732057993325617058" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a>AndroidTreeView.setDefaultViewHolder
AndroidTreeView.setDefaultNodeClickListener</pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"></pre>
</pre>
</span></pre>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7732057993325617058.post-46663052744917109742016-03-29T17:39:00.003+05:302016-08-03T23:45:22.037+05:30How To Use Fragments In ViewPager In Android<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoYPVmwOyYSciW9OBfJBd8UZV4lBP3Zcu2faOTrvM1hCkZp6HD5F9lhej-F05gVl7_r26QfsJhEETqccZ144983gNfvhflsToNchT2MGIJ57WSlPndoZTTjThGt_jdCR_MGn-QASmsaDs/s1600/fragments.gif" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoYPVmwOyYSciW9OBfJBd8UZV4lBP3Zcu2faOTrvM1hCkZp6HD5F9lhej-F05gVl7_r26QfsJhEETqccZ144983gNfvhflsToNchT2MGIJ57WSlPndoZTTjThGt_jdCR_MGn-QASmsaDs/s1600/fragments.gif" /></a></div>
<h2 style="text-align: left;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;">Step1: ViewPager Tag in XML</span></h2>
<pre style="background: #ffffff; color: black;"><span style="color: #808030;"><</span>android<span style="color: #808030;">.</span>support<span style="color: #808030;">.</span>v4<span style="color: #808030;">.</span>view<span style="color: #808030;">.</span>ViewPager
<span style="color: #e34adc;"> android:</span>id<span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">@+id/view_pager</span><span style="color: maroon;">"</span>
<span style="color: #e34adc;"> android:</span>layout_width<span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">match_parent</span><span style="color: maroon;">"</span>
<span style="color: #e34adc;"> android:</span>layout_height<span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">match_parent</span><span style="color: maroon;">"</span><span style="color: #808030;">/</span><span style="color: #808030;">></span>
</pre>
<pre style="background: #ffffff; color: black;"><span style="color: #808030;">
</span></pre>
<pre style="background: #ffffff; color: black;"><span style="color: #808030;">
</span></pre>
<pre style="background: rgb(255, 255, 255); text-align: left;"><span style="color: #808030;"><div style="font-family: 'times new roman'; text-align: left; white-space: normal;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: large;"><span style="color: black; font-size: x-large;">Step2: Make Fragment</span><span style="font-size: large;"> <span style="color: #444444;">(</span></span></span><span style="color: #444444; font-family: "trebuchet ms" , sans-serif; font-size: large;">Fragment1.java)</span></div>
<span style="color: #808030;">
</span></span></pre>
<pre style="background: #ffffff; color: black;"><span style="color: maroon; font-weight: bold;">package</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">com</span><span style="color: #808030;">.</span><span style="color: #004a43;">myapplication</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">os</span><span style="color: #808030;">.</span><span style="color: #004a43;">Bundle</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">support</span><span style="color: #808030;">.</span><span style="color: #004a43;">annotation</span><span style="color: #808030;">.</span><span style="color: #004a43;">Nullable</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">support</span><span style="color: #808030;">.</span><span style="color: #004a43;">v4</span><span style="color: #808030;">.</span><span style="color: #004a43;">app</span><span style="color: #808030;">.</span><span style="color: #004a43;">Fragment</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">view</span><span style="color: #808030;">.</span><span style="color: #004a43;">LayoutInflater</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">view</span><span style="color: #808030;">.</span><span style="color: #004a43;">View</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">view</span><span style="color: #808030;">.</span><span style="color: #004a43;">ViewGroup</span><span style="color: purple;">;</span>
<span style="color: #3f5fbf;">/**</span>
<span style="color: #3f5fbf;"> </span><span style="color: #7f9fbf; font-weight: bold;">*</span><span style="color: #3f5fbf;"> Created by admin on </span><span style="color: #008c00;">29</span><span style="color: #7f9fbf; font-weight: bold;">-</span><span style="color: #008c00;">03</span><span style="color: #7f9fbf; font-weight: bold;">-</span><span style="color: #008c00;">2016</span><span style="color: #3f5fbf;">.</span>
<span style="color: #3f5fbf;"> */</span>
<span style="color: maroon; font-weight: bold;">public</span> <span style="color: maroon; font-weight: bold;">class</span> Fragment1 <span style="color: maroon; font-weight: bold;">extends</span> Fragment <span style="color: purple;">{</span>
<span style="color: #808030;">@</span>Nullable
<span style="color: #808030;">@</span>Override
<span style="color: maroon; font-weight: bold;">public</span> View onCreateView<span style="color: #808030;">(</span>LayoutInflater inflater<span style="color: #808030;">,</span> ViewGroup container<span style="color: #808030;">,</span> Bundle savedInstanceState<span style="color: #808030;">)</span> <span style="color: purple;">{</span>
ViewGroup rootView<span style="color: #808030;">=</span> <span style="color: #808030;">(</span>ViewGroup<span style="color: #808030;">)</span> inflater<span style="color: #808030;">.</span>inflate<span style="color: #808030;">(</span>R<span style="color: #808030;">.</span>layout<span style="color: #808030;">.</span>fragment1<span style="color: #808030;">,</span>container<span style="color: #808030;">,</span><span style="color: maroon; font-weight: bold;">false</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">return</span> rootView<span style="color: purple;">;</span>
<span style="color: purple;">}</span>
<span style="color: purple;">}</span>
</pre>
<pre style="background: #ffffff; color: black;"><span style="color: purple;">
</span></pre>
<pre style="background: #ffffff; color: black;"><span style="color: black; font-family: "trebuchet ms" , sans-serif; font-size: large; white-space: normal;"><span style="font-size: x-large;">Step3: Make xml</span><span style="font-size: large;"> <span style="color: #444444;">(f</span></span></span><span style="color: #444444; font-family: "trebuchet ms" , sans-serif; font-size: large; white-space: normal;">ragment1.xml)</span></pre>
<pre style="background: #ffffff; color: black;"><span style="color: purple;"><span style="color: #444444; font-family: "trebuchet ms" , sans-serif; font-size: large; white-space: normal;">
</span></span></pre>
<pre style="background: #ffffff; color: black;"><span style="color: purple;"><span style="color: #444444; font-family: "trebuchet ms" , sans-serif; font-size: large; white-space: normal;">
</span></span></pre>
<pre style="background: #ffffff; color: black;"><span style="color: #004a43;"><?</span><span style="color: maroon; font-weight: bold;">xml</span><span style="color: #004a43;"> </span><span style="color: #074726;">version</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #7d0045;">1.0</span><span style="color: maroon;">"</span><span style="color: #004a43;"> </span><span style="color: #074726;">encoding</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">utf-8</span><span style="color: maroon;">"</span><span style="color: #004a43;">?></span>
<span style="color: #a65700;"><</span><span style="color: #5f5035;">LinearLayout</span> <span style="color: #666616;">xmlns</span><span style="color: purple;">:</span><span style="color: #074726;">android</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #666616;">http</span><span style="color: purple;">:</span><span style="color: maroon; font-weight: bold;">//</span><span style="color: #5555dd;">schemas.android.com</span><span style="color: #40015a;">/apk/res/android</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">orientation</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">vertical</span><span style="color: maroon;">"</span> <span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">layout_width</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">match_parent</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">layout_height</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">match_parent</span><span style="color: maroon;">"</span><span style="color: #a65700;">></span>
<span style="color: #a65700;"><</span><span style="color: #5f5035;">TextView</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">layout_width</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">match_parent</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">layout_height</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">wrap_content</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">text</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">Fragment 1</span><span style="color: maroon;">"</span><span style="color: #a65700;">/></span>
<span style="color: #a65700;"></</span><span style="color: #5f5035;">LinearLayout</span><span style="color: #a65700;">></span>
</pre>
<pre style="background: #ffffff; color: black;"><span style="color: #a65700;">
</span></pre>
<pre style="background: #ffffff; color: black;"><span style="color: #a65700;">
</span></pre>
<pre style="background: rgb(255, 255, 255);"><span style="color: #a65700;"><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: black;"><span style="color: purple;"><span style="font-family: "trebuchet ms" , sans-serif; white-space: normal;"><span style="color: #666666; font-size: large;">(Make 2 More Fragments same as above)</span></span></span></pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: black;"><span style="color: purple;"><span style="color: black; font-family: "trebuchet ms" , sans-serif; font-size: large; white-space: normal;"><span style="font-size: x-large;">
</span></span></span></pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: black;"><span style="color: purple;"><span style="color: black; font-family: "trebuchet ms" , sans-serif; font-size: large; white-space: normal;"><span style="font-size: x-large;"><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="color: purple;"><span style="color: black; font-family: "trebuchet ms" , sans-serif; font-size: large; white-space: normal;"><span style="font-size: x-large;">Step3: Make PageAdapter</span></span></span></pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="color: purple;"><span style="color: black; font-family: "trebuchet ms" , sans-serif; font-size: large; white-space: normal;"><span style="font-size: x-large;"><span style="color: black; font-family: "trebuchet ms" , sans-serif; font-size: large; white-space: normal;"><span style="font-size: large;"><span style="color: #444444;">(PageAdapter.java</span></span></span><span style="color: #444444; font-family: "trebuchet ms" , sans-serif; font-size: large; white-space: normal;">)</span></span></span></span></pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="color: purple;"><span style="color: black; font-family: "trebuchet ms" , sans-serif; font-size: large; white-space: normal;"><span style="font-size: x-large;"><span style="color: #444444; font-family: "trebuchet ms" , sans-serif; font-size: large; white-space: normal;">
</span></span></span></span></pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="color: purple;"><span style="color: black; font-family: "trebuchet ms" , sans-serif; font-size: large; white-space: normal;"><span style="font-size: x-large;"><span style="color: #444444; font-family: "trebuchet ms" , sans-serif; font-size: large; white-space: normal;">
</span></span></span></span></pre>
</span></span></span></pre>
</span></pre>
<pre style="background: #ffffff; color: black;"><span style="color: maroon; font-weight: bold;">package</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">com</span><span style="color: #808030;">.</span><span style="color: #004a43;">myapplication</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">support</span><span style="color: #808030;">.</span><span style="color: #004a43;">v4</span><span style="color: #808030;">.</span><span style="color: #004a43;">app</span><span style="color: #808030;">.</span><span style="color: #004a43;">Fragment</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">support</span><span style="color: #808030;">.</span><span style="color: #004a43;">v4</span><span style="color: #808030;">.</span><span style="color: #004a43;">app</span><span style="color: #808030;">.</span><span style="color: #004a43;">FragmentManager</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">support</span><span style="color: #808030;">.</span><span style="color: #004a43;">v4</span><span style="color: #808030;">.</span><span style="color: #004a43;">app</span><span style="color: #808030;">.</span><span style="color: #004a43;">FragmentPagerAdapter</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> java</span><span style="color: #808030;">.</span><span style="color: #004a43;">util</span><span style="color: #808030;">.</span><span style="color: #004a43;">List</span><span style="color: purple;">;</span>
<span style="color: #3f5fbf;">/**</span>
<span style="color: #3f5fbf;"> </span><span style="color: #7f9fbf; font-weight: bold;">*</span><span style="color: #3f5fbf;"> Created by admin on </span><span style="color: #008c00;">29</span><span style="color: #7f9fbf; font-weight: bold;">-</span><span style="color: #008c00;">03</span><span style="color: #7f9fbf; font-weight: bold;">-</span><span style="color: #008c00;">2016</span><span style="color: #3f5fbf;">.</span>
<span style="color: #3f5fbf;"> */</span>
<span style="color: maroon; font-weight: bold;">public</span> <span style="color: maroon; font-weight: bold;">class</span> PageAdapter <span style="color: maroon; font-weight: bold;">extends</span> FragmentPagerAdapter <span style="color: purple;">{</span>
<span style="color: #bb7977; font-weight: bold;">List</span><span style="color: #808030;"><</span>Fragment<span style="color: #808030;">></span> fragments<span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">public</span> PageAdapter<span style="color: #808030;">(</span>FragmentManager fm<span style="color: #808030;">,</span><span style="color: #bb7977; font-weight: bold;">List</span><span style="color: #808030;"><</span>Fragment<span style="color: #808030;">></span> fragments<span style="color: #808030;">)</span>
<span style="color: purple;">{</span>
<span style="color: maroon; font-weight: bold;">super</span><span style="color: #808030;">(</span>fm<span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">this</span><span style="color: #808030;">.</span>fragments<span style="color: #808030;">=</span>fragments<span style="color: purple;">;</span>
<span style="color: purple;">}</span>
<span style="color: #808030;">@</span>Override
<span style="color: maroon; font-weight: bold;">public</span> Fragment getItem<span style="color: #808030;">(</span><span style="color: #bb7977;">int</span> position<span style="color: #808030;">)</span> <span style="color: purple;">{</span>
<span style="color: maroon; font-weight: bold;">return</span> <span style="color: maroon; font-weight: bold;">this</span><span style="color: #808030;">.</span>fragments<span style="color: #808030;">.</span>get<span style="color: #808030;">(</span>position<span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: purple;">}</span>
<span style="color: #808030;">@</span>Override
<span style="color: maroon; font-weight: bold;">public</span> <span style="color: #bb7977;">int</span> getCount<span style="color: #808030;">(</span><span style="color: #808030;">)</span> <span style="color: purple;">{</span>
<span style="color: maroon; font-weight: bold;">return</span> <span style="color: maroon; font-weight: bold;">this</span><span style="color: #808030;">.</span>fragments<span style="color: #808030;">.</span>size<span style="color: #808030;">(</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: purple;">}</span>
<span style="color: purple;">}</span>
</pre>
<pre style="background: #ffffff; color: black;"><span style="color: purple;"><h2 style="color: black; font-family: 'Times New Roman'; white-space: normal;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;">Step4: MainActivity.java</span></h2>
<div>
</div>
</span></pre>
<pre style="background: #ffffff; color: black;"><span style="color: maroon; font-weight: bold;">package</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">com</span><span style="color: #808030;">.</span><span style="color: #004a43;">myapplication</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">support</span><span style="color: #808030;">.</span><span style="color: #004a43;">v4</span><span style="color: #808030;">.</span><span style="color: #004a43;">app</span><span style="color: #808030;">.</span><span style="color: #004a43;">Fragment</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">support</span><span style="color: #808030;">.</span><span style="color: #004a43;">v4</span><span style="color: #808030;">.</span><span style="color: #004a43;">view</span><span style="color: #808030;">.</span><span style="color: #004a43;">ViewPager</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">support</span><span style="color: #808030;">.</span><span style="color: #004a43;">v7</span><span style="color: #808030;">.</span><span style="color: #004a43;">app</span><span style="color: #808030;">.</span><span style="color: #004a43;">AppCompatActivity</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">os</span><span style="color: #808030;">.</span><span style="color: #004a43;">Bundle</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> android</span><span style="color: #808030;">.</span><span style="color: #004a43;">view</span><span style="color: #808030;">.</span><span style="color: #004a43;">ViewParent</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> java</span><span style="color: #808030;">.</span><span style="color: #004a43;">util</span><span style="color: #808030;">.</span><span style="color: #004a43;">ArrayList</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">import</span><span style="color: #004a43;"> java</span><span style="color: #808030;">.</span><span style="color: #004a43;">util</span><span style="color: #808030;">.</span><span style="color: #004a43;">List</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">public</span> <span style="color: maroon; font-weight: bold;">class</span> MainActivity <span style="color: maroon; font-weight: bold;">extends</span> AppCompatActivity <span style="color: purple;">{</span>
<span style="color: #808030;">@</span>Override
<span style="color: maroon; font-weight: bold;">protected</span> <span style="color: #bb7977;">void</span> onCreate<span style="color: #808030;">(</span>Bundle savedInstanceState<span style="color: #808030;">)</span> <span style="color: purple;">{</span>
<span style="color: maroon; font-weight: bold;">super</span><span style="color: #808030;">.</span>onCreate<span style="color: #808030;">(</span>savedInstanceState<span style="color: #808030;">)</span><span style="color: purple;">;</span>
setContentView<span style="color: #808030;">(</span>R<span style="color: #808030;">.</span>layout<span style="color: #808030;">.</span>activity_main<span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: #bb7977; font-weight: bold;">List</span><span style="color: #808030;"><</span>Fragment<span style="color: #808030;">></span> fragments<span style="color: #808030;">=</span><span style="color: maroon; font-weight: bold;">new</span> ArrayList<span style="color: #808030;"><</span><span style="color: #808030;">></span><span style="color: #808030;">(</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
fragments<span style="color: #808030;">.</span>add<span style="color: #808030;">(</span><span style="color: maroon; font-weight: bold;">new</span> Fragment1<span style="color: #808030;">(</span><span style="color: #808030;">)</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
fragments<span style="color: #808030;">.</span>add<span style="color: #808030;">(</span><span style="color: maroon; font-weight: bold;">new</span> Fragment2<span style="color: #808030;">(</span><span style="color: #808030;">)</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
fragments<span style="color: #808030;">.</span>add<span style="color: #808030;">(</span><span style="color: maroon; font-weight: bold;">new</span> Fragment3<span style="color: #808030;">(</span><span style="color: #808030;">)</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
PageAdapter pageAdapter<span style="color: #808030;">=</span><span style="color: maroon; font-weight: bold;">new</span> PageAdapter<span style="color: #808030;">(</span>getSupportFragmentManager<span style="color: #808030;">(</span><span style="color: #808030;">)</span><span style="color: #808030;">,</span>fragments<span style="color: #808030;">)</span><span style="color: purple;">;</span>
ViewPager viewPager<span style="color: #808030;">=</span> <span style="color: #808030;">(</span>ViewPager<span style="color: #808030;">)</span> findViewById<span style="color: #808030;">(</span>R<span style="color: #808030;">.</span>id<span style="color: #808030;">.</span>view_pager<span style="color: #808030;">)</span><span style="color: purple;">;</span>
viewPager<span style="color: #808030;">.</span>setAdapter<span style="color: #808030;">(</span>pageAdapter<span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: purple;">}</span>
<span style="color: purple;">}</span>
</pre>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7732057993325617058.post-88797125641461681622016-03-28T19:29:00.004+05:302016-08-03T23:45:22.053+05:30How To Make StaggeredGridView In Android <div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbF0WVLvc1OOT5VriFvmqUZldY9E2veeoD5pzs8CyQc4qY_1UmuSlgRAE_WyBnIhQtV422JsAxorpLq23BmvYGTX4IXJLeYQgUVh06EajLBlmTcrO7L3-tSqRD4QZXn5N236l2_UyFj1E/s1600/image.png" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbF0WVLvc1OOT5VriFvmqUZldY9E2veeoD5pzs8CyQc4qY_1UmuSlgRAE_WyBnIhQtV422JsAxorpLq23BmvYGTX4IXJLeYQgUVh06EajLBlmTcrO7L3-tSqRD4QZXn5N236l2_UyFj1E/s1600/image.png" /></a></div>
<div style="text-align: center;">
<br /></div>
<h2 style="text-align: left;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;">Step1: Compile in Gradle</span></h2>
<pre style="background: #ffffff; color: black;">dependencies <span style="color: purple;">{</span>
compile <span style="background: #dd0000; color: white; font-style: italic; font-weight: bold;">'com.etsy.android.grid:library:1.0.5'</span>
<span style="color: purple;">}</span>
</pre>
<pre style="background: #ffffff; color: black;"><span style="color: purple;">
</span></pre>
<pre style="background: #ffffff; color: black;"><span style="color: purple;"><h2 style="color: black; font-family: 'Times New Roman'; white-space: normal;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;">Step2: Add the StaggeredGridView to your Layout</span></h2>
</span></pre>
<pre style="background: #ffffff; color: black;"><span style="color: #a65700;"><</span><span style="color: #5f5035;">com.etsy.android.grid.StaggeredGridView</span>
<span style="color: #666616;">xmlns</span><span style="color: purple;">:</span><span style="color: #074726;">android</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #666616;">http</span><span style="color: purple;">:</span><span style="color: maroon; font-weight: bold;">//</span><span style="color: #5555dd;">schemas.android.com</span><span style="color: #40015a;">/apk/res/android</span><span style="color: maroon;">"</span>
<span style="color: #666616;">xmlns</span><span style="color: purple;">:</span><span style="color: #074726;">app</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #666616;">http</span><span style="color: purple;">:</span><span style="color: maroon; font-weight: bold;">//</span><span style="color: #5555dd;">schemas.android.com</span><span style="color: #40015a;">/apk/res-auto</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">id</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">@+id/grid_view</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">layout_width</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">match_parent</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">layout_height</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">match_parent</span><span style="color: maroon;">"</span>
<span style="color: #007997;">app</span><span style="color: purple;">:</span><span style="color: #274796;">item_margin</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">8dp</span><span style="color: maroon;">"</span>
<span style="color: #007997;">app</span><span style="color: purple;">:</span><span style="color: #274796;">column_count</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">@integer/column_count</span><span style="color: maroon;">"</span> <span style="color: #a65700;">/></span>
</pre>
<pre style="background: #ffffff; color: black;"><span style="color: #a65700;">
</span></pre>
<pre style="background: #ffffff; color: black;"><span style="color: #a65700;"><h2 style="color: black; font-family: 'Times New Roman'; white-space: normal;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;">Step3: Setup an adapter</span></h2>
</span></pre>
<pre style="background: #ffffff; color: black;">ListAdapter adapter <span style="color: #808030;">=</span> <span style="color: #808030;">.</span><span style="color: #808030;">.</span><span style="color: #808030;">.</span><span style="color: purple;">;</span>
StaggeredGridView gridView <span style="color: #808030;">=</span> <span style="color: #808030;">(</span>StaggeredGridView<span style="color: #808030;">)</span> findViewById<span style="color: #808030;">(</span>R<span style="color: #808030;">.</span>id<span style="color: #808030;">.</span>grid_view<span style="color: #808030;">)</span><span style="color: purple;">;</span>
gridView<span style="color: #808030;">.</span>setAdapter<span style="color: #808030;">(</span>adapter<span style="color: #808030;">)</span><span style="color: purple;">;</span>
</pre>
<pre style="background: #ffffff; color: black;"><span style="color: purple;">
</span></pre>
<pre style="background: #ffffff; color: black;"><span style="color: purple;"><h2 style="color: black; font-family: 'Times New Roman'; white-space: normal;">
</h2>
</span></pre>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7732057993325617058.post-54569110455500495882016-03-25T19:10:00.000+05:302016-08-03T23:45:22.040+05:30How To Generate QR Code In Android<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;">Step1: Download <a href="https://drive.google.com/file/d/0B3yyCbx5ZAj-ZkVTZldKUFhhNjA/view?usp=sharing">zxing-core-2.0.jar</a></span></h2>
<div style="text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7SaCWcmN_jvF3u74g73Cqv4NLAXgbq8xgwxNQp0do33hwnNsbrcuCNNNxchAZd97D6YSDVRmYomhHUafH5oJdhfrOrdkDpyGYWktpLHrZGSpBJEEZSQD5OapxQwW4_41VDQVmbqtdEYQ/s1600/ice_screenshot_20160325-191200.png" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7SaCWcmN_jvF3u74g73Cqv4NLAXgbq8xgwxNQp0do33hwnNsbrcuCNNNxchAZd97D6YSDVRmYomhHUafH5oJdhfrOrdkDpyGYWktpLHrZGSpBJEEZSQD5OapxQwW4_41VDQVmbqtdEYQ/s1600/ice_screenshot_20160325-191200.png" /></a></div>
<div style="text-align: center;">
(paste it in lib folder)</div>
<h2 style="text-align: left;">
<span style="font-family: "trebuchet ms" , sans-serif; font-size: x-large;">Step2: Add following lines</span></h2>
<pre style="background: #ffffff; color: black;">ImageView imageView <span style="color: #808030;">=</span> <span style="color: #808030;">(</span>ImageView<span style="color: #808030;">)</span> findViewById<span style="color: #808030;">(</span>R<span style="color: #808030;">.</span>id<span style="color: #808030;">.</span>qrcode<span style="color: #808030;">)</span><span style="color: purple;">;</span>
try <span style="color: purple;">{</span>
Bitmap bitmap <span style="color: #808030;">=</span> encodeAsBitmap<span style="color: #808030;">(</span><span style="color: maroon;">"</span><span style="color: #0000e6;">:</span><span style="color: maroon;">"</span> <span style="color: #808030;">+</span> id <span style="color: #808030;">+</span> <span style="color: maroon;">"</span><span style="color: #0000e6;">?</span><span style="color: maroon;">"</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
imageView<span style="color: #808030;">.</span>setImageBitmap<span style="color: #808030;">(</span>bitmap<span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: purple;">}</span> catch <span style="color: #808030;">(</span>WriterException e<span style="color: #808030;">)</span> <span style="color: purple;">{</span>
e<span style="color: #808030;">.</span>printStackTrace<span style="color: #808030;">(</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: purple;">}</span>
</pre>
<br />
<br />
<pre style="background: #ffffff; color: black;">Bitmap encodeAsBitmap<span style="color: #808030;">(</span><span style="color: #603000;">String</span> str<span style="color: #808030;">)</span> throws WriterException <span style="color: purple;">{</span>
BitMatrix result<span style="color: purple;">;</span>
try <span style="color: purple;">{</span>
result <span style="color: #808030;">=</span> new MultiFormatWriter<span style="color: #808030;">(</span><span style="color: #808030;">)</span><span style="color: #808030;">.</span>encode<span style="color: #808030;">(</span>str<span style="color: #808030;">,</span>
BarcodeFormat<span style="color: #808030;">.</span>QR_CODE<span style="color: #808030;">,</span> <span style="color: #008c00;">300</span><span style="color: #808030;">,</span> <span style="color: #008c00;">300</span><span style="color: #808030;">,</span> null<span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: purple;">}</span> catch <span style="color: #808030;">(</span>IllegalArgumentException iae<span style="color: #808030;">)</span> <span style="color: purple;">{</span>
<span style="color: dimgrey;">// Unsupported format</span>
<span style="color: maroon; font-weight: bold;">return</span> null<span style="color: purple;">;</span>
<span style="color: purple;">}</span>
<span style="color: maroon; font-weight: bold;">int</span> w <span style="color: #808030;">=</span> result<span style="color: #808030;">.</span>getWidth<span style="color: #808030;">(</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">int</span> h <span style="color: #808030;">=</span> result<span style="color: #808030;">.</span>getHeight<span style="color: #808030;">(</span><span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">int</span><span style="color: #808030;">[</span><span style="color: #808030;">]</span> pixels <span style="color: #808030;">=</span> new <span style="color: maroon; font-weight: bold;">int</span><span style="color: #808030;">[</span>w <span style="color: #808030;">*</span> h<span style="color: #808030;">]</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">for</span> <span style="color: #808030;">(</span><span style="color: maroon; font-weight: bold;">int</span> y <span style="color: #808030;">=</span> <span style="color: #008c00;">0</span><span style="color: purple;">;</span> y <span style="color: #808030;"><</span> h<span style="color: purple;">;</span> y<span style="color: #808030;">+</span><span style="color: #808030;">+</span><span style="color: #808030;">)</span> <span style="color: purple;">{</span>
<span style="color: maroon; font-weight: bold;">int</span> offset <span style="color: #808030;">=</span> y <span style="color: #808030;">*</span> w<span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">for</span> <span style="color: #808030;">(</span><span style="color: maroon; font-weight: bold;">int</span> x <span style="color: #808030;">=</span> <span style="color: #008c00;">0</span><span style="color: purple;">;</span> x <span style="color: #808030;"><</span> w<span style="color: purple;">;</span> x<span style="color: #808030;">+</span><span style="color: #808030;">+</span><span style="color: #808030;">)</span> <span style="color: purple;">{</span>
pixels<span style="color: #808030;">[</span>offset <span style="color: #808030;">+</span> x<span style="color: #808030;">]</span> <span style="color: #808030;">=</span> result<span style="color: #808030;">.</span>get<span style="color: #808030;">(</span>x<span style="color: #808030;">,</span> y<span style="color: #808030;">)</span> <span style="color: purple;">?</span> BLACK <span style="color: purple;">:</span> WHITE<span style="color: purple;">;</span>
<span style="color: purple;">}</span>
<span style="color: purple;">}</span>
Bitmap bitmap <span style="color: #808030;">=</span> Bitmap<span style="color: #808030;">.</span>createBitmap<span style="color: #808030;">(</span>w<span style="color: #808030;">,</span> h<span style="color: #808030;">,</span> Bitmap<span style="color: #808030;">.</span>Config<span style="color: #808030;">.</span>ARGB_8888<span style="color: #808030;">)</span><span style="color: purple;">;</span>
bitmap<span style="color: #808030;">.</span>setPixels<span style="color: #808030;">(</span>pixels<span style="color: #808030;">,</span> <span style="color: #008c00;">0</span><span style="color: #808030;">,</span> <span style="color: #008c00;">300</span><span style="color: #808030;">,</span> <span style="color: #008c00;">0</span><span style="color: #808030;">,</span> <span style="color: #008c00;">0</span><span style="color: #808030;">,</span> w<span style="color: #808030;">,</span> h<span style="color: #808030;">)</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">return</span> bitmap<span style="color: purple;">;</span>
<span style="color: purple;">}</span>
</pre>
<pre style="background: #ffffff; color: black;"></pre>
<pre style="background: #ffffff; color: black;"><span style="color: purple;">
</span></pre>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7732057993325617058.post-9552725320925071142016-03-17T11:25:00.001+05:302016-08-03T23:45:22.059+05:30How to AddViews In Scroll View<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5GVn9y0jS4UA_2noOJOwRmqru76SxGggOK8VTvpo0jjgCgBk7a3aD0azikji6AV6euzMjpFvCF6PD42pupU2izbt664TeYjhRWBhUg9tYxVs2GAPCLc37LWEAObvw4Mbk-LiPv2Mh9Hk/s1600/ice_screenshot_20160317-111150.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5GVn9y0jS4UA_2noOJOwRmqru76SxGggOK8VTvpo0jjgCgBk7a3aD0azikji6AV6euzMjpFvCF6PD42pupU2izbt664TeYjhRWBhUg9tYxVs2GAPCLc37LWEAObvw4Mbk-LiPv2Mh9Hk/s320/ice_screenshot_20160317-111150.png" width="206" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiq5FS_6K6hyzLtHyDRWJ5fhrK75HsbOsW60lc2SXBIBViDYNa1i5w6DXn9Nb5XZVK0JCbBswH9Ew1NyxuFYAhoFLczlfAXbt0cNzL5Znkynuk4Y192S2FB4m4jj3CFXtUnpXd3M6GPlA8/s1600/ice_screenshot_20160317-111122.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="313" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiq5FS_6K6hyzLtHyDRWJ5fhrK75HsbOsW60lc2SXBIBViDYNa1i5w6DXn9Nb5XZVK0JCbBswH9Ew1NyxuFYAhoFLczlfAXbt0cNzL5Znkynuk4Y192S2FB4m4jj3CFXtUnpXd3M6GPlA8/s320/ice_screenshot_20160317-111122.png" width="320" /></a></div>
<div style="margin-bottom: 0cm; margin-left: 0.04cm; margin-right: 0.04cm;">
<div style="text-align: left;">
<span style="color: #666666;"><span style="font-size: 40pt;">MainActivity.java</span></span></div>
</div>
<pre style="background: #ffffff; color: black;"><span style="color: maroon; font-weight: bold;">package</span> android<span style="color: #808030;">.</span>com<span style="color: #808030;">.</span>listusingscrollbar<span style="color: purple;">;</span>
import android<span style="color: #808030;">.</span>content<span style="color: #808030;">.</span>Context<span style="color: purple;">;</span>
import android<span style="color: #808030;">.</span>os<span style="color: #808030;">.</span>Bundle<span style="color: purple;">;</span>
import android<span style="color: #808030;">.</span>support<span style="color: #808030;">.</span>v7<span style="color: #808030;">.</span>app<span style="color: #808030;">.</span>AppCompatActivity<span style="color: purple;">;</span>
import android<span style="color: #808030;">.</span>view<span style="color: #808030;">.</span>LayoutInflater<span style="color: purple;">;</span>
import android<span style="color: #808030;">.</span>view<span style="color: #808030;">.</span>View<span style="color: purple;">;</span>
import android<span style="color: #808030;">.</span>widget<span style="color: #808030;">.</span>LinearLayout<span style="color: purple;">;</span>
import android<span style="color: #808030;">.</span>widget<span style="color: #808030;">.</span>TextView<span style="color: purple;">;</span>
public <span style="color: maroon; font-weight: bold;">class</span> MainActivity extends AppCompatActivity <span style="color: dimgrey;">{</span>
<span style="color: dimgrey;"></span>
<span style="color: dimgrey;"> @Override</span>
<span style="color: dimgrey;"> protected void onCreate(Bundle savedInstanceState) {</span>
<span style="color: dimgrey;"> super.onCreate(savedInstanceState);</span>
<span style="color: dimgrey;"> setContentView(R.layout.activity_main);</span>
<span style="color: dimgrey;"></span>
<span style="color: dimgrey;"> LinearLayout linearLayout= (LinearLayout) findViewById(R.id.linearLayout);</span>
<span style="color: dimgrey;"></span>
<span style="color: dimgrey;"> LayoutInflater inflater= (LayoutInflater) getBaseContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);</span>
<span style="color: dimgrey;"></span>
<span style="color: dimgrey;"></span>
<span style="color: dimgrey;"></span>
<span style="color: dimgrey;"></span>
<span style="color: dimgrey;"> String[] data={"Android","Java","Php","Dot net","Ios","Lenovo","Logitech","Android","Java","Php","Dot net","Ios","Lenovo","Logitech"}</span><span style="color: purple;">;</span>
<span style="color: maroon; font-weight: bold;">for</span><span style="color: #808030;">(</span>int i<span style="color: #808030;">=</span><span style="color: #008c00;">0</span><span style="color: purple;">;</span> i<span style="color: #808030;"><</span>data<span style="color: #808030;">.</span>length<span style="color: purple;">;</span>i<span style="color: #808030;">+</span><span style="color: #808030;">+</span><span style="color: #808030;">)</span> <span style="color: dimgrey;">{</span>
<span style="color: dimgrey;"></span>
<span style="color: dimgrey;"></span>
<span style="color: dimgrey;"> View v=inflater.inflate(R.layout.item,null);</span>
<span style="color: dimgrey;"> TextView tv = (TextView) v.findViewById(R.id.list_item);</span>
<span style="color: dimgrey;"> tv.setText(data[i]);</span>
<span style="color: dimgrey;"> linearLayout.addView(tv);</span>
<span style="color: dimgrey;"></span>
<span style="color: dimgrey;"> }</span>
}
}
</pre>
<br />
<hr />
<div style="text-align: left;">
<span style="color: #666666;"><span style="background-color: #cccccc; font-size: 40pt;">LAYOUTS</span></span></div>
<div style="text-align: left;">
<span style="color: #666666;"><span style="font-size: 40pt;">activity_main.xml</span></span></div>
<pre style="background: #ffffff; color: black;"><span style="color: #004a43;"><?</span><span style="color: maroon; font-weight: bold;">xml</span><span style="color: #004a43;"> </span><span style="color: #074726;">version</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #7d0045;">1.0</span><span style="color: maroon;">"</span><span style="color: #004a43;"> </span><span style="color: #074726;">encoding</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">utf-8</span><span style="color: maroon;">"</span><span style="color: #004a43;">?></span>
<span style="color: #a65700;"><</span><span style="color: #5f5035;">ScrollView</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">id</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">@+id/scrollView</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">layout_height</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">match_parent</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">layout_width</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">match_parent</span><span style="color: maroon;">"</span>
<span style="color: #666616;">xmlns</span><span style="color: purple;">:</span><span style="color: #074726;">android</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #666616;">http</span><span style="color: purple;">:</span><span style="color: maroon; font-weight: bold;">//</span><span style="color: #5555dd;">schemas.android.com</span><span style="color: #40015a;">/apk/res/android</span><span style="color: maroon;">"</span><span style="color: #a65700;">></span>
<span style="color: #a65700;"><</span><span style="color: #5f5035;">LinearLayout</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">id</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">@+id/linearLayout</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">layout_width</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">match_parent</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">layout_height</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">match_parent</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">orientation</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">vertical</span><span style="color: maroon;">"</span><span style="color: #a65700;">></span>
<span style="color: #a65700;"></</span><span style="color: #5f5035;">LinearLayout</span><span style="color: #a65700;">></span>
<span style="color: #a65700;"></</span><span style="color: #5f5035;">ScrollView</span><span style="color: #a65700;">></span>
</pre>
<br />
<hr />
<div style="text-align: left;">
<span style="color: #666666;"><span style="font-size: 40pt;">item.xml</span></span></div>
</div>
<pre style="background: #ffffff; color: black;"><span style="color: #004a43;"><?</span><span style="color: maroon; font-weight: bold;">xml</span><span style="color: #004a43;"> </span><span style="color: #074726;">version</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #7d0045;">1.0</span><span style="color: maroon;">"</span><span style="color: #004a43;"> </span><span style="color: #074726;">encoding</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">utf-8</span><span style="color: maroon;">"</span><span style="color: #004a43;">?></span>
<span style="color: #a65700;"><</span><span style="color: #5f5035;">TextView</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">id</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">@+id/list_item</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">layout_height</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">wrap_content</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">layout_width</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">match_parent</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">layout_margin</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">16sp</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">textColor</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">@color/listColor</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">gravity</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">center</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">textSize</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">30sp</span><span style="color: maroon;">"</span>
<span style="color: #007997;">android</span><span style="color: purple;">:</span><span style="color: #274796;">text</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #0000e6;">hello</span><span style="color: maroon;">"</span>
<span style="color: #666616;">xmlns</span><span style="color: purple;">:</span><span style="color: #074726;">android</span><span style="color: #808030;">=</span><span style="color: maroon;">"</span><span style="color: #666616;">http</span><span style="color: purple;">:</span><span style="color: maroon; font-weight: bold;">//</span><span style="color: #5555dd;">schemas.android.com</span><span style="color: #40015a;">/apk/res/android</span><span style="color: maroon;">"</span> <span style="color: #a65700;">/></span>
</pre>
</div>
Unknownnoreply@blogger.com0