From ac5e981cbc40191538276289a581892c8dc72e9d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 1 Jun 2015 22:39:33 +0300 Subject: [PATCH] add a placeholder account icon to drawer --- .../org/fox/ttrss/FeedCategoriesFragment.java | 2 +- .../src/main/res/drawable/circle_bg.xml | 12 ++++++++++++ .../src/main/res/layout/drawer_header.xml | 19 ++++++++++++++++++- 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 org.fox.ttrss/src/main/res/drawable/circle_bg.xml diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedCategoriesFragment.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedCategoriesFragment.java index 969a11f2..717375e2 100755 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedCategoriesFragment.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedCategoriesFragment.java @@ -26,7 +26,6 @@ import android.widget.AdapterView.AdapterContextMenuInfo; import android.widget.AdapterView.OnItemClickListener; import android.widget.ArrayAdapter; import android.widget.ImageButton; -import android.widget.ImageView; import android.widget.ListView; import android.widget.TextView; @@ -241,6 +240,7 @@ public class FeedCategoriesFragment extends Fragment implements OnItemClickListe } catch (MalformedURLException e) { server.setText(""); } + } catch (InflateException e) { // welp couldn't inflate header i guess e.printStackTrace(); diff --git a/org.fox.ttrss/src/main/res/drawable/circle_bg.xml b/org.fox.ttrss/src/main/res/drawable/circle_bg.xml new file mode 100644 index 00000000..404de097 --- /dev/null +++ b/org.fox.ttrss/src/main/res/drawable/circle_bg.xml @@ -0,0 +1,12 @@ + + + + + + + \ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/layout/drawer_header.xml b/org.fox.ttrss/src/main/res/layout/drawer_header.xml index f87f942b..76094191 100755 --- a/org.fox.ttrss/src/main/res/layout/drawer_header.xml +++ b/org.fox.ttrss/src/main/res/layout/drawer_header.xml @@ -16,13 +16,30 @@ android:tint="?colorPrimaryDark" android:tintMode="multiply" /> + + + + + + android:layout_alignParentStart="true" + android:id="@+id/linearLayout">