Skip to content

Commit

Permalink
Add sample app
Browse files Browse the repository at this point in the history
  • Loading branch information
dybarsky committed Jan 13, 2015
1 parent ff516a8 commit 9523cb4
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 0 deletions.
26 changes: 26 additions & 0 deletions sample/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apply plugin: 'com.android.application'

repositories {
mavenCentral()
}

android {
compileSdkVersion Integer.parseInt(COMPILE_SDK_VERSION)
buildToolsVersion BUILD_TOOLS_VERSION

defaultConfig {
minSdkVersion Integer.parseInt(MIN_SDK_VERSION)
targetSdkVersion Integer.parseInt(TARGET_SDK_VERSION)
versionCode Integer.parseInt(VERSION_CODE)
versionName VERSION_NAME
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_6
targetCompatibility JavaVersion.VERSION_1_6
}
}

dependencies {
compile project(':library')
}
18 changes: 18 additions & 0 deletions sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest
package="dmax.staticmap.sample"
xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET"/>

<application>
<activity android:name=".MainActivity"
android:theme="@android:style/Theme.Holo.Light"
android:label="StaticMap sample">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
21 changes: 21 additions & 0 deletions sample/src/main/java/dmax/dialog/sample/MainActivity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package dmax.dialog.sample;

import android.app.Activity;
import android.os.Bundle;

import dmax.dialog.DotsDialog;

/**
* Created by Maxim Dybarsky | maxim.dybarskyy@gmail.com
* on 13.01.15 at 14:32
*/
public class MainActivity extends Activity {

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

new DotsDialog(this).show();

}
}
22 changes: 22 additions & 0 deletions sample/src/main/res/v_loading_dilalog.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">

<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dialog_title_margin"
android:layout_gravity="center"
android:textAppearance="?android:attr/textAppearanceMedium"/>

<FrameLayout
android:id="@+id/progress"
android:layout_width="@dimen/progress_width"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="@dimen/spot_padding"/>

</LinearLayout>
2 changes: 2 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include ':library'
include ':sample'

0 comments on commit 9523cb4

Please sign in to comment.