Created
October 31, 2015 12:36
-
-
Save VDenis/8680dcd06b47b8f7cea3 to your computer and use it in GitHub Desktop.
Popular Movie App Stage 1, duplicate my textviews, imageviews when scrolling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<FrameLayout | |
android:id="@+id/details_view_container" | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
app:layout_behavior="@string/appbar_scrolling_view_behavior" | |
tools:showIn="@layout/activity_details_view" | |
tools:context="com.denis.home.popularmovies.DetailsViewActivity"> | |
</FrameLayout> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ScrollView | |
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"> | |
<RelativeLayout | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
> | |
<TextView | |
android:id="@+id/detail_movie_title" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:background="@color/colorAccent" | |
android:padding="30dp" | |
android:textColor="@android:color/primary_text_dark" | |
android:textSize="24sp" | |
tools:text="@string/debug_text"/> | |
<ImageView | |
android:id="@+id/detail_movie_image" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_below="@id/detail_movie_title" | |
android:padding="5dp" | |
android:scaleType="center" | |
tools:src="@mipmap/ic_launcher" | |
/> | |
<TextView | |
android:id="@+id/detail_movie_voteAverage" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_below="@id/detail_movie_title" | |
android:layout_toRightOf="@id/detail_movie_image" | |
android:layout_toEndOf="@id/detail_movie_image" | |
tools:text="@string/debug_text"/> | |
<TextView | |
android:id="@+id/detail_movie_releseDate" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_below="@id/detail_movie_voteAverage" | |
android:layout_toRightOf="@id/detail_movie_image" | |
android:layout_toEndOf="@id/detail_movie_image" | |
tools:text="@string/debug_text"/> | |
<TextView | |
android:id="@+id/detail_movie_overview" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_below="@id/detail_movie_image" | |
android:layout_marginTop="@dimen/activity_vertical_margin" | |
tools:text="@string/debug_text"/> | |
</RelativeLayout> | |
</ScrollView> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment