From 36260dac18d5ad8576776600b800197f32d4baa6 Mon Sep 17 00:00:00 2001 From: chschtsch Date: Wed, 2 Dec 2015 13:08:43 +0300 Subject: [PATCH 01/36] tryna add cardview --- app/build.gradle | 8 +- app/src/main/res/layout/video_item.xml | 139 ++++++++++++++----------- 2 files changed, 83 insertions(+), 64 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 324224856..f37df0b2f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -2,14 +2,14 @@ apply plugin: 'com.android.application' android { compileSdkVersion 23 - buildToolsVersion "23.0.1" + buildToolsVersion "23.0.2" defaultConfig { applicationId "org.schabi.newpipe" minSdkVersion 15 targetSdkVersion 23 - versionCode 6 - versionName "0.6.0" + versionCode 7 + versionName "0.6.1" } buildTypes { release { @@ -31,6 +31,8 @@ dependencies { compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.android.support:support-v4:23.1.1' compile 'com.android.support:design:23.1.1' + compile 'com.android.support:cardview-v7:23.1.1' + compile 'com.android.support:recyclerview-v7:23.1.1' compile 'org.jsoup:jsoup:1.8.3' compile 'org.mozilla:rhino:1.7.7' } diff --git a/app/src/main/res/layout/video_item.xml b/app/src/main/res/layout/video_item.xml index bac7d7964..76aac8c74 100644 --- a/app/src/main/res/layout/video_item.xml +++ b/app/src/main/res/layout/video_item.xml @@ -1,67 +1,84 @@ - + android:layout_height="wrap_content"> - - - - - - - + android:layout_margin="6dp" + card_view:cardCornerRadius="4dp" > - + - \ No newline at end of file + + + + + + + + + + + + + \ No newline at end of file From 10bebf8a896d19cb57e034673602fe79e3b976fc Mon Sep 17 00:00:00 2001 From: chschtsch Date: Wed, 2 Dec 2015 15:27:19 +0300 Subject: [PATCH 02/36] update cards & update dimens structure --- .../layout-land/fragment_videoitem_detail.xml | 61 ++++++++-------- .../fragment_videoitem_detail.xml | 66 +++++++++-------- .../res/layout/fragment_videoitem_detail.xml | 2 +- app/src/main/res/layout/video_item.xml | 73 +++++++++---------- app/src/main/res/values-land/dimens.xml | 14 ++++ app/src/main/res/values-sw600dp/dimens.xml | 14 ++++ app/src/main/res/values/dimens.xml | 14 ++++ app/src/main/res/values/dimentxt.xml | 29 -------- 8 files changed, 144 insertions(+), 129 deletions(-) create mode 100644 app/src/main/res/values-land/dimens.xml create mode 100644 app/src/main/res/values-sw600dp/dimens.xml create mode 100644 app/src/main/res/values/dimens.xml delete mode 100644 app/src/main/res/values/dimentxt.xml diff --git a/app/src/main/res/layout-land/fragment_videoitem_detail.xml b/app/src/main/res/layout-land/fragment_videoitem_detail.xml index 02201f9f4..0a00c4045 100644 --- a/app/src/main/res/layout-land/fragment_videoitem_detail.xml +++ b/app/src/main/res/layout-land/fragment_videoitem_detail.xml @@ -45,10 +45,10 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@id/detailThumbnailView" - android:paddingTop="10dp" - android:paddingBottom="10dp" - android:paddingRight="10dp" - android:paddingLeft="10dp"> + android:paddingTop="5dp" + android:paddingBottom="5dp" + android:paddingRight="5dp" + android:paddingLeft="5dp"> + android:textSize="@dimen/text_video_views_size" + android:textAppearance="?android:attr/textAppearanceLarge" /> + android:textSize="@dimen/text_video_like_size" + android:textAppearance="?android:attr/textAppearanceMedium"/> + -