Skip to content

Commit 49a8209

Browse files
committed
Refined layouts
1 parent d519d5f commit 49a8209

File tree

13 files changed

+38
-22
lines changed

13 files changed

+38
-22
lines changed

.idea/misc.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/java/com/autocrop/activities/examination/fragments/viewpager/handler/ViewPagerHandler.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class ViewPagerHandler(
111111

112112
@SuppressLint("ClickableViewAccessibility")
113113
private inner class CropViewHolder(view: ImageView) : RecyclerView.ViewHolder(view) {
114-
val cropView: ImageView = view.findViewById(R.id.slide_item_image_view_examination_activity)
114+
val cropView: ImageView = view.findViewById(R.id.image_view_examination_view_pager)
115115

116116
/**
117117
* Set onTouchListener through implementation of ImmersiveViewOnTouchListener
@@ -159,7 +159,7 @@ class ViewPagerHandler(
159159
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): CropViewHolder {
160160
return CropViewHolder(
161161
LayoutInflater.from(parent.context)
162-
.inflate(R.layout.slide_item_container_examination_activity, parent, false)
162+
.inflate(R.layout.activity_examination_view_pager_image_view, parent, false)
163163
as ImageView
164164
)
165165
}

app/src/main/java/com/autocrop/activities/main/fragments/about/AboutFragment.kt

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,34 @@ class AboutFragment: MainActivityFragment<ActivityMainFragmentAboutBinding>(){
2323
binding.trippyBrudinelettenImageView.setOnClickListener { it.animate(Techniques.Tada) }
2424

2525
binding.w2svTv.setOnClickListener {
26-
val viewIntent = Intent(
26+
// WHOOPSIE DAISY! - view simply disappears after ZoomOutRight
27+
// and has to be thus ZoomInRight'd back in
28+
it.animate(Techniques.ZoomOutRight){
29+
it.animate(Techniques.ZoomInRight)
30+
}
31+
32+
startActivity(
33+
Intent(
2734
"android.intent.action.VIEW",
2835
Uri.parse("http://github.com/w2sv")
36+
)
2937
)
30-
startActivity(viewIntent)
3138
}
3239
}
3340
}
3441

35-
class VersionTextView(context: Context, attr: AttributeSet): ExtendedTextView(context, attr, R.string.version){
36-
init { text = getString().format(BuildConfig.VERSION_NAME) }
42+
class VersionTextView(context: Context, attr: AttributeSet):
43+
ExtendedTextView(context, attr, R.string.version){
44+
45+
init {
46+
text = getString().format(BuildConfig.VERSION_NAME)
47+
48+
setOnClickListener { it.animate(Techniques.RubberBand) }
49+
}
3750
}
3851

39-
class CopyrightTextView(context: Context, attr: AttributeSet): ExtendedTextView(context, attr, R.string.copyright){
52+
class CopyrightTextView(context: Context, attr: AttributeSet):
53+
ExtendedTextView(context, attr, R.string.copyright){
54+
4055
init { text = getString().format(Calendar.getInstance().get(Calendar.YEAR)) }
4156
}

app/src/main/java/com/autocrop/activities/main/fragments/flowfield/FlowFieldFragment.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ class FlowFieldFragment:
4242
flowFieldBinding.setCaptureButton(binding.flowfieldCaptureButton, permissionsHandler)
4343

4444
// display CropIOResultSnackbar upon activity entry
45-
if (savedInstanceState == null)
46-
displayActivityEntrySnackbar()
45+
displayActivityEntrySnackbar()
4746
}
4847

4948
private val nSavedCropsRetriever = IntentExtraRetriever<IntArray>(IntentExtraIdentifier.N_SAVED_CROPS_WITH_N_DELETED_SCREENSHOTS)

app/src/main/res/drawable/gradient_about_screen_background.xml renamed to app/src/main/res/drawable/gradient_background_main.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
android:angle="270"
77
android:type="linear"
88

9-
android:startColor="#000000"
9+
android:startColor="@color/ocean_blue"
1010
android:endColor="@color/magenta" />
1111
</shape>
1212
</item>

app/src/main/res/drawable/progress_bar_cropping_activity_progress.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
<corners android:radius="50dip" />
77

88
<gradient
9-
android:startColor="@color/magenta"
10-
android:endColor="@color/light_green"
11-
android:angle="180"/>
9+
android:startColor="@color/light_green"
10+
android:endColor="@color/saturated_magenta"/>
1211
</shape>
1312
</clip>
1413
</item>

app/src/main/res/drawable/splash_screen.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
44
<item
5-
android:drawable="@drawable/gradient_about_screen_background"/>
5+
android:drawable="@drawable/gradient_background_main"/>
66

77
<item
88
android:drawable="@drawable/trippy_brudineletten"

app/src/main/res/layout/activity_cropping_fragment_root.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
android:layout_marginEnd="10dp"
2727
android:layout_marginStart="10dp"
2828

29-
android:progress="0"
3029
android:progressDrawable="@drawable/progress_bar_cropping_activity_progress"/>
3130

3231
<com.autocrop.activities.cropping.fragments.cropping.CurrentImageNumberTextView

app/src/main/res/layout/activity_examination_fragment_viewpager.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
android:background="@android:color/transparent"
2626
android:text="@string/discard_all_button"
2727
android:textStyle="bold"
28-
android:textColor="@color/dark_green"
28+
android:textColor="@color/light_gray"
2929
android:translationX="-10dp" />
3030

3131
<!-- Save All -->
@@ -38,7 +38,7 @@
3838
android:background="@android:color/transparent"
3939
android:text="@string/save_all_button"
4040
android:textStyle="bold"
41-
android:textColor="@color/dark_green"
41+
android:textColor="@color/light_gray"
4242
android:translationX="-10dp"/>
4343

4444
</androidx.appcompat.widget.Toolbar>
@@ -133,6 +133,7 @@
133133
android:layout_marginHorizontal="30dp"
134134

135135
android:textSize="13sp"
136+
android:textColor="@color/light_gray"
136137

137138
android:visibility="invisible"/>
138139

app/src/main/res/layout/slide_item_container_examination_activity.xml renamed to app/src/main/res/layout/activity_examination_view_pager_image_view.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<android.widget.ImageView
33
xmlns:android="http://schemas.android.com/apk/res/android"
4-
android:id="@+id/slide_item_image_view_examination_activity"
4+
android:id="@+id/image_view_examination_view_pager"
55

66
android:layout_width="match_parent"
77
android:layout_height="match_parent"

0 commit comments

Comments
 (0)