🚧 delete the header and resize the elements

resize the elements in the main activity view
features/retrofit/1
Jordan ARTZET 2 years ago
parent 5a174fc2f6
commit ae147111a7

@ -17,6 +17,7 @@ class MoviesFragment(
private val context : MainActivity
) : Fragment() {
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
val view = inflater.inflate(R.layout.fragment_movies, container, false)

@ -7,42 +7,15 @@
android:layout_height="match_parent"
tools:context=".ui.activity.MainActivity">
<LinearLayout
android:id="@+id/home_page_header_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="@drawable/home_page_header"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:id="@+id/home_page_subtitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/home_page_subtitle"
android:textColor="#FFF"
android:textSize="24sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="parent" />
<androidx.appcompat.widget.SearchView
android:id="@+id/searchView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/home_page_subtitle" />
</LinearLayout>
<FrameLayout
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="110dp"
android:layout_marginBottom="70dp"
android:layout_marginBottom="75dp"
app:layout_constraintBottom_toTopOf="@+id/navigation_view"
app:layout_constraintTop_toBottomOf="@+id/home_page_header_container" />
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/navigation_view"
@ -51,7 +24,6 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:menu="@menu/bottom_navigation_menu"
/>
app:menu="@menu/bottom_navigation_menu" />
</androidx.constraintlayout.widget.ConstraintLayout>

@ -1,6 +1,6 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.MovieApplication" parent="@style/Theme.Material3.Light.NoActionBar">
<style name="Theme.MovieApplication" parent="@style/Theme.Material3.Light">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/light_blue</item>
<item name="colorPrimaryVariant">@color/dark_blue</item>

Loading…
Cancel
Save