Skip to content

Commit

Permalink
run spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
radiopatrick committed Jan 25, 2024
1 parent 11dfa18 commit 3f38a06
Show file tree
Hide file tree
Showing 13 changed files with 51 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public class VeilLayout : FrameLayout {
context: Context,
attrs: AttributeSet?,
defStyleAttr: Int,
defStyleRes: Int,
defStyleRes: Int
) : super(
context,
attrs,
Expand Down Expand Up @@ -266,7 +266,7 @@ public class VeilLayout : FrameLayout {
child: View,
marginX: Float,
parent: ViewGroup,
marginY: Float,
marginY: Float
): View {
return View(context).apply {
layoutParams = LayoutParams(child.width, child.height)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public class VeilRecyclerFrameView : RelativeLayout {
public fun setVeilLayout(
@LayoutRes layout: Int,
isPrepared: Boolean = false,
onItemClickListener: VeiledItemOnClickListener? = null,
onItemClickListener: VeiledItemOnClickListener? = null
) {
this.veiledAdapter =
VeiledAdapter(
Expand All @@ -206,7 +206,7 @@ public class VeilRecyclerFrameView : RelativeLayout {
@LayoutRes layout: Int,
@IntRange(from = 1) size: Int,
isPrepared: Boolean,
onItemClickListener: VeiledItemOnClickListener? = null,
onItemClickListener: VeiledItemOnClickListener? = null
) {
this.setVeilLayout(
layout = layout,
Expand Down Expand Up @@ -248,7 +248,7 @@ public class VeilRecyclerFrameView : RelativeLayout {
/** Sets userRecyclerView's adapter and RecyclerViews LayoutManager. */
public fun setAdapter(
adapter: RecyclerView.Adapter<*>?,
layoutManager: RecyclerView.LayoutManager,
layoutManager: RecyclerView.LayoutManager
) {
this.setAdapter(adapter)
this.setLayoutManager(layoutManager)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ internal class VeiledAdapter(
private val isPrepared: Boolean,
private val onItemClickListener: VeiledItemOnClickListener? = null,
private val isListItemWrapContentWidth: Boolean = false,
private val isListItemWrapContentHeight: Boolean = true,
private val isListItemWrapContentHeight: Boolean = true
) : RecyclerView.Adapter<VeiledAdapter.VeiledViewHolder>() {

private val veilParamList: MutableList<VeilParams> = mutableListOf()
Expand Down
1 change: 0 additions & 1 deletion androidveil/src/main/res/values/attrs_veil.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>

<!--
Designed and developed by 2018 skydoves (Jaewoong Eum)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ class CarouselActivity :
val binding = ActivityCarouselBinding.inflate(layoutInflater)
setContentView(binding.root)
setSupportActionBar(binding.toolbar)
supportActionBar?.setDisplayHomeAsUpEnabled(true);
supportActionBar?.setDisplayShowHomeEnabled(true);
supportActionBar?.setDisplayHomeAsUpEnabled(true)
supportActionBar?.setDisplayShowHomeEnabled(true)

val adapter = ProfileCarouselAdapter(this)
// sets VeilRecyclerView's properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class GridActivity :
val binding = ActivityGridBinding.inflate(layoutInflater)
setContentView(binding.root)
setSupportActionBar(binding.toolbar)
supportActionBar?.setDisplayHomeAsUpEnabled(true);
supportActionBar?.setDisplayShowHomeEnabled(true);
supportActionBar?.setDisplayHomeAsUpEnabled(true)
supportActionBar?.setDisplayShowHomeEnabled(true)

// sets VeilRecyclerView's properties
binding.veilFrameView.run {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import com.skydoves.androidveildemo.profile.ListItemUtils
import com.skydoves.androidveildemo.profile.Profile
import com.skydoves.androidveildemo.profile.ProfileAdapter


/**
* Developed by skydoves on 2018-10-30.
* Copyright (c) 2018 skydoves rights reserved.
Expand Down Expand Up @@ -110,9 +109,9 @@ class MainActivity :
}

private fun closeFloatingMenu() {
isFloatingMenuOpen = false;
binding.containerFabCarousel.animate().translationY(0f);
binding.containerFabGrid.animate().translationY(0f);
isFloatingMenuOpen = false
binding.containerFabCarousel.animate().translationY(0f)
binding.containerFabGrid.animate().translationY(0f)
binding.fabGridText.visibility = View.GONE
binding.fabCarouselText.visibility = View.GONE
}
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/activity_carousel.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?><!--
<?xml version="1.0" encoding="utf-8"?>
<!--
Designed and developed by 2018 skydoves (Jaewoong Eum)
Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/activity_grid.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?><!--
<?xml version="1.0" encoding="utf-8"?>
<!--
Designed and developed by 2018 skydoves (Jaewoong Eum)
Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?><!--
<?xml version="1.0" encoding="utf-8"?>
<!--
Designed and developed by 2018 skydoves (Jaewoong Eum)
Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
15 changes: 15 additions & 0 deletions app/src/main/res/layout/item_prepared_shimmer_carousel.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Designed and developed by 2018 skydoves (Jaewoong Eum)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<com.facebook.shimmer.ShimmerFrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/placeholder_item"
android:layout_width="wrap_content"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/item_profile_carousel.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?><!--
<?xml version="1.0" encoding="utf-8"?>
<!--
Designed and developed by 2018 skydoves (Jaewoong Eum)
Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
15 changes: 15 additions & 0 deletions app/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Designed and developed by 2018 skydoves (Jaewoong Eum)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>

<dimen name="item_picture_size">72dp</dimen>
Expand Down

0 comments on commit 3f38a06

Please sign in to comment.