-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/workspace.xml | ||
/.idea/libraries | ||
.DS_Store | ||
/build | ||
/captures |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
android { | ||
signingConfigs { | ||
config { | ||
keyAlias 'yoesuv' | ||
keyPassword 'idamanmertua' | ||
storeFile file('/home/yusuf/Documents/compile/-yusuf.keystore') | ||
storePassword 'idamanmertua' | ||
} | ||
} | ||
compileSdkVersion 23 | ||
buildToolsVersion "25.0.0" | ||
defaultConfig { | ||
applicationId "com.yoesuv.infomadiun" | ||
minSdkVersion 16 | ||
targetSdkVersion 23 | ||
versionCode 5 | ||
versionName "1.0.4" | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
signingConfig signingConfigs.config | ||
} | ||
debug { | ||
signingConfig signingConfigs.config | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
compile fileTree(include: ['*.jar'], dir: 'libs') | ||
testCompile 'junit:junit:4.12' | ||
compile 'com.android.support:appcompat-v7:23.3.0' | ||
compile 'com.android.support:design:23.3.0' | ||
compile 'com.android.support:cardview-v7:23.3.0' | ||
compile 'com.android.support:gridlayout-v7:23.3.0' | ||
compile 'com.squareup.retrofit:retrofit:2.0.0-beta2' | ||
compile 'com.squareup.retrofit:converter-gson:2.0.0-beta2' | ||
compile 'com.squareup.picasso:picasso:2.5.2' | ||
compile 'com.google.android.gms:play-services-maps:9.8.0' | ||
compile('com.mikepenz:materialdrawer:4.6.4@aar') { | ||
transitive = true | ||
} | ||
compile files('libs/StartAppInApp-3.5.1.jar') | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Add project specific ProGuard rules here. | ||
# By default, the flags in this file are appended to flags specified | ||
# in /home/yusuf/Documents/Sdk/tools/proguard/proguard-android.txt | ||
# You can edit the include path and order by changing the proguardFiles | ||
# directive in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# Add any project specific keep options here: | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.yoesuv.infomadiun; | ||
|
||
import android.app.Application; | ||
import android.test.ApplicationTestCase; | ||
|
||
/** | ||
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> | ||
*/ | ||
public class ApplicationTest extends ApplicationTestCase<Application> { | ||
public ApplicationTest() { | ||
super(Application.class); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.yoesuv.infomadiun"> | ||
|
||
<uses-feature | ||
android:glEsVersion="0x00020000" | ||
android:required="true" /> | ||
|
||
<uses-permission android:name="android.permission.INTERNET"/> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> | ||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" | ||
android:maxSdkVersion="22"/> | ||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" | ||
android:maxSdkVersion="22" /> | ||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> | ||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> | ||
|
||
<application | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:supportsRtl="true" | ||
android:theme="@style/AppTheme"> | ||
|
||
<meta-data | ||
android:name="com.google.android.geo.API_KEY" | ||
android:value="@string/google_maps_api_key" /> | ||
|
||
<activity | ||
android:name=".MainActivity" | ||
android:label="@string/app_name" | ||
android:screenOrientation="portrait" | ||
android:theme="@style/AppTheme"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
|
||
<activity android:name=".MainPlaceDetailActivity" | ||
android:screenOrientation="portrait" /> | ||
|
||
<activity android:name=".GalleryDetailActivity" | ||
android:screenOrientation="portrait"/> | ||
|
||
<!-- StartApp activities integration --> | ||
<activity | ||
android:name="com.startapp.android.publish.list3d.List3DActivity" | ||
android:theme="@android:style/Theme" /> | ||
<activity | ||
android:name="com.startapp.android.publish.OverlayActivity" | ||
android:configChanges="orientation|keyboardHidden|screenSize" | ||
android:theme="@android:style/Theme.Translucent" /> | ||
<activity | ||
android:name="com.startapp.android.publish.FullScreenActivity" | ||
android:configChanges="orientation|keyboardHidden|screenSize" | ||
android:theme="@android:style/Theme" /> | ||
|
||
<!-- End of StartApp activities integration --> | ||
|
||
</application> | ||
|
||
</manifest> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
package com.yoesuv.infomadiun; | ||
|
||
import android.graphics.Typeface; | ||
import android.os.Bundle; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.support.v7.widget.Toolbar; | ||
import android.view.MenuItem; | ||
import android.view.View; | ||
import android.widget.ImageView; | ||
import android.widget.ProgressBar; | ||
import android.widget.TextView; | ||
|
||
import com.squareup.picasso.Callback; | ||
import com.squareup.picasso.Picasso; | ||
|
||
public class GalleryDetailActivity extends AppCompatActivity { | ||
|
||
public static String EXTRA_IMAGE = "extra_image"; | ||
public static String EXTRA_DESC = "extra_description"; | ||
|
||
private Toolbar toolbar; | ||
private TextView textView_desc,tvTitle; | ||
private ImageView img; | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_gallery_detail); | ||
|
||
toolbar = (Toolbar) findViewById(R.id.toolbar); | ||
setSupportActionBar(toolbar); | ||
|
||
if(getSupportActionBar()!=null) { | ||
getSupportActionBar().setDisplayHomeAsUpEnabled(true); | ||
getSupportActionBar().setDisplayShowTitleEnabled(false); | ||
getSupportActionBar().setElevation(5); | ||
} | ||
tvTitle = (TextView) toolbar.findViewById(R.id.textView_title); | ||
Typeface tf = Typeface.createFromAsset(getResources().getAssets(),"pacifico.ttf"); | ||
tvTitle.setTypeface(tf); | ||
|
||
tvTitle.setText(R.string.gallery); | ||
|
||
textView_desc = (TextView) findViewById(R.id.textView_gallery_detail); | ||
img = (ImageView) findViewById(R.id.imageView_gallery_detail); | ||
|
||
textView_desc.setText(getIntent().getExtras().getString(EXTRA_DESC)); | ||
Picasso.with(this).load(getIntent().getExtras().getString(EXTRA_IMAGE)).placeholder(R.drawable.img_default).into(img, new Callback() { | ||
@Override | ||
public void onSuccess() { | ||
img.setAdjustViewBounds(true); | ||
} | ||
|
||
@Override | ||
public void onError() { | ||
img.setAdjustViewBounds(false); | ||
img.setImageResource(R.drawable.img_default); | ||
} | ||
}); | ||
} | ||
|
||
@Override | ||
public boolean onOptionsItemSelected(MenuItem item) { | ||
switch (item.getItemId()){ | ||
case android.R.id.home: | ||
GalleryDetailActivity.this.finish(); | ||
return true; | ||
} | ||
return super.onOptionsItemSelected(item); | ||
} | ||
} |