Skip to content

Commit

Permalink
fix(launcheractivity): Use a dedicated layout for portrait
Browse files Browse the repository at this point in the history
  • Loading branch information
axel358 committed Sep 21, 2024
1 parent e7385fc commit 51ad2af
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 8 deletions.
48 changes: 48 additions & 0 deletions app/src/main/res/layout-port/activity_launcher.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ll_background"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="horizontal">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1.0"
android:orientation="vertical">

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/desktop_apps_gv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp" />
</LinearLayout>

<com.google.android.material.button.MaterialButton
android:id="@+id/service_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/lets_start" />

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1.0"
android:gravity="end"
android:orientation="vertical">

<EditText
android:id="@+id/notes_et"
android:layout_width="wrap_content"
android:layout_height="260dp"
android:layout_margin="10dp"
android:background="@drawable/notes_background"
android:ems="10"
android:gravity="start"
android:inputType="textMultiLine"
android:padding="10dp"
android:textColor="#FF121212"
android:textSize="17sp" />
</LinearLayout>

</LinearLayout>
16 changes: 8 additions & 8 deletions app/src/main/res/layout/activity_launcher.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ll_background"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="horizontal" >
android:orientation="horizontal">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1.0"
android:orientation="vertical"
android:padding="10dp" >
android:orientation="vertical">

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/desktop_apps_gv"
android:layout_width="220dp"
android:layout_height="wrap_content" />
android:layout_height="wrap_content"
android:layout_margin="10dp" />
</LinearLayout>

<com.google.android.material.button.MaterialButton
Expand All @@ -29,13 +29,13 @@
android:layout_height="match_parent"
android:layout_weight="1.0"
android:gravity="end"
android:orientation="vertical"
android:padding="16dp" >
android:orientation="vertical">

<EditText
android:id="@+id/notes_et"
android:layout_width="230dp"
android:layout_height="260dp"
android:layout_margin="10dp"
android:background="@drawable/notes_background"
android:ems="10"
android:gravity="start"
Expand Down

0 comments on commit 51ad2af

Please sign in to comment.