Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/PojavLauncher
Path: blob/v3_openjdk/app_pojavlauncher/src/main/res/layout/fragment_launcher.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:id="@+id/fragment_menu_main"
7
android:gravity="top"
8
android:layout_width="fill_parent"
9
android:layout_height="fill_parent"
10
android:orientation="vertical"
11
android:background="@color/background_app"
12
>
13
<ScrollView
14
android:layout_width="match_parent"
15
android:layout_height="0dp"
16
app:layout_constraintTop_toTopOf="parent"
17
app:layout_constraintBottom_toTopOf="@id/mc_version_spinner">
18
<androidx.constraintlayout.widget.ConstraintLayout
19
android:layout_width="match_parent"
20
android:layout_height="wrap_content">
21
<androidx.constraintlayout.widget.Guideline
22
android:id="@+id/center_guideline"
23
android:layout_width="0dp"
24
android:layout_height="0dp"
25
android:orientation="vertical"
26
app:layout_constraintGuide_percent="0.5"/>
27
<com.kdt.mcgui.LauncherMenuButton
28
android:id="@+id/news_button"
29
style="@style/LauncherMenuButton.Universal"
30
android:layout_width="0dp"
31
android:text="@string/mcl_tab_wiki"
32
android:drawableStart="@drawable/ic_menu_news"
33
app:layout_constraintTop_toTopOf="parent"
34
app:layout_constraintStart_toStartOf="parent"
35
app:layout_constraintEnd_toStartOf="@id/social_divider" />
36
<View
37
android:id="@+id/social_divider"
38
style="@style/LauncherFragment_Divider"
39
android:layout_marginVertical="@dimen/padding_large"
40
app:layout_constraintTop_toTopOf="parent"
41
app:layout_constraintStart_toStartOf="@id/center_guideline"
42
app:layout_constraintEnd_toEndOf="@id/center_guideline"
43
app:layout_constraintBottom_toBottomOf="@id/news_button"/>
44
<com.kdt.mcgui.LauncherMenuButton
45
android:id="@+id/discord_button"
46
style="@style/LauncherMenuButton.Universal"
47
android:layout_width="0dp"
48
android:text="@string/mcl_button_discord"
49
android:drawableStart="@drawable/ic_discord"
50
app:layout_constraintTop_toTopOf="parent"
51
app:layout_constraintStart_toEndOf="@id/social_divider"
52
app:layout_constraintEnd_toEndOf="parent"/>
53
54
55
<com.kdt.mcgui.LauncherMenuButton
56
android:id="@+id/custom_control_button"
57
style="@style/LauncherMenuButton.Universal"
58
android:layout_width="match_parent"
59
android:drawableStart="@drawable/ic_menu_custom_controls"
60
android:text="@string/mcl_option_customcontrol"
61
app:layout_constraintTop_toBottomOf="@id/news_button" />
62
63
<com.kdt.mcgui.LauncherMenuButton
64
android:id="@+id/install_jar_button"
65
style="@style/LauncherMenuButton.Universal"
66
android:layout_width="match_parent"
67
android:drawableStart="@drawable/ic_menu_install_jar"
68
android:text="@string/main_install_jar_file"
69
app:layout_constraintTop_toBottomOf="@id/custom_control_button" />
70
71
<com.kdt.mcgui.LauncherMenuButton
72
android:id="@+id/share_logs_button"
73
style="@style/LauncherMenuButton.Universal"
74
android:layout_width="match_parent"
75
android:drawableStart="@android:drawable/ic_menu_share"
76
android:text="@string/main_share_logs"
77
app:layout_constraintTop_toBottomOf="@id/install_jar_button" />
78
79
<com.kdt.mcgui.LauncherMenuButton
80
android:id="@+id/open_files_button"
81
style="@style/LauncherMenuButton.Universal"
82
android:layout_width="match_parent"
83
android:drawableStart="@drawable/ic_folder"
84
android:text="@string/mcl_button_open_directory"
85
app:layout_constraintTop_toBottomOf="@id/share_logs_button" />
86
</androidx.constraintlayout.widget.ConstraintLayout>
87
</ScrollView>
88
89
<com.kdt.mcgui.mcVersionSpinner
90
android:id="@+id/mc_version_spinner"
91
android:layout_width="0dp"
92
android:layout_height="@dimen/_52sdp"
93
android:background="@android:color/transparent"
94
android:drawableEnd="@drawable/spinner_arrow"
95
96
app:drawableEndSize="@dimen/padding_heavy"
97
app:drawableStartIntegerScaling="true"
98
app:drawableStartSize="@dimen/_36sdp"
99
app:drawableEndPadding="@dimen/_1sdp"
100
101
app:layout_constraintBottom_toTopOf="@id/play_button"
102
app:layout_constraintEnd_toStartOf="@+id/edit_profile_button"
103
app:layout_constraintStart_toStartOf="parent" />
104
105
<ImageButton
106
android:id="@+id/edit_profile_button"
107
android:layout_width="@dimen/_52sdp"
108
android:layout_height="@dimen/_52sdp"
109
android:background="?android:attr/selectableItemBackground"
110
111
android:src="@drawable/ic_edit_profile"
112
app:layout_constraintBottom_toBottomOf="@+id/mc_version_spinner"
113
app:layout_constraintEnd_toEndOf="parent"
114
app:layout_constraintTop_toTopOf="@+id/mc_version_spinner" />
115
116
117
<!-- This view is for cosmetic purpose only -->
118
<View
119
android:id="@+id/_background_display_view"
120
android:layout_width="match_parent"
121
android:layout_height="0dp"
122
android:background="@color/background_bottom_bar"
123
android:translationZ="-1dp"
124
125
app:layout_constraintBottom_toBottomOf="parent"
126
app:layout_constraintTop_toTopOf="@id/mc_version_spinner" />
127
128
<com.kdt.mcgui.MineButton
129
android:id="@+id/play_button"
130
android:layout_width="match_parent"
131
android:layout_height="@dimen/_62sdp"
132
133
android:layout_marginHorizontal="@dimen/_17sdp"
134
android:layout_marginBottom="@dimen/_15sdp"
135
136
android:textAllCaps="true"
137
android:text="@string/main_play"
138
app:layout_constraintBottom_toBottomOf="parent"
139
/>
140
141
</androidx.constraintlayout.widget.ConstraintLayout>
142
143
144