Commit bc0a6500 authored by Gilbert Ndresaj's avatar Gilbert Ndresaj

Synch

parent f6157ce2
......@@ -68,4 +68,5 @@ dependencies {
}
compile(group: 'uz.shift', name: 'colorpicker', version: '0.5', ext: 'aar')
compile 'com.github.paolorotolo:appintro:+'
compile 'com.github.LarsWerkman:Lobsterpicker:+'
}
......@@ -16,6 +16,7 @@ import android.view.MenuItem;
import android.view.View;
import android.view.animation.AccelerateInterpolator;
import android.view.animation.DecelerateInterpolator;
import com.afollestad.materialdialogs.DialogAction;
import com.afollestad.materialdialogs.MaterialDialog;
import com.leafpic.app.Adapters.PhotosPagerAdapter;
......@@ -189,9 +190,7 @@ public class PhotoActivity extends AppCompatActivity {
SimpleDateFormat s = new SimpleDateFormat("dd/mm/yyyy HH:MM");// //new DateFormat();
date = s.format(new Time(Long.valueOf(photos.getCurrentPhoto().DateTaken)));
Photo f = photos.getCurrentPhoto();
String[] projection = new String[]{
MediaStore.Images.Media.SIZE,
MediaStore.Images.Media.HEIGHT,
......@@ -210,10 +209,8 @@ public class PhotoActivity extends AppCompatActivity {
resolution += "x" + cursor.getString(cursor.getColumnIndex(MediaStore.Images.Media.HEIGHT));
}
cursor.close();
/**GET COLOR**/
/*
SharedPreferences SP;
SP = PreferenceManager.getDefaultSharedPreferences(getBaseContext());
String SColor = SP.getString("PrefColor", "#03A9F4");
......@@ -226,10 +223,10 @@ public class PhotoActivity extends AppCompatActivity {
//.titleColor(color)
.content("Album: " + StringUtils.getPhotoNamebyPath(photos.FolderPath)
+ "\nName: " + StringUtils.getPhotoNamebyPath(photos.getCurrentPhoto().Path)
+ "\nDimensione: " + size
+ "\nRisoluzione: " + resolution
+ "\nImageSize: " + size
+ "\nResolution: " + resolution
+ "\nFormato: " + photos.getCurrentPhoto().MIME
+ "\nData: " + date)
+ "\nDate: " + date)
.positiveText("OK")
.show();
break;
......
<?xml version="1.0" encoding="utf-8"?>
<!--
<uz.shift.colorpicker.LineColorPicker
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/picker"
android:layout_width="match_parent"
android:layout_height="60dp"
app:orientation="horizontal"/>
\ No newline at end of file
app:orientation="horizontal"/>
-->
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
>
<com.larswerkman.lobsterpicker.LobsterPicker
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/lobsterpicker"
/>
<com.larswerkman.lobsterpicker.sliders.LobsterShadeSlider
android:id="@+id/shadeslider"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<com.larswerkman.lobsterpicker.sliders.LobsterOpacitySlider
android:id="@+id/opacityslider"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment