fragment_app_links: Make app links layout scrollable
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -36,138 +36,147 @@
|
|||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/appCompatTextView2" />
|
app:layout_constraintTop_toBottomOf="@+id/appCompatTextView2" />
|
||||||
|
|
||||||
<RelativeLayout
|
<ScrollView
|
||||||
android:id="@+id/playStoreLayout"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="0dp"
|
||||||
android:layout_marginHorizontal="@dimen/margin_normal"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
android:layout_marginVertical="@dimen/margin_large"
|
|
||||||
android:background="@drawable/bg_outlined_padded"
|
|
||||||
android:orientation="horizontal"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/appCompatTextView">
|
app:layout_constraintTop_toBottomOf="@+id/appCompatTextView">
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<LinearLayout
|
||||||
android:id="@+id/playStoreTitle"
|
android:orientation="vertical"
|
||||||
style="@style/AuroraTextStyle.Subtitle"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content">
|
||||||
android:layout_toStartOf="@id/playStoreButton"
|
|
||||||
android:text="@string/app_link_play_store"
|
|
||||||
android:textSize="18sp"
|
|
||||||
android:textStyle="bold" />
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<RelativeLayout
|
||||||
android:id="@+id/playStoreDesc"
|
android:id="@+id/playStoreLayout"
|
||||||
style="@style/AuroraTextStyle.Line1"
|
android:layout_width="match_parent"
|
||||||
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_marginHorizontal="@dimen/margin_normal"
|
||||||
android:layout_below="@+id/playStoreTitle"
|
android:layout_marginVertical="@dimen/margin_small"
|
||||||
android:layout_alignStart="@id/playStoreTitle"
|
android:background="@drawable/bg_outlined_padded"
|
||||||
android:layout_alignEnd="@id/playStoreTitle"
|
android:orientation="horizontal"
|
||||||
android:layout_marginTop="@dimen/margin_xxsmall"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
android:maxLines="5"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
android:text="@string/google_play_store_desc" />
|
app:layout_constraintTop_toBottomOf="@+id/appCompatTextView">
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:id="@+id/playStoreButton"
|
android:id="@+id/playStoreTitle"
|
||||||
style="@style/Widget.Material3.Button.TextButton.Dialog.Flush"
|
style="@style/AuroraTextStyle.Subtitle"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_toStartOf="@id/playStoreButton"
|
||||||
android:layout_centerVertical="true"
|
android:text="@string/app_link_play_store" />
|
||||||
android:layout_marginStart="@dimen/margin_small"
|
|
||||||
android:text="@string/action_enable" />
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|
||||||
<RelativeLayout
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:id="@+id/marketLayout"
|
android:id="@+id/playStoreDesc"
|
||||||
android:layout_width="match_parent"
|
style="@style/AuroraTextStyle.Line1"
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_marginHorizontal="@dimen/margin_normal"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginVertical="@dimen/margin_large"
|
android:layout_below="@+id/playStoreTitle"
|
||||||
android:background="@drawable/bg_outlined_padded"
|
android:layout_alignStart="@id/playStoreTitle"
|
||||||
android:orientation="horizontal"
|
android:layout_alignEnd="@id/playStoreTitle"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
android:layout_marginTop="@dimen/margin_xxsmall"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
android:maxLines="5"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/playStoreLayout">
|
android:text="@string/google_play_store_desc" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/marketTitle"
|
android:id="@+id/playStoreButton"
|
||||||
style="@style/AuroraTextStyle.Subtitle"
|
style="@style/Widget.Material3.Button.TextButton.Dialog.Flush"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_toStartOf="@id/marketButton"
|
android:layout_alignParentEnd="true"
|
||||||
android:text="@string/app_link_android_market"
|
android:layout_centerVertical="true"
|
||||||
android:textSize="18sp"
|
android:layout_marginStart="@dimen/margin_small"
|
||||||
android:textStyle="bold" />
|
android:text="@string/action_enable" />
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<RelativeLayout
|
||||||
android:id="@+id/marketDesc"
|
android:id="@+id/marketLayout"
|
||||||
style="@style/AuroraTextStyle.Line1"
|
android:layout_width="match_parent"
|
||||||
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_marginHorizontal="@dimen/margin_normal"
|
||||||
android:layout_below="@+id/marketTitle"
|
android:layout_marginVertical="@dimen/margin_small"
|
||||||
android:layout_alignStart="@id/marketTitle"
|
android:background="@drawable/bg_outlined_padded"
|
||||||
android:layout_alignEnd="@id/marketTitle"
|
android:orientation="horizontal"
|
||||||
android:layout_marginTop="@dimen/margin_xxsmall"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
android:maxLines="5"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
android:text="@string/android_market_desc" />
|
app:layout_constraintTop_toBottomOf="@+id/playStoreLayout">
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:id="@+id/marketButton"
|
android:id="@+id/marketTitle"
|
||||||
style="@style/Widget.Material3.Button.TextButton.Dialog.Flush"
|
style="@style/AuroraTextStyle.Subtitle"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_toStartOf="@id/marketButton"
|
||||||
android:layout_centerVertical="true"
|
android:text="@string/app_link_android_market" />
|
||||||
android:layout_marginStart="@dimen/margin_small"
|
|
||||||
android:text="@string/action_enable" />
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|
||||||
<RelativeLayout
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:id="@+id/amazonAppStoreLayout"
|
android:id="@+id/marketDesc"
|
||||||
android:layout_width="match_parent"
|
style="@style/AuroraTextStyle.Line1"
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_marginHorizontal="@dimen/margin_normal"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginVertical="@dimen/margin_large"
|
android:layout_below="@+id/marketTitle"
|
||||||
android:background="@drawable/bg_outlined_padded"
|
android:layout_alignStart="@id/marketTitle"
|
||||||
android:orientation="horizontal"
|
android:layout_alignEnd="@id/marketTitle"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
android:layout_marginTop="@dimen/margin_xxsmall"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
android:maxLines="5"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/marketLayout">
|
android:text="@string/android_market_desc" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/amazonAppStoreTitle"
|
android:id="@+id/marketButton"
|
||||||
style="@style/AuroraTextStyle.Subtitle"
|
style="@style/Widget.Material3.Button.TextButton.Dialog.Flush"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_toStartOf="@id/amazonAppStoreButton"
|
android:layout_alignParentEnd="true"
|
||||||
android:text="@string/app_link_amazon_appstore"
|
android:layout_centerVertical="true"
|
||||||
android:textSize="18sp"
|
android:layout_marginStart="@dimen/margin_small"
|
||||||
android:textStyle="bold" />
|
android:text="@string/action_enable" />
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<RelativeLayout
|
||||||
android:id="@+id/amazonAppStoreDesc"
|
android:id="@+id/amazonAppStoreLayout"
|
||||||
style="@style/AuroraTextStyle.Line1"
|
android:layout_width="match_parent"
|
||||||
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_marginHorizontal="@dimen/margin_normal"
|
||||||
android:layout_below="@+id/amazonAppStoreTitle"
|
android:layout_marginVertical="@dimen/margin_small"
|
||||||
android:layout_alignStart="@id/amazonAppStoreTitle"
|
android:background="@drawable/bg_outlined_padded"
|
||||||
android:layout_alignEnd="@id/amazonAppStoreTitle"
|
android:orientation="horizontal"
|
||||||
android:layout_marginTop="@dimen/margin_xxsmall"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
android:maxLines="5"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
android:text="@string/amazon_appstore_desc" />
|
app:layout_constraintTop_toBottomOf="@+id/marketLayout">
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:id="@+id/amazonAppStoreButton"
|
android:id="@+id/amazonAppStoreTitle"
|
||||||
style="@style/Widget.Material3.Button.TextButton.Dialog.Flush"
|
style="@style/AuroraTextStyle.Subtitle"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_toStartOf="@id/amazonAppStoreButton"
|
||||||
android:layout_centerVertical="true"
|
android:text="@string/app_link_amazon_appstore" />
|
||||||
android:layout_marginStart="@dimen/margin_small"
|
|
||||||
android:text="@string/action_enable" />
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
</RelativeLayout>
|
android:id="@+id/amazonAppStoreDesc"
|
||||||
|
style="@style/AuroraTextStyle.Line1"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_below="@+id/amazonAppStoreTitle"
|
||||||
|
android:layout_alignStart="@id/amazonAppStoreTitle"
|
||||||
|
android:layout_alignEnd="@id/amazonAppStoreTitle"
|
||||||
|
android:layout_marginTop="@dimen/margin_xxsmall"
|
||||||
|
android:maxLines="5"
|
||||||
|
android:text="@string/amazon_appstore_desc" />
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/amazonAppStoreButton"
|
||||||
|
style="@style/Widget.Material3.Button.TextButton.Dialog.Flush"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentEnd="true"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_marginStart="@dimen/margin_small"
|
||||||
|
android:text="@string/action_enable" />
|
||||||
|
</RelativeLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
</ScrollView>
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|||||||
Reference in New Issue
Block a user