Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/PojavLauncher
Path: blob/v3_openjdk/app_pojavlauncher/src/main/res/layout/view_mod.xml
2130 views
1
<?xml version="1.0" encoding="utf-8"?>
2
<androidx.constraintlayout.widget.ConstraintLayout
3
xmlns:android="http://schemas.android.com/apk/res/android"
4
xmlns:app="http://schemas.android.com/apk/res-auto"
5
xmlns:tools="http://schemas.android.com/tools"
6
android:layout_width="match_parent"
7
android:layout_height="wrap_content"
8
android:background="@drawable/background_line"
9
android:paddingHorizontal="@dimen/_2sdp"
10
android:paddingVertical="@dimen/_2sdp"
11
android:layout_marginVertical="@dimen/padding_medium"
12
>
13
14
<ImageView
15
android:id="@+id/mod_thumbnail_imageview"
16
android:layout_width="@dimen/_65sdp"
17
android:layout_height="@dimen/_65sdp"
18
19
app:layout_constraintStart_toStartOf="parent"
20
app:layout_constraintTop_toTopOf="parent"
21
22
tools:src="@mipmap/ic_launcher_foreground"
23
/>
24
25
<ImageView
26
android:id="@+id/mod_source_imageview"
27
android:layout_width="@dimen/_13sdp"
28
android:layout_height="@dimen/_13sdp"
29
android:layout_marginTop="3dp"
30
31
android:layout_marginEnd="3dp"
32
android:scaleType="centerCrop"
33
app:layout_constraintEnd_toEndOf="parent"
34
app:layout_constraintTop_toTopOf="parent"
35
tools:src="@mipmap/ic_launcher_foreground" />
36
37
<TextView
38
android:id="@+id/mod_title_textview"
39
style="@style/TextAppearance.AppCompat.Body2"
40
android:layout_width="0dp"
41
android:layout_height="wrap_content"
42
android:maxLines="1"
43
android:layout_marginStart="@dimen/padding_moderate"
44
android:ellipsize="end"
45
46
app:layout_constraintHorizontal_bias="0.0"
47
app:layout_constraintEnd_toStartOf="@+id/mod_source_imageview"
48
app:layout_constraintStart_toEndOf="@+id/mod_thumbnail_imageview"
49
app:layout_constraintTop_toTopOf="parent"
50
tools:text="Feed the beast - Reforged" />
51
52
<TextView
53
android:id="@+id/mod_body_textview"
54
style="@style/TextAppearance.AppCompat.Body1"
55
android:layout_width="0dp"
56
android:layout_height="wrap_content"
57
android:layout_marginStart="@dimen/padding_medium"
58
android:layout_marginEnd="@dimen/padding_medium"
59
android:ellipsize="end"
60
android:maxLines="3"
61
62
app:layout_constraintEnd_toEndOf="parent"
63
app:layout_constraintBottom_toBottomOf="parent"
64
app:layout_constraintStart_toStartOf="@+id/mod_title_textview"
65
app:layout_constraintTop_toBottomOf="@+id/mod_title_textview"
66
app:layout_constraintHorizontal_bias="0.0"
67
app:layout_constraintVertical_bias="0.0"
68
tools:text="Feed the beast - Reforged is a machine and magic focused modpack, with no respect for the minimum requirements of minecraft. Very long text" />
69
70
71
<!--
72
When clicked for the first time, the view is extended with more information.
73
Inflating later is cheaper, hence the stub
74
-->
75
<ViewStub
76
android:id="@+id/mod_limited_state_stub"
77
android:layout_width="match_parent"
78
android:layout_height="wrap_content"
79
android:layout="@layout/view_mod_extended"
80
app:layout_constraintTop_toBottomOf="@id/mod_thumbnail_imageview"/>
81
82
83
84
</androidx.constraintlayout.widget.ConstraintLayout>
85