Commit c0374bc7 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Reduce overdrawing

parent c239298c
......@@ -3,8 +3,7 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="?attr/background_default_darker" >
android:layout_height="fill_parent" >
<include layout="@layout/tab_layout" />
......
......@@ -2,8 +2,7 @@
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="?attr/background_default_darker">
android:layout_height="fill_parent">
<include layout="@layout/tab_layout" />
......
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/background_default_darker" >
android:layout_height="match_parent" >
<org.videolan.vlc.gui.view.SwipeRefreshLayout
android:id="@+id/swipeLayout"
......@@ -10,31 +9,26 @@
android:layout_height="match_parent"
android:layout_gravity="center_horizontal"
android:background="?attr/background_default">
<FrameLayout
<android.support.v7.widget.RecyclerView
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/background_default">
<android.support.v7.widget.RecyclerView
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
android:paddingTop="10dp"
android:paddingBottom="@dimen/listview_bottom_padding"
android:paddingLeft="@dimen/listview_side_padding"
android:paddingRight="@dimen/listview_side_padding" />
<TextView
android:id="@+id/android:empty"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:paddingTop="30dip"
android:text="@string/nohistory"
android:textSize="20sp"
android:visibility="gone"/>
</FrameLayout>
android:clipToPadding="false"
android:paddingTop="10dp"
android:paddingBottom="@dimen/listview_bottom_padding"
android:paddingLeft="@dimen/listview_side_padding"
android:paddingRight="@dimen/listview_side_padding" />
</org.videolan.vlc.gui.view.SwipeRefreshLayout>
<TextView
android:id="@+id/android:empty"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:paddingTop="30dip"
android:text="@string/nohistory"
android:textSize="20sp"
android:visibility="gone"/>
<include layout="@layout/shadow_top"/>
</FrameLayout>
\ No newline at end of file
......@@ -13,8 +13,7 @@
xmlns:vlc="http://schemas.android.com/apk/res-auto"
android:id="@+id/coordinator"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/background_default_darker" >
android:layout_height="match_parent" >
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
android:layout_width="match_parent"
......@@ -66,7 +65,8 @@
android:paddingBottom="@dimen/listview_bottom_padding"
android:paddingLeft="10dp"
android:paddingRight="10dp"
style="@style/Theme.VLC.List" />
style="@style/Theme.VLC.List"
android:background="?attr/background_default" />
</FrameLayout>
<android.support.design.widget.FloatingActionButton
......
......@@ -164,11 +164,11 @@ public class HistoryFragment extends MediaBrowserFragment implements IRefreshabl
private void updateEmptyView() {
if (mHistoryAdapter.isEmpty()){
mRecyclerView.setVisibility(View.GONE);
mSwipeRefreshLayout.setVisibility(View.GONE);
mEmptyView.setVisibility(View.VISIBLE);
} else {
mEmptyView.setVisibility(View.GONE);
mRecyclerView.setVisibility(View.VISIBLE);
mSwipeRefreshLayout.setVisibility(View.VISIBLE);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment