About design and nearby

Android Tricks: ‘drawable’ Objects, or how to Draw a Circle

Posted: June 17th, 2015 | Author: | Filed under: Mobile Design and Development | Tags: , , , , , , , | 1 Comment »

Android supports all sorts of ‘drawable’ objects, or ‘something that can be drawn.’ Drawables may take a variety of forms:

  • Bitmap: a *.png or *.jpeg image.
  • 9-Patch: an extension to the *.png format with stretchable regions.
  • Layers: manages an array of other drawables. These are drawn in array order, so the element with the largest index is be drawn on top.
  • States: an XML file that references different bitmap graphics based on its state.
  • Levels: an XML file that defines a drawable that manages a number of alternate Drawables, each assigned a maximum numerical value.
  • Scale: an XML file that defines a drawable that changes the size of another Drawable based on its current level value.
  • Shape: an XML file that defines a geometric shape, including colors and gradients.

Drawable object: shape

Standalone drawable objects are probably not very useful, but their combinations can be helpful for implementation of design ideas.

Let’s talk about an app there it’s logo should be placed inside the circle (Icon.png is my Android logo file).

It’s easy to realize with drawable object with ‘android:background’ attribute like below (‘FrameLayout’ is used to block out an area on the screen to display my single item).

Read the rest of this entry »

Freebie: Layered iPhone 6 PSD mockup

Posted: June 16th, 2015 | Author: | Filed under: Mobile Design and Development | Tags: , , , | No Comments »

During the last years mobile has evolved from a simple toy to hyper operative tool. Mobile application industry has become a huge market for design industry. No matter what your business is, a mobile app can help you get customers – that’s it.

From my side I would say there are more and more mobile projects come and market is still growing. If you work as a web/ graphic/ mobile designer like me, then you want to showcase your mobile app design to public and customers in a trendy and realistic form.

iPhone6 layered PSd freebie

To do it elegantly feel free to use my free mockups (for iPhone 6).

Layered PSD files include smart object for easy editing, background /background color can be changed also. Just drop your creative works into the templates in the Photoshop:

Download iPhone 6 PSD mockups

Submitting Form: PHP header(Location: …)

Posted: June 11th, 2015 | Author: | Filed under: Development, Tips and Tricks | Tags: , , , , , | No Comments »

Once I got a weird trouble with submitting contact form.

My website was powered by WordPress and the contact form was placed at the default page (single page design), so I want the form to submit to the page itself that the form is on.

Read the rest of this entry »

How to Add an Anchor Link to WordPress pagination

Posted: May 7th, 2015 | Author: | Filed under: Development, Tips and Tricks | Tags: , , , | No Comments »

There are a few ways to setup WordPress pagination, or ‘paged’ links. I do prefer to work with paginate_links because of set of its arguments, which could be customized according to your needs.

Pagination with anchor link

Read the rest of this entry »

WordPress Pagination: How to Make it Work

Posted: May 6th, 2015 | Author: | Filed under: Development, Tips and Tricks | Tags: , , , , | No Comments »

Function next_posts_link/ previous_posts_link prints a link to the next/ previous set of posts within the current query. It default usage is

  1. < ?php next_posts_link(); ?>
  2. < ?php previous_posts_link(); ?>

And usually you work with the pagination such way:

  1. < ?php if (have_posts()) : ?>
  2. < ?php while (have_posts()) : the_post(); ?>
  3. < ?php the_content(); ?>
  4. < ?php endwhile; ?>
  5. < ?php next_posts_link('&laquo; Older Entries') ?>
  6. < ?php previous_posts_link('Newer Entries &raquo;') ?>
  7. < ?php else : ?>
  8. <p>Page 404</p>
  9. < ?php endif; ?>

wordpress pagination

The tricky part comes if you need to print certain number of posts and keep the pagination.

Read the rest of this entry »

Looking for a Freelance UX & UI designer for your project? I’m ready to jump onboard!

Let's discuss your project now