Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mikhail Shamburov
Sequenia_test_task
Commits
b15408af
Commit
b15408af
authored
3 years ago
by
Mikhail Shamburov
Browse files
Options
Download
Email Patches
Plain Diff
вынес старые ресурсы в app модуль
parent
f57bafcb
version/2.0.0
task/add_sorting_films_by_localized_name
task/create_film_details_screen
task/create_image_loader
task/extract_main_activity_to_ui_layer
task/extract_old_resources_to_app_module
task/films_general_ui_layer
task/fix_films_for_setting_to_show_content_state
task/fix_remarks
task/remove_old_modules
task/update_design
task/update_toolbars
2 merge requests
!66
Обновил тестовое в соответствии с документацией
,
!56
вынес старые ресурсы в app модуль
Changes
31
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
app/build.gradle
+1
-0
app/build.gradle
app/src/main/res/color/genre_background_color.xml
+9
-0
app/src/main/res/color/genre_background_color.xml
app/src/main/res/drawable-v24/ic_launcher_foreground.xml
+31
-0
app/src/main/res/drawable-v24/ic_launcher_foreground.xml
app/src/main/res/drawable/ic_arrow_back.xml
+10
-0
app/src/main/res/drawable/ic_arrow_back.xml
app/src/main/res/drawable/ic_launcher_background.xml
+138
-0
app/src/main/res/drawable/ic_launcher_background.xml
app/src/main/res/drawable/ic_movie.xml
+10
-0
app/src/main/res/drawable/ic_movie.xml
app/src/main/res/layout/film_item_layout.xml
+36
-0
app/src/main/res/layout/film_item_layout.xml
app/src/main/res/layout/genre_item_layout.xml
+20
-0
app/src/main/res/layout/genre_item_layout.xml
app/src/main/res/layout/header_item_layout.xml
+19
-0
app/src/main/res/layout/header_item_layout.xml
app/src/main/res/layouts/activities/layout/main_activity.xml
+5
-1
app/src/main/res/layouts/activities/layout/main_activity.xml
app/src/main/res/layouts/fragments/layout-land/film_details_fragment.xml
+127
-0
...s/layouts/fragments/layout-land/film_details_fragment.xml
app/src/main/res/layouts/fragments/layout/film_details_fragment.xml
+134
-0
...in/res/layouts/fragments/layout/film_details_fragment.xml
app/src/main/res/layouts/fragments/layout/films_general_frament.xml
+69
-0
...in/res/layouts/fragments/layout/films_general_frament.xml
app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
+5
-0
app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
+5
-0
app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
app/src/main/res/mipmap-hdpi/ic_launcher.webp
+0
-0
app/src/main/res/mipmap-hdpi/ic_launcher.webp
app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
+0
-0
app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
app/src/main/res/mipmap-mdpi/ic_launcher.webp
+0
-0
app/src/main/res/mipmap-mdpi/ic_launcher.webp
app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
+0
-0
app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
app/src/main/res/mipmap-xhdpi/ic_launcher.webp
+0
-0
app/src/main/res/mipmap-xhdpi/ic_launcher.webp
with
619 additions
and
1 deletion
+619
-1
app/build.gradle
View file @
b15408af
...
...
@@ -12,6 +12,7 @@ android {
'src/main/res/strings'
,
'src/main/res/layouts'
,
'src/main/res/layouts/activities'
,
'src/main/res/layouts/fragments'
,
]
}
}
...
...
This diff is collapsed.
Click to expand it.
app/src/main/res/color/genre_background_color.xml
0 → 100644
View file @
b15408af
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:color=
"?attr/colorPrimary"
android:state_checked=
"true"
/>
<item
android:color=
"?attr/colorSurface"
android:state_checked=
"false"
/>
</selector>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/src/main/res/drawable-v24/ic_launcher_foreground.xml
0 → 100644
View file @
b15408af
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:aapt=
"http://schemas.android.com/aapt"
android:width=
"108dp"
android:height=
"108dp"
android:viewportWidth=
"108"
android:viewportHeight=
"108"
>
<path
android:pathData=
"M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z"
>
<aapt:attr
name=
"android:fillColor"
>
<gradient
android:startY=
"49.59793"
android:startX=
"42.9492"
android:endY=
"92.4963"
android:endX=
"85.84757"
android:type=
"linear"
>
<item
android:color=
"#44000000"
android:offset=
"0.0"
/>
<item
android:color=
"#00000000"
android:offset=
"1.0"
/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData=
"M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
android:fillColor=
"#FFFFFF"
android:fillType=
"nonZero"
android:strokeWidth=
"1"
android:strokeColor=
"#00000000"
/>
</vector>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/src/main/res/drawable/ic_arrow_back.xml
0 → 100644
View file @
b15408af
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:width=
"24dp"
android:height=
"24dp"
android:viewportWidth=
"24"
android:viewportHeight=
"24"
android:tint=
"?attr/colorOnPrimary"
>
<path
android:fillColor=
"@android:color/white"
android:pathData=
"M17.77,3.77l-1.77,-1.77l-10,10l10,10l1.77,-1.77l-8.23,-8.23z"
/>
</vector>
This diff is collapsed.
Click to expand it.
app/src/main/res/drawable/ic_launcher_background.xml
0 → 100644
View file @
b15408af
<?xml version="1.0" encoding="utf-8"?>
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:width=
"108dp"
android:height=
"108dp"
android:viewportHeight=
"108"
android:viewportWidth=
"108"
>
<path
android:fillColor=
"#3DDC84"
android:pathData=
"M0,0h108v108h-108z"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M9,0L9,108"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M19,0L19,108"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M29,0L29,108"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M39,0L39,108"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M49,0L49,108"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M59,0L59,108"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M69,0L69,108"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M79,0L79,108"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M89,0L89,108"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M99,0L99,108"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M0,9L108,9"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M0,19L108,19"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M0,29L108,29"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M0,39L108,39"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M0,49L108,49"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M0,59L108,59"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M0,69L108,69"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M0,79L108,79"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M0,89L108,89"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M0,99L108,99"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M19,29L89,29"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M19,39L89,39"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M19,49L89,49"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M19,59L89,59"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M19,69L89,69"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M19,79L89,79"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M29,19L29,89"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M39,19L39,89"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M49,19L49,89"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M59,19L59,89"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M69,19L69,89"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
<path
android:fillColor=
"#00000000"
android:pathData=
"M79,19L79,89"
android:strokeColor=
"#33FFFFFF"
android:strokeWidth=
"0.8"
/>
</vector>
This diff is collapsed.
Click to expand it.
app/src/main/res/drawable/ic_movie.xml
0 → 100644
View file @
b15408af
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:width=
"24dp"
android:height=
"24dp"
android:viewportWidth=
"24"
android:viewportHeight=
"24"
android:tint=
"?attr/colorOnSurface"
>
<path
android:fillColor=
"@android:color/white"
android:pathData=
"M18,3v2h-2L16,3L8,3v2L6,5L6,3L4,3v18h2v-2h2v2h8v-2h2v2h2L20,3h-2zM8,17L6,17v-2h2v2zM8,13L6,13v-2h2v2zM8,9L6,9L6,7h2v2zM18,17h-2v-2h2v2zM18,13h-2v-2h2v2zM18,9h-2L16,7h2v2z"
/>
</vector>
This diff is collapsed.
Click to expand it.
app/src/main/res/layout/film_item_layout.xml
0 → 100644
View file @
b15408af
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/film_sheet_height"
android:layout_marginBottom=
"@dimen/small_margin_padding"
android:layout_marginEnd=
"@dimen/small_margin_padding"
style=
"@style/Theme.Sequenia.CardView"
>
<FrameLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<ImageView
android:id=
"@+id/image"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/grey"
android:adjustViewBounds=
"true"
android:scaleType=
"centerCrop"
tools:src=
"@color/black_transparent"
/>
<TextView
android:id=
"@+id/title"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/film_sheet_description_height"
android:layout_gravity=
"bottom"
android:gravity=
"center"
android:maxLines=
"2"
android:ellipsize=
"end"
android:background=
"@color/black_transparent"
tools:text=
"Some DescriptionSome"
style=
"@style/Theme.Sequenia.FilmDescriptionText"
/>
</FrameLayout>
</com.google.android.material.card.MaterialCardView>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/src/main/res/layout/genre_item_layout.xml
0 → 100644
View file @
b15408af
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:id=
"@+id/genre_card"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"@dimen/very_small_margin_padding"
android:layout_marginHorizontal=
"@dimen/small_margin_padding"
android:minWidth=
"@dimen/genre_min_width"
style=
"@style/Theme.Sequenia.GenreFilterCard"
>
<TextView
android:id=
"@+id/genre_name"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_margin=
"@dimen/small_margin_padding"
tools:text=
"Comedy"
style=
"@style/Theme.Sequenia.DescriptionText"
/>
</com.google.android.material.card.MaterialCardView>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/src/main/res/layout/header_item_layout.xml
0 → 100644
View file @
b15408af
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginVertical=
"@dimen/small_margin_padding"
app:cardCornerRadius=
"@dimen/zero_size"
>
<TextView
android:id=
"@+id/title"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_margin=
"@dimen/small_margin_padding"
tools:text=
"Genres"
style=
"@style/Theme.Sequenia.HeaderText"
/>
</androidx.cardview.widget.CardView>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/src/main/res/layouts/activities/layout/main_activity.xml
View file @
b15408af
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<androidx.fragment.app.FragmentContainerView
android:id=
"@+id/fragment_container"
android:name=
"androidx.navigation.fragment.NavHostFragment"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
/>
android:layout_height=
"match_parent"
app:defaultNavHost=
"true"
app:navGraph=
"@navigation/nav_graph"
/>
</FrameLayout>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/src/main/res/layouts/fragments/layout-land/film_details_fragment.xml
0 → 100644
View file @
b15408af
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
<com.google.android.material.appbar.MaterialToolbar
android:layout_width=
"match_parent"
android:layout_height=
"?attr/actionBarSize"
style=
"@style/Theme.Sequenia.Toolbar"
>
<com.google.android.material.button.MaterialButton
android:id=
"@+id/back_button"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
style=
"@style/Theme.Sequenia.BackButton"
/>
<TextView
android:id=
"@+id/toolbar_title"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
style=
"@style/Theme.Sequenia.AppBarTitle"
/>
</com.google.android.material.appbar.MaterialToolbar>
<ScrollView
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:fillViewport=
"true"
>
<FrameLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:paddingHorizontal=
"@dimen/small_margin_padding"
android:paddingVertical=
"@dimen/small_margin_padding"
>
<ProgressBar
android:id=
"@+id/progress_bar"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
/>
<TextView
android:id=
"@+id/not_found_error_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:visibility=
"gone"
android:text=
"@string/film_not_found"
/>
<LinearLayout
android:id=
"@+id/general_film_info_layout"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:layout_gravity=
"top"
android:visibility=
"gone"
tools:visibility=
"visible"
>
<com.google.android.material.imageview.ShapeableImageView
android:id=
"@+id/image"
android:layout_width=
"180dp"
android:layout_height=
"270dp"
android:layout_marginStart=
"@dimen/medium_margin_padding"
android:background=
"@color/grey"
app:shapeAppearanceOverlay=
"@style/Theme.Sequenia.RoundedImage"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintEnd_toStartOf=
"@+id/info_layout"
/>
<LinearLayout
android:id=
"@+id/info_layout"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"@dimen/small_margin_padding"
android:layout_marginHorizontal=
"@dimen/medium_margin_padding"
android:orientation=
"vertical"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toEndOf=
"@id/image"
app:layout_constraintTop_toTopOf=
"parent"
>
<TextView
android:id=
"@+id/original_name"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:textStyle=
"bold"
tools:text=
"Some Film"
style=
"@style/Theme.Sequenia.DescriptionText"
/>
<TextView
android:id=
"@+id/year"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/small_margin_padding"
tools:text=
"Year: 2002"
style=
"@style/Theme.Sequenia.DescriptionText"
/>
<TextView
android:id=
"@+id/rating"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/small_margin_padding"
tools:text=
"Rating: 7.3"
style=
"@style/Theme.Sequenia.DescriptionText"
/>
<TextView
android:id=
"@+id/genres"
android:layout_width=
"match_parent"
android:layout_marginTop=
"@dimen/small_margin_padding"
android:layout_height=
"wrap_content"
tools:text=
"Genres: drama, comedy, horror"
style=
"@style/Theme.Sequenia.DescriptionText"
/>
<TextView
android:id=
"@+id/description"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/small_margin_padding"
tools:text=
"Such a long description"
style=
"@style/Theme.Sequenia.DescriptionText"
/>
</LinearLayout>
</LinearLayout>
</FrameLayout>
</ScrollView>
</LinearLayout>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/src/main/res/layouts/fragments/layout/film_details_fragment.xml
0 → 100644
View file @
b15408af
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
<com.google.android.material.appbar.MaterialToolbar
android:layout_width=
"match_parent"
android:layout_height=
"?attr/actionBarSize"
style=
"@style/Theme.Sequenia.Toolbar"
>
<com.google.android.material.button.MaterialButton
android:id=
"@+id/back_button"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
style=
"@style/Theme.Sequenia.BackButton"
/>
<TextView
android:id=
"@+id/toolbar_title"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
style=
"@style/Theme.Sequenia.AppBarTitle"
/>
</com.google.android.material.appbar.MaterialToolbar>
<ScrollView
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:fillViewport=
"true"
>
<FrameLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:paddingHorizontal=
"@dimen/small_margin_padding"
android:paddingVertical=
"@dimen/small_margin_padding"
>
<ProgressBar
android:id=
"@+id/progress_bar"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
/>
<TextView
android:id=
"@+id/not_found_error_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:visibility=
"gone"
android:text=
"@string/film_not_found"
/>
<androidx.constraintlayout.widget.ConstraintLayout
android:id=
"@+id/general_film_info_layout"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:visibility=
"gone"
tools:visibility=
"visible"
>
<com.google.android.material.imageview.ShapeableImageView
android:id=
"@+id/image"
android:layout_width=
"@dimen/film_image_width"
android:layout_height=
"@dimen/film_image_height"
android:layout_marginStart=
"@dimen/medium_margin_padding"
android:background=
"@color/grey"
app:shapeAppearanceOverlay=
"@style/Theme.Sequenia.RoundedImage"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintEnd_toStartOf=
"@+id/info_layout"
/>
<LinearLayout
android:id=
"@+id/info_layout"
android:layout_width=
"0dp"
android:layout_height=
"0dp"
android:layout_marginBottom=
"@dimen/small_margin_padding"
android:layout_marginHorizontal=
"@dimen/medium_margin_padding"
android:orientation=
"vertical"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toEndOf=
"@id/image"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintBottom_toTopOf=
"@id/description"
>
<TextView
android:id=
"@+id/original_name"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:textStyle=
"bold"
tools:text=
"Some Film"
style=
"@style/Theme.Sequenia.DescriptionText"
/>
<TextView
android:id=
"@+id/year"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/small_margin_padding"
tools:text=
"Year: 2002"
style=
"@style/Theme.Sequenia.DescriptionText"
/>
<TextView
android:id=
"@+id/rating"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/small_margin_padding"
tools:text=
"Rating: 7.3"
style=
"@style/Theme.Sequenia.DescriptionText"
/>
<TextView
android:id=
"@+id/genres"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/small_margin_padding"
app:layout_constraintTop_toBottomOf=
"@+id/image"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintBottom_toTopOf=
"@id/description"
tools:text=
"Genres: drama, comedy, horror"
style=
"@style/Theme.Sequenia.DescriptionText"
/>
</LinearLayout>
<TextView
android:id=
"@+id/description"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/small_margin_padding"
app:layout_constraintTop_toBottomOf=
"@+id/image"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
tools:text=
"Such a long description"
style=
"@style/Theme.Sequenia.DescriptionText"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</FrameLayout>
</ScrollView>
</LinearLayout>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/src/main/res/layouts/fragments/layout/films_general_frament.xml
0 → 100644
View file @
b15408af
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
<com.google.android.material.appbar.MaterialToolbar
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
style=
"@style/Theme.Sequenia.Toolbar"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/general"
style=
"@style/Theme.Sequenia.AppBarTitle"
/>
</com.google.android.material.appbar.MaterialToolbar>
<FrameLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<LinearLayout
android:id=
"@+id/loading_error_content"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:visibility=
"gone"
android:orientation=
"vertical"
tools:visibility=
"visible"
>
<TextView
android:id=
"@+id/error_description"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:text=
"@string/loading_error_message"
style=
"@style/Theme.Sequenia.DescriptionText"
/>
<TextView
android:id=
"@+id/repeat_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_marginTop=
"@dimen/medium_margin_padding"
android:clickable=
"true"
android:focusable=
"true"
android:textColor=
"?attr/colorPrimary"
android:text=
"@string/retry"
style=
"@style/Theme.Sequenia.DescriptionText"
/>
</LinearLayout>
<ProgressBar
android:id=
"@+id/progress_bar"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:visibility=
"gone"
/>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/recycler_view"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:visibility=
"visible"
tools:visibility=
"visible"
/>
</FrameLayout>
</LinearLayout>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
0 → 100644
View file @
b15408af
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<background
android:drawable=
"@drawable/ic_launcher_background"
/>
<foreground
android:drawable=
"@drawable/ic_launcher_foreground"
/>
</adaptive-icon>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
0 → 100644
View file @
b15408af
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<background
android:drawable=
"@drawable/ic_launcher_background"
/>
<foreground
android:drawable=
"@drawable/ic_launcher_foreground"
/>
</adaptive-icon>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/src/main/res/mipmap-hdpi/ic_launcher.webp
0 → 100644
View file @
b15408af
1.37 KB
This diff is collapsed.
Click to expand it.
app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
0 → 100644
View file @
b15408af
2.83 KB
This diff is collapsed.
Click to expand it.
app/src/main/res/mipmap-mdpi/ic_launcher.webp
0 → 100644
View file @
b15408af
982 Bytes
This diff is collapsed.
Click to expand it.
app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
0 → 100644
View file @
b15408af
1.73 KB
This diff is collapsed.
Click to expand it.
app/src/main/res/mipmap-xhdpi/ic_launcher.webp
0 → 100644
View file @
b15408af
1.86 KB
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help