• Stars
    star
    234
  • Rank 167,993 (Top 4 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created over 11 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Wrap your app screenshots in real device artwork.

Device Frame Generator

Wrap your app screenshots in real device artwork. For more information, see the website.

Adding Devices

To add new devices, you'll need to add 7 images in the app/src/main/res/drawable-nodpi:

  • device_land_back
  • device_land_glare
  • device_land_shadow
  • device_port_back
  • device_port_glare
  • device_port_shadow
  • device_thumb

All these should be in the png format and named as above - with device replaced with a key that will identify this set of frames. Once that's done, simply add the metadata in DeviceModule.java located at app/src/main/java/com/f2prateek/dfg/DeviceModule.java. Here's what an example for the Nexus 5 would look like.

@Provides(type = SET) Device provideNexus5() {
    return new Device.Builder().setId("nexus_5")
        .setName("Nexus 5")
        .setUrl("http://www.google.com/nexus/5/")
        .setPhysicalSize(5.43f)
        .setDensity("XXHDPI")
        .setLandOffset(436, 306)
        .setPortOffset(306, 436)
        .setPortSize(1080, 1920)
        .setRealSize(1080, 1920)
        .addProductId("hammerhead")
        .build();
  }

You can see what the metadata fields mean at Device.java

Building

Simply execute ./gradlew clean build.

Build Status

Android Arsenal

More Repositories

1

rx-preferences

Reactive SharedPreferences for Android
Java
1,537
star
2

dart

Extras binding and intent builders for Android apps.
Java
1,185
star
3

progressbutton

A custom progress indicator with a tiny footprint.
Java
632
star
4

rx-receivers

Reactive Bindings for BroadcastReceivers — WIP
Java
368
star
5

gradle-android-javafmt-plugin

Augomagically format Java files (deprecated)
Groovy
58
star
6

android-bee

Kotlin
45
star
7

android-checkstyle-plugin

Configures the checkstyle plugin for Android projects
Groovy
39
star
8

train

Chainable HTTP client middleware.
Go
31
star
9

bundler

Bundler is small fluent API on top top of android.os.Bundle
Java
20
star
10

cloak

Library to Bootstrap Dagger on Android
Java
16
star
11

android-couchpotato

WIP
Java
9
star
12

clearbit-go

Golang API for the Clearbit API.
Go
8
star
13

android-xkcd

XKCD Comic Viewer
Java
5
star
14

segment-android

Java
4
star
15

hn2instapaper

Save the top articles on Hacker News to your Instapaper account.
Go
3
star
16

shush-wifi

Java
3
star
17

Square-OctoCash

Send cash to developers on Github with Square Cash
JavaScript
3
star
18

ln

[deprecated] Ln, a more natural Log.
Java
3
star
19

go-pointers

Go
3
star
20

pvt

Java
2
star
21

rxjava-reject

Sample reject operator for RxJava
Java
2
star
22

cron

Cron library for Go.
Go
2
star
23

vogar

Unofficial mirror of Vogar from AOSP
Java
2
star
24

Stopwatch

simple android timer
Java
2
star
25

robin

Schedulers with Android specific functionality.
Java
2
star
26

IFTTW

Repo for If This Then What, built at the Startup Edmonton Hackathon
Shell
2
star
27

go-instapaper

Instapaper API Client for Go.
Go
2
star
28

interfeys

Go
1
star
29

DiLaurentis

Pretty print JSON documents.
Go
1
star
30

bee

Print the spelling alphabet of a word.
Go
1
star
31

go-github-utils

Go
1
star
32

DrinkBot

WIP
Java
1
star
33

hickson

Go
1
star
34

DashTimer

Java
1
star
35

polygot

Count your Github activity by language.
Go
1
star
36

go-executor

Go
1
star
37

github-webhook-server

Go
1
star
38

titan

Time Units for Swift
Swift
1
star
39

clock

Go
1
star
40

github-gender-stats

Print gender stats for any github org
Go
1
star
41

palette-previewer

Quickly preview colors generated by Palette
Java
1
star