diff --git a/qksms/src/main/java/com/moez/QKSMS/presentation/common/widget/PreferenceView.kt b/qksms/src/main/java/com/moez/QKSMS/presentation/common/widget/PreferenceView.kt index cc55b079..6ee20e36 100644 --- a/qksms/src/main/java/com/moez/QKSMS/presentation/common/widget/PreferenceView.kt +++ b/qksms/src/main/java/com/moez/QKSMS/presentation/common/widget/PreferenceView.kt @@ -26,6 +26,7 @@ class PreferenceView @JvmOverloads constructor(context: Context, attrs: Attribut init { View.inflate(context, R.layout.preference_view, this) setBackgroundResource(R.drawable.ripple) + orientation = VERTICAL context.obtainStyledAttributes(attrs, R.styleable.PreferenceView)?.run { title = getString(R.styleable.PreferenceView_title) diff --git a/qksms/src/main/res/layout/preference_view.xml b/qksms/src/main/res/layout/preference_view.xml index 894a5f22..b7c6e99c 100644 --- a/qksms/src/main/res/layout/preference_view.xml +++ b/qksms/src/main/res/layout/preference_view.xml @@ -3,36 +3,49 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" - android:gravity="center_vertical" + android:orientation="vertical" tools:parentTag="com.moez.QKSMS.presentation.common.widget.PreferenceView"> + android:baselineAligned="false" + android:gravity="center_vertical" + android:orientation="horizontal"> - + android:layout_weight="1" + android:orientation="vertical" + android:padding="16dp"> - + + + + + + + - + \ No newline at end of file