backlist feature

This commit is contained in:
danijoo
2016-01-08 00:36:24 +01:00
parent 6884f1b396
commit e22c4d8cc1
10 changed files with 510 additions and 23 deletions

View File

@@ -0,0 +1,37 @@
<?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:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp">
<ImageView
android:id="@android:id/icon1"
android:layout_marginEnd="16dp"
tools:src="@mipmap/ic_launcher"
android:layout_width="46dp"
android:layout_height="48dp"
android:layout_alignBottom="@+id/include"
android:layout_alignParentTop="true" />
<LinearLayout
android:layout_gravity="center_vertical"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@android:id/text1"
android:layout_marginBottom="4dp"
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
tools:text="App name"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@android:id/text2"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
tools:text="Package name"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>

View File

@@ -0,0 +1,38 @@
<?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"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical">
<android.support.v7.widget.RecyclerView
tools:listitem="@android:layout/simple_list_item_2"
android:clipToPadding="false"
android:paddingBottom="56dp"
android:visibility="gone"
tools:visibility="visible"
android:id="@+id/blacklistList_list"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<TextView
android:id="@+id/blacklistList_emptyView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:text="@string/blacklist_list_empty" />
<android.support.design.widget.FloatingActionButton
android:id="@+id/blacklistList_fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_marginBottom="16dp"
android:layout_marginEnd="16dp"
android:layout_marginRight="16dp"
android:contentDescription="@string/fab_cd_create_blacklist_item"
android:src="@drawable/ic_action_add"
app:fabSize="normal" />
</FrameLayout>