Fix clipped button shadow

This commit is contained in:
tehcneko committed 2021-03-20 21:49:54 +08:00
1 parent f0111a3dd3
commit 22d7c59951
3 files changed
+7 -3

No files matched your search

@@ -85,6 +85,7 @@ public final class ImageSearchLayout extends LinearLayout implements View.OnClic
setOrientation(VERTICAL);
setDividerDrawable(context.getResources().getDrawable(R.drawable.spacer_keyline));
setShowDividers(SHOW_DIVIDER_MIDDLE);
setClipChildren(false);
setClipToPadding(false);
LayoutInflater.from(context).inflate(R.layout.widget_image_search, this);
+5 -2
View File
@@ -25,7 +25,9 @@
android:orientation="vertical"
android:paddingLeft="@dimen/search_category_padding_h"
android:paddingRight="@dimen/search_category_padding_h"
android:paddingBottom="@dimen/search_category_padding_v">
android:paddingBottom="@dimen/search_category_padding_v"
android:clipToPadding="false"
android:clipChildren="false">
<TextView
android:id="@+id/category_title"
@@ -37,7 +39,8 @@
<FrameLayout
android:id="@+id/category_content"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
android:layout_height="wrap_content"
android:clipChildren="false" />
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
@@ -26,7 +26,7 @@
android:maxHeight="@dimen/image_search_max_size"
android:visibility="gone" />
<Button
<com.google.android.material.button.MaterialButton
android:id="@+id/select_image"
style="@style/Widget.MaterialComponents.Button"
android:layout_width="match_parent"