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