From b493755550d6fec0f4e2605e2a2d3e48dfe951c6 Mon Sep 17 00:00:00 2001 From: danijoo Date: Fri, 1 Jan 2016 13:37:46 +0100 Subject: [PATCH] create notification layout --- .../NotificationCreationFragment.java | 66 +++++++- .../SpinnerIconAdapter.java | 55 +++++++ app/src/main/res/drawable-hdpi/ic_adb.png | Bin 0 -> 328 bytes .../res/drawable-hdpi/ic_bluetooth_audio.png | Bin 0 -> 376 bytes .../main/res/drawable-hdpi/ic_drive_eta.png | Bin 0 -> 295 bytes .../main/res/drawable-hdpi/ic_event_note.png | Bin 0 -> 211 bytes .../res/drawable-hdpi/ic_ondemand_video.png | Bin 0 -> 253 bytes app/src/main/res/drawable-hdpi/ic_power.png | Bin 0 -> 206 bytes app/src/main/res/drawable-hdpi/ic_sd_card.png | Bin 0 -> 198 bytes app/src/main/res/drawable-hdpi/ic_sms.png | Bin 0 -> 193 bytes app/src/main/res/drawable-mdpi/ic_adb.png | Bin 0 -> 187 bytes .../res/drawable-mdpi/ic_bluetooth_audio.png | Bin 0 -> 265 bytes .../main/res/drawable-mdpi/ic_drive_eta.png | Bin 0 -> 210 bytes .../main/res/drawable-mdpi/ic_event_note.png | Bin 0 -> 115 bytes .../res/drawable-mdpi/ic_ondemand_video.png | Bin 0 -> 211 bytes app/src/main/res/drawable-mdpi/ic_power.png | Bin 0 -> 172 bytes app/src/main/res/drawable-mdpi/ic_sd_card.png | Bin 0 -> 129 bytes app/src/main/res/drawable-mdpi/ic_sms.png | Bin 0 -> 137 bytes app/src/main/res/drawable-xhdpi/ic_adb.png | Bin 0 -> 320 bytes .../res/drawable-xhdpi/ic_bluetooth_audio.png | Bin 0 -> 442 bytes .../main/res/drawable-xhdpi/ic_drive_eta.png | Bin 0 -> 334 bytes .../main/res/drawable-xhdpi/ic_event_note.png | Bin 0 -> 148 bytes .../res/drawable-xhdpi/ic_ondemand_video.png | Bin 0 -> 277 bytes app/src/main/res/drawable-xhdpi/ic_power.png | Bin 0 -> 204 bytes .../main/res/drawable-xhdpi/ic_sd_card.png | Bin 0 -> 189 bytes app/src/main/res/drawable-xhdpi/ic_sms.png | Bin 0 -> 169 bytes app/src/main/res/drawable-xxhdpi/ic_adb.png | Bin 0 -> 450 bytes .../drawable-xxhdpi/ic_bluetooth_audio.png | Bin 0 -> 587 bytes .../main/res/drawable-xxhdpi/ic_drive_eta.png | Bin 0 -> 483 bytes .../res/drawable-xxhdpi/ic_event_note.png | Bin 0 -> 181 bytes .../res/drawable-xxhdpi/ic_ondemand_video.png | Bin 0 -> 393 bytes app/src/main/res/drawable-xxhdpi/ic_power.png | Bin 0 -> 280 bytes .../main/res/drawable-xxhdpi/ic_sd_card.png | Bin 0 -> 283 bytes app/src/main/res/drawable-xxhdpi/ic_sms.png | Bin 0 -> 251 bytes app/src/main/res/drawable-xxxhdpi/ic_adb.png | Bin 0 -> 676 bytes .../drawable-xxxhdpi/ic_bluetooth_audio.png | Bin 0 -> 797 bytes .../res/drawable-xxxhdpi/ic_drive_eta.png | Bin 0 -> 507 bytes .../res/drawable-xxxhdpi/ic_event_note.png | Bin 0 -> 271 bytes .../drawable-xxxhdpi/ic_ondemand_video.png | Bin 0 -> 398 bytes .../main/res/drawable-xxxhdpi/ic_power.png | Bin 0 -> 288 bytes .../main/res/drawable-xxxhdpi/ic_sd_card.png | Bin 0 -> 331 bytes app/src/main/res/drawable-xxxhdpi/ic_sms.png | Bin 0 -> 263 bytes app/src/main/res/layout/main_activity.xml | 30 ++-- .../res/layout/notification_creation_frag.xml | 148 ++++++++++++++++++ ...simple_spinner_dropdown_item_with_icon.xml | 17 ++ .../layout/simple_spinner_item_with_icon.xml | 17 ++ .../res/layout/spinner_item_with_icon.xml | 12 ++ app/src/main/res/values/attrs.xml | 8 + app/src/main/res/values/strings.xml | 41 +++++ 49 files changed, 372 insertions(+), 22 deletions(-) create mode 100644 app/src/main/java/net/headlezz/notificationlogger/SpinnerIconAdapter.java create mode 100644 app/src/main/res/drawable-hdpi/ic_adb.png create mode 100644 app/src/main/res/drawable-hdpi/ic_bluetooth_audio.png create mode 100644 app/src/main/res/drawable-hdpi/ic_drive_eta.png create mode 100644 app/src/main/res/drawable-hdpi/ic_event_note.png create mode 100644 app/src/main/res/drawable-hdpi/ic_ondemand_video.png create mode 100644 app/src/main/res/drawable-hdpi/ic_power.png create mode 100644 app/src/main/res/drawable-hdpi/ic_sd_card.png create mode 100644 app/src/main/res/drawable-hdpi/ic_sms.png create mode 100644 app/src/main/res/drawable-mdpi/ic_adb.png create mode 100644 app/src/main/res/drawable-mdpi/ic_bluetooth_audio.png create mode 100644 app/src/main/res/drawable-mdpi/ic_drive_eta.png create mode 100644 app/src/main/res/drawable-mdpi/ic_event_note.png create mode 100644 app/src/main/res/drawable-mdpi/ic_ondemand_video.png create mode 100644 app/src/main/res/drawable-mdpi/ic_power.png create mode 100644 app/src/main/res/drawable-mdpi/ic_sd_card.png create mode 100644 app/src/main/res/drawable-mdpi/ic_sms.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_adb.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_bluetooth_audio.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_drive_eta.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_event_note.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_ondemand_video.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_power.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_sd_card.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_sms.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_adb.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_bluetooth_audio.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_drive_eta.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_event_note.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_ondemand_video.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_power.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_sd_card.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_sms.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_adb.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_bluetooth_audio.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_drive_eta.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_event_note.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_ondemand_video.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_power.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_sd_card.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_sms.png create mode 100644 app/src/main/res/layout/notification_creation_frag.xml create mode 100644 app/src/main/res/layout/simple_spinner_dropdown_item_with_icon.xml create mode 100644 app/src/main/res/layout/simple_spinner_item_with_icon.xml create mode 100644 app/src/main/res/layout/spinner_item_with_icon.xml create mode 100644 app/src/main/res/values/attrs.xml diff --git a/app/src/main/java/net/headlezz/notificationlogger/NotificationCreationFragment.java b/app/src/main/java/net/headlezz/notificationlogger/NotificationCreationFragment.java index 87a62c4..9b64072 100644 --- a/app/src/main/java/net/headlezz/notificationlogger/NotificationCreationFragment.java +++ b/app/src/main/java/net/headlezz/notificationlogger/NotificationCreationFragment.java @@ -3,21 +3,75 @@ package net.headlezz.notificationlogger; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; -import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; -import android.widget.TextView; +import android.widget.ArrayAdapter; +import android.widget.CheckBox; +import android.widget.EditText; +import android.widget.Spinner; + +import butterknife.Bind; +import butterknife.ButterKnife; public class NotificationCreationFragment extends Fragment { + @Bind(R.id.create_etId) + EditText mEtId; + + @Bind(R.id.create_etTitle) + EditText mEtTitle; + + @Bind(R.id.create_etMessage) + EditText mEtMessage; + + @Bind(R.id.create_cbAutoCancel) + CheckBox mCbAutoCancel; + + @Bind(R.id.create_cbBlink) + CheckBox mCbBlink; + + @Bind(R.id.create_cbSound) + CheckBox mCbSound; + + @Bind(R.id.create_cbVibrate) + CheckBox mCbVibrate; + + @Bind(R.id.create_spCategory) + Spinner mSpCategory; + + @Bind(R.id.create_spIntent) + Spinner mSpIntent; + + @Bind(R.id.create_spIcon) + Spinner mSpIcon; + + final int[] mNotificationIcons = new int[]{ + R.drawable.ic_adb, + R.drawable.ic_bluetooth_audio, + R.drawable.ic_drive_eta, + R.drawable.ic_event_note, + R.drawable.ic_ondemand_video, + R.drawable.ic_power, + R.drawable.ic_sd_card, + R.drawable.ic_sms + }; + @Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { - TextView textView = new TextView(getContext()); - textView.setGravity(Gravity.CENTER); - textView.setText(getClass().getSimpleName()); - return textView; + View view = inflater.inflate(R.layout.notification_creation_frag, container, false); + ButterKnife.bind(this, view); + + ArrayAdapter categoryAdapter = ArrayAdapter.createFromResource(getContext(), R.array.create_categories, android.R.layout.simple_spinner_item); + categoryAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); + mSpCategory.setAdapter(categoryAdapter); + + SpinnerIconAdapter iconAdapter = new SpinnerIconAdapter(getContext(), getResources().getStringArray(R.array.create_icons), mNotificationIcons); + iconAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); + mSpIcon.setAdapter(iconAdapter); + + return view; } } diff --git a/app/src/main/java/net/headlezz/notificationlogger/SpinnerIconAdapter.java b/app/src/main/java/net/headlezz/notificationlogger/SpinnerIconAdapter.java new file mode 100644 index 0000000..b85181e --- /dev/null +++ b/app/src/main/java/net/headlezz/notificationlogger/SpinnerIconAdapter.java @@ -0,0 +1,55 @@ +package net.headlezz.notificationlogger; + +import android.content.Context; +import android.graphics.drawable.Drawable; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.ArrayAdapter; +import android.widget.ImageView; +import android.widget.TextView; + +public class SpinnerIconAdapter extends ArrayAdapter { + + private static final int DROPDOWN_RESOURCE = R.layout.simple_spinner_dropdown_item_with_icon; + private static final int ITEM_RESOURCE = R.layout.simple_spinner_item_with_icon; + + private int[] itemIcons; + private LayoutInflater mInflater; + + public SpinnerIconAdapter(Context context, CharSequence[] items, int[] itemIcons) { + super(context, ITEM_RESOURCE, items); + if(itemIcons.length != getCount()) + throw new IllegalArgumentException("Icon resource size doesnt match item count"); + this.itemIcons = itemIcons; + mInflater = LayoutInflater.from(getContext()); + + } + + @Override + public View getView(int position, View convertView, ViewGroup parent) { + if(convertView == null) { + convertView = mInflater.inflate(ITEM_RESOURCE, parent, false); + } + TextView textView = (TextView) convertView.findViewById(android.R.id.text1); + textView.setText(getItem(position)); + ImageView iconView = (ImageView) convertView.findViewById(R.id.spinner_icon); + Drawable icon = getContext().getResources().getDrawable(itemIcons[position]); + iconView.setImageDrawable(icon); + return convertView; + } + + @Override + public View getDropDownView(int position, View convertView, ViewGroup parent) { + if(convertView == null) { + convertView = mInflater.inflate(DROPDOWN_RESOURCE, parent, false); + } + TextView textView = (TextView) convertView.findViewById(android.R.id.text1); + textView.setText(getItem(position)); + ImageView iconView = (ImageView) convertView.findViewById(R.id.spinner_icon); + Drawable icon = getContext().getResources().getDrawable(itemIcons[position]); + iconView.setImageDrawable(icon); + return convertView; + } + +} diff --git a/app/src/main/res/drawable-hdpi/ic_adb.png b/app/src/main/res/drawable-hdpi/ic_adb.png new file mode 100644 index 0000000000000000000000000000000000000000..2c33dab2a419e001c8d91f4503d698aa9edd764b GIT binary patch literal 328 zcmV-O0k{5%P)Hz>H3>zKnZpG~Y0000t_HFiHnffd6b#ILdp8^CfCfFeb>0w)@-@fbKt%DZClMQRyzmuJ zO(3eanRtR88O}u2wg4=+o1v5885YG)7&;jCf>{eNwVh&M1hVw8Xww0TGclaSu5BHd zC4fa6A6RAsc5S~H5*V}?R$|e%3@Dz&@Ef}}V&EXqc7eeGC%k}7+cdD?7CcF78(75@ tR6z-bDu!AHWjxwcf$~)h;={j)0|2H^-8^Ox!Rr73002ovPDHLkV1lv4by@%b literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-hdpi/ic_event_note.png b/app/src/main/res/drawable-hdpi/ic_event_note.png new file mode 100644 index 0000000000000000000000000000000000000000..5eba6b805a72d89729117e47a3318cfcff2fa293 GIT binary patch literal 211 zcmeAS@N?(olHy`uVBq!ia0vp^(jd&i0wmS%+S~(DvpiiKLn>}1CoEvvkWj(UGJ`=S zt1)^u^Wl1hBP~Es>NTwOSVbG3fV02t$Es@52H6i1dzsMJ-t7hFExtjyF>M8`? zZfd-?t-)c9-hy3boNdez3t8%Nxh(!HX^5ZA;LIGR;UK)fkYTcpk%@wz^sf7S7eb_K z7teOd-Q4I@zTruBN(H;|e!_)ik-glM}3WF8^Xwj)5bw;DoZB3r*Wy!rIO-*kCx4 zfVSsAQ6?;Y!=vp7Lkj~Bj*z^AOIr_v0-or;Ltf&dOxqw^w0zV0v+Da7tuXs00000NkvXXu0mjf D$*N+v literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-hdpi/ic_power.png b/app/src/main/res/drawable-hdpi/ic_power.png new file mode 100644 index 0000000000000000000000000000000000000000..4130f224ff3cdd56c985476c4f01a33d54421585 GIT binary patch literal 206 zcmeAS@N?(olHy`uVBq!ia0vp^(jd&i0wmS%+S~(DQ$1ZALn>}1CrB(xU=+x5xG9w& z7x=(lz{=q!U&6fwmyhv>NgQ0j&?cB5C$H$M%Cr9y$+Ye{A&L30V#*#T(<{8EKI#^Srbn%Fa!ziUS)r*))eSK22WQ%mvv4FO#to^ BMnM1o literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-hdpi/ic_sd_card.png b/app/src/main/res/drawable-hdpi/ic_sd_card.png new file mode 100644 index 0000000000000000000000000000000000000000..880feb146ec4994dbf43e98b0c82b195fba1646c GIT binary patch literal 198 zcmeAS@N?(olHy`uVBq!ia0vp^(jd&i0wmS%+S~(Dy`CAp_#DcZ1B_1`{D07h z{lKllj9u)de4MwQJecKip>0hkORlMf6Tf8A#V~7;EmwJ2bH5&rh-Qx6Dmd9I%V6tG wp(|hd4{}AD@uuEr3yf2IVAl4aQOkpI+0JP9#UTN$K!-7Sy85}Sb4q9e0QXZy?*IS* literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-hdpi/ic_sms.png b/app/src/main/res/drawable-hdpi/ic_sms.png new file mode 100644 index 0000000000000000000000000000000000000000..b18bad38d9d7ad0708be4b3d47ba46b0b0dec0a6 GIT binary patch literal 193 zcmeAS@N?(olHy`uVBq!ia0vp^(jd&i0wmS%+S~(D9iA?ZAr-fh6BgJfB(6xjak!vC z;SP7m@tzA|hd<2Ei0Hkrt(_&eTJRR%gavO8cwGM0;>gG`pCMA!VHb-lOaC_Zgn!Hm z+Ke9R3pyTL{MMStC{V|^sgL2MvWAkf2~)}1Cn#{vFgTN#(DZqR zgqVRuLh!Y78@duD59hX7^LR^MGcZXuU)}J~Ug*rxWk)(6%6BcQ=lM3HtBg@q;(?dL z8rd0Lc8g~)H_bN?{d=70B(uv*7hBi+hEr;ehLmtPUu5)gZItM$+4yrkx2vc1x`Yqu k791rf!xy;jQ(;$R*yCMRb5VuU4CopLPgg&ebxsLQ0OdDBD*ylh literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-mdpi/ic_bluetooth_audio.png b/app/src/main/res/drawable-mdpi/ic_bluetooth_audio.png new file mode 100644 index 0000000000000000000000000000000000000000..56d7de75c93acf8190dadc06f7cf34a37d990eb2 GIT binary patch literal 265 zcmV+k0rvihP)nyBoJ2Q!0?};0k^aOToF!XnG8=E)S!ya;8Lc>@C*pm!HOIiRszXlpeP^1at2mp zW$IvM=|JfWhUZ`n3=9$szZim1O;ZO-{st=g4OYU-;0F{tz%T>dQVpQ8|6tegG8|>t z1{9gauoIUekU7T~wgN?FGi=9H@(ZZw7tlHlsC9=KCZa2O%8&+Blm?`qGiUyD<1d+Qb3277D162+mI8-1Vda=GO+Cf}F zyNWa9lYFdTS;w*$3~l%M7HCBs_|UJ&s61y}1Cn#|KVRx#jX`7s& znDc>Um0rvQw=Rw|9tB8&h4 literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-mdpi/ic_ondemand_video.png b/app/src/main/res/drawable-mdpi/ic_ondemand_video.png new file mode 100644 index 0000000000000000000000000000000000000000..3ec2079f031e6f83a8f86b1cb71092e92c8a61f9 GIT binary patch literal 211 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+0wn(&ce?|mW_h|ehE&{2PFSFpk#ysH0R#J; z^A{L`lFodX|B%VgRlH%78xIek!zsq)x(boiA+Ah0fOYmG2xtXZ->->lQ zM80MgMc4n5bw(k|oi~z#w@h=CJZi<`DlQ>oD3jN`s-wM8(p!K*^d|F4CIxnD9fng; z#s(b*dm638t!qvyFc<}~WJtNlZ&GnNGS892R%k+UuNnix;q+vNAN7CV16|4B>FVdQ I&MBb@0FHe{TL1t6 literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-mdpi/ic_power.png b/app/src/main/res/drawable-mdpi/ic_power.png new file mode 100644 index 0000000000000000000000000000000000000000..ccbdd6f36d0fba0f40590e586579ea1bff84fd58 GIT binary patch literal 172 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+0wn(&ce?|mialK%Ln>}1CoJH#I52@>nQ(*7 zoCo&K%ro*BHk}ARa@asz<10hPMMj06^AqI)SeQkaR09$fmn~xBapm0-64JeJg;?-J zhQpE~s>>UdA{rD9NA8$pd}C@ugTP_y4U@Jz@KzjP-mr-M$KncBizDF|G#CvT7#hw8 V7vH#Tau;YlgQu&X%Q~loCIFT%I!XWl literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-mdpi/ic_sd_card.png b/app/src/main/res/drawable-mdpi/ic_sd_card.png new file mode 100644 index 0000000000000000000000000000000000000000..4bb88a80d24573691b9884319916a99937b41eb3 GIT binary patch literal 129 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+0wn(&ce?|mJUm?-Ln>}1Cnzwh7?>PL))kGmqmN4TL c6DFKsNIo(v#=F2x9B3wkr>mdKI;Vst09}qM_5c6? literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-mdpi/ic_sms.png b/app/src/main/res/drawable-mdpi/ic_sms.png new file mode 100644 index 0000000000000000000000000000000000000000..f68d4d6643267bdc93dc93ca355359a58bd79275 GIT binary patch literal 137 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+0wn(&ce?|m0z6$DLn>}1CnyLR7^xVUJZR{2 zh&1p>`O(j=<{)DFAoPlZwySu9z|(^b literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xhdpi/ic_adb.png b/app/src/main/res/drawable-xhdpi/ic_adb.png new file mode 100644 index 0000000000000000000000000000000000000000..b71a39584406d333d55f43960a1e62f7cb3347e0 GIT binary patch literal 320 zcmV-G0l)rEsX3Cb%p2#eOw@@kUkF4DcV`kwgXhOiIzb@t-OFcE9wlv1Zp!72$8-w zEyAGphgtaK$IQs6z%Nu4E97FkCf2C%pdmtRVki?^*&TA{WIw4Q2AE-wgB%AaAdj8w z*gDHo)DgZMqxd-KGC=DEiLkZ~(?{@@Q3=rFGG&NZMn#~+gPcT0#o;jZ=gq2Kf#_O| zhNdiNN<%KWFcp`EZY=0VLm@NYgVI;&+oL~3Lw6PJQ`ZEpg9e7S&&6TSzJlx z41@P6qM!!%yiF3BG5_FZ5~z{vYE=`LH+$3gl$snp21u=*UM!^gs!zeojMyv*rXjCf0KZaRIMnMevPO4FMKx04}5Jo`^ zYG>F+no*1lv!NPhLydyP8au;wEJm3#R1r364%jF}^m8#hhsyXt)tWJUVED!$hTEt) zNJha7Vq%yF6`c$Bb~u<{jn9K~;F=o2bQ9c|IY<$~!tfF(as_`_&4p@w3nt&8g`65x z9mGOO;*3H-m@&pcgCRyGfW^J>#~>n9{-Y!bW3c<;z-%k9Ob(&MfNT`Z7!!u~NI|R) zX4jBs&<8Ldl72Li*hG5`7DA?Aqhi5q8?a0oDaIg2Jt!fnfLY04aR*|Id4oiP(iIa} zUIVIb0Z{BW1217?W+F+&~z05CKm=aO$bh5!Hn07*qoM6N<$g4l$rY5)KL literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xhdpi/ic_drive_eta.png b/app/src/main/res/drawable-xhdpi/ic_drive_eta.png new file mode 100644 index 0000000000000000000000000000000000000000..ab4bf5fc635d4be40dc2218c7c38c115ec71f3fd GIT binary patch literal 334 zcmV-U0kQsxP)pI0PX;*!UH52{sNVR5)6P) zpsL>tqPP|00Tp~@;38-c7f{uIhAi9)jsc}t5fv$`fhrHa>a2fQ6A%lSf=-`t$wH{+o z1**sbCtW-SEhQLYs!$ax@Eg6J<~rQ00GM gB2XEv!G|&c0D=yQHsKk)Pyhe`07*qoM6N<$g0L}u-T(jq literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xhdpi/ic_event_note.png b/app/src/main/res/drawable-xhdpi/ic_event_note.png new file mode 100644 index 0000000000000000000000000000000000000000..0062b39a9e771f666d131905fe7f7a112184ad88 GIT binary patch literal 148 zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|k0wldT1B8K8w5N+>NX4z>1c^Tn>_sMN``b1% zNyZ%#737XL{E;l>vdd86htT%Po~?`7c-fjY&M}%8c1XPMDQRwVThl9Law9pnK+>eb u>qK~p>Zi(~k<5}F0!N9P8lT*6s0hwl?H4L7velF{r5}E*O^ew0W literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xhdpi/ic_ondemand_video.png b/app/src/main/res/drawable-xhdpi/ic_ondemand_video.png new file mode 100644 index 0000000000000000000000000000000000000000..052f8a382ba467acb2191157c30caaf008ea7f09 GIT binary patch literal 277 zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|k0wldT1B8Lp9Zwg>kcwN$2@DDE?G^E#rANI){dye$c$)`Ud70wuw9|(gfC3NU^3c ZGrX$p{`l&di!soj44$rjF6*2UngGVNVqpLP literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xhdpi/ic_power.png b/app/src/main/res/drawable-xhdpi/ic_power.png new file mode 100644 index 0000000000000000000000000000000000000000..1e9587529f196af491c1e2f1d5f2bb5c5461b067 GIT binary patch literal 204 zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|k0wldT1B8LpWKS2zkcwN$2@c+dM$uWs%XFx8mhk()~_9?1DFAVoIW*y?Y&k!oW+V{wmjip~G{epZG+h0}H z86OV^Hn**Hyw4%^x!0n34u{0o-h)$b+e8u}C(#%Zj9C$+v*jVmtkoYRA;l)|k0wldT1B8K8i>HfYNX4zU*SxtJ6a?5FL{`4q z;-^p%R2c8uc;oVRL6^_x{T|MC6zBSInWv%AXhFkP<82{wm(?X$Vh`PTU^RF4#kFsC zPwZHmEv&-#*xcby3Ex$L{W2MCvV)S45<42tt3p33Xz5TWW-NWGN>gTe~DWM4fyc|Z5 literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xhdpi/ic_sms.png b/app/src/main/res/drawable-xhdpi/ic_sms.png new file mode 100644 index 0000000000000000000000000000000000000000..d746ed617cf73381d5114d1190284967f1093c95 GIT binary patch literal 169 zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|k0wldT1B8K8fv1aONX4zUR}XR?P~c&`P`@cV zy{SohXW$DKGm)wjjw`=DR-94K$tcf})bOEH!8wq<_~yzd3vGJ#oRqtCe?rv?zZB<# z3z#-e$@|YaDP8SuovzF7TXpWzQGc(_%lIaZpICTl)?d>1v~BzgW-M#vslMIj;Qvqh8d*W)PpV6%}t|(=Wx5To=~JCiBO$f zTqQv1Od*J+T9`|M^6+MKWdT-fsd@U$%CO$4wM9npVod3Jr8C62U{Sg*rPLCe(zPtZ zuD?6@OjP&XM{gw5L}YhAV+xaeY*UPF@Uauo9n*En$0}m1!p9n7tjWieMLEnR*|^c@ zFo*p!tR)2| zmrkIoY|OKnuXk9~w%yA?3dhFOA$o1!MN%jkUX?ZVb?>S%!@@&?$0zEC#aQWMO0QsjXC=mvM`~Uy|07*qoM6N<$g7wtZLjV8( literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xxhdpi/ic_bluetooth_audio.png b/app/src/main/res/drawable-xxhdpi/ic_bluetooth_audio.png new file mode 100644 index 0000000000000000000000000000000000000000..d78b4d5c315eb4cde158171b1fa680ed89d9651e GIT binary patch literal 587 zcmV-R0<`^!P)e8G?$SKx9qwb##eiGh5ak!SOIju><;5nQd9k*N=Nt!Ok9Y;&;UTeL%8G3m3x7y`_niqB3#SBQ9j|?M zjoH{EMO7hI6eV6PVp1}%ObJk;FM}ykUhGKSYi`OEiKR}t*s;2gE=s814`rK!?}h&@ ZegL|HjAl#76dwQp002ovPDHLkV1oYH{fYnp literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xxhdpi/ic_drive_eta.png b/app/src/main/res/drawable-xxhdpi/ic_drive_eta.png new file mode 100644 index 0000000000000000000000000000000000000000..416c70f75127900cb24a2e6aa16f5bd69d029518 GIT binary patch literal 483 zcmV<90UZ8`P)F;a{LGds3}3V)#k2MKJh-L60=cR*-EK2rePTDjtTfU`?AD z5=exb!TLTka1w7>6x4P65 zyY0#^EYZ^smT|bPJo4@J)?W)IcnK<*^hLY%{5RO#%XVRR7HE6R8<(HC z_jY%9Q)8oUQ)|3`{h?!i96UNqi&qGDN%80iFJ5sl>_9~wf3oRk=J)q!-S|CYms#wZ fKri755ypPrGetuuW?kq4x`V;f)z4*}Q$iB}w3|i* literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xxhdpi/ic_ondemand_video.png b/app/src/main/res/drawable-xxhdpi/ic_ondemand_video.png new file mode 100644 index 0000000000000000000000000000000000000000..97ed667c786dca2933a93d3f6b9441e68cd3b338 GIT binary patch literal 393 zcmV;40e1e0P)}3`c2V5eyy!+5iXfG_?u@ z6A+fIqPb+MCC@StT*shHKg<3z{3J34sbblGB4ZGyYY(NC5fg({wTw^< zQr$984Av0PwVPU&{bQKTAVD9?4lo!Hp^FNZ-D3!1U?eJmP-xjFhH?fDqVw4<@-4#` zOH{TDe=JeaGQzQh-LjpeT1H$fQN^-!B4ddvmQmIQ*)eJvl`Y#175V^_q%QmbHF-0_ zvVNL(EZPv3sRL^yT3Yp;K@mA@qiJZ}4~9_ms8na@1(smgL!KBTvFqFgG*y+fG)0VM nR0E@yQ3VjwdmaU&U`PP~>9l&Cdvg(q00000NkvXXu0mjfeb1Hu literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xxhdpi/ic_power.png b/app/src/main/res/drawable-xxhdpi/ic_power.png new file mode 100644 index 0000000000000000000000000000000000000000..8cdd8c32458f09acacf0ea88a6024565d05c97c2 GIT binary patch literal 280 zcmV+z0q6dSP){UF)N@Pr_hCD20VKEOAEKC3c1`OEP*nx#bJj|oSm^$)5o*tz})XDBx;88Z1 zIv1;H94@h^O77B2rEaK_%R8ye9aVDIpH%LaQkl`cmAbj7RAehA|8uhj2COqd<94PR e;GYyS#e4zC*Y2tMhv;tr0000_ literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xxhdpi/ic_sd_card.png b/app/src/main/res/drawable-xxhdpi/ic_sd_card.png new file mode 100644 index 0000000000000000000000000000000000000000..0c9f1d5ec82e26a7a8c098cfe15da9196d6c54fe GIT binary patch literal 283 zcmV+$0p$LPP)WzF6Zz!tR|RRBA;_+FTj6c@!fu&ZJmSfW_x zuv9S)EK`gFyD8Q=ELTjizrju{6!8GRXTi2KY|QXSOE9FK&pgCd)B%$whg=6UgoL)3 hsZln?KzoXPi96-{Y_WBnuKxf4002ovPDHLkV1lldbLId5 literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xxhdpi/ic_sms.png b/app/src/main/res/drawable-xxhdpi/ic_sms.png new file mode 100644 index 0000000000000000000000000000000000000000..f652cf3064a343615741df9e59e2e84f89b4c40d GIT binary patch literal 251 zcmVX~?BMpigvf}~V88yE5Zp$WL!opz(V17M0 z7LY_;qIeBuIN+SPCyaD#mz-*P)ToIG)ijT>xfvE>Y-NT?jID_gBSvg6woy0Mn6<5Y ztPI4e$MdSk3b9X~nd{d`?3=NY7_mRVf+sfh!}i+!tTduB4U=f&_RTwW&|aX9iRGL? z{HQJ_))Nr%qn?-pb;n$&8|Fme`e(Rh%qbxg=K@$tEYuuz>YxAs002ovPDHLkV1hZ% BY-Iod literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xxxhdpi/ic_adb.png b/app/src/main/res/drawable-xxxhdpi/ic_adb.png new file mode 100644 index 0000000000000000000000000000000000000000..d60cceeb04a883b54030d9d8e5271defe8d470ef GIT binary patch literal 676 zcmV;V0$crwP)su}o7oz1Dgo~7dK0*s|)5e`J;0G{?Tm@D;h58KQYxE657Yc%y zP1Yic@;0X7!bz{wa~++@8P4tA`}~h6oacdgyXTzyo4M!Qx#u3hg^Tlv0W_=Xx1gWN z8N?Ab6{Hq?hL1-qPQP&Sl1WL|@#(m}kB1yk6Fwd{n3w0K*tMJGixg^apn>%pB`1|? z5;jachJK0U;n0XVO}_}v*x?k$%jSO}UZpRAX7i333Tnc%Wx$PLN|PPG^L(PLw=AI|sBt;RHF$;B=QY zx{o2$N~V!B?$})BrXKXVtjVF`mb4LME;FGYUpr+@))u$b8A0YU+uE`AAjZz3mAR(_ zJ*{XkUEDTo1cj9u)q&LiClI(1l?869YYHsnupT?g8wgMR5iJ{@$R1LZBG z16c*RxOCw49 zJhZasuszsI%-O>o8`J8Zgujw!hf_Fks|or}D=bEhjJU%X1AUy^l}+cRH<38=jHQ<7 zYebVFYp_}Q&r0Fk3c*5D(8N}>^*>NV4Y3duu@J%1!nBF82-u1Cwl+osd$;C?SZHjl zRqSHaP74J^M1vV;b9a+{^J9O`T&CE!)y}-#{jj$?^L7rXqmDZK47R!5_6_6_iTOri zzLA)3B<355`9@;Ck=Wo#y75(UMiwcMm8?qWw(Qb!`mp!}pJUhuvv)$bA|sUTn!A2Uf^ z4#O&jijz7iBpql3&!r<4v5TCu(c{G1-wb`a2!lKUzrGH~LU6It)dk4uqqL3%gx zbAU^U%>DLA<}H#&tN{1P{$6Z|+zVAk@2Dgv{yC46w)Z0YPPGXon@ zBxZ4Rps^gBKIs<@+U2OAyqqrSbg}z0pUIIyW6HY6l+6XJGh|6G%v{nNb<2t4Y@tO@ znKSKT9rj%5Wnm|r@(btAIOYCY*fx$HbjznqT*6;cX4uX6FQ2kh`4BffRlqm zDfAT-+8Uw6mw+Mn=H?-C&mF@#{la-k+Xo;Li9{mNf7cY8!Yd466gWeba-z}#H4RU} zDCv0&MLJ`}`JUqtoC$bm2YQ1%9cV+xw4f0Zmfq753s6JnZPEg+84EK@yQ0`%H@BDzGfTU{ zTIb-Cy|8p?A25qE?nNlfENvHOyo*qnS=ueewg7`Dg{4ayz`Va{KT=_4X;pvIL!`pY z((ZjNi|ju+ew&IPP%Sf{13#db%z&Q#fJPaP07U@msYkB}IVh=zJt2LlD*+AEgO$|E zDgnuzfCjP;W;`201M&7$ahV? Sn63cOhYX&selF{r5}E+%DraK= literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xxxhdpi/ic_ondemand_video.png b/app/src/main/res/drawable-xxxhdpi/ic_ondemand_video.png new file mode 100644 index 0000000000000000000000000000000000000000..36abb81e263c5d7b2c932e0cd4d3e6725b58f724 GIT binary patch literal 398 zcmV;90df9`P)XTabLtnP2f@7huMBhlu8qQ3M*q!{8^`CR3bCXy)z;A+|q>k z0*5dlAdyHUlFED_Mv6UdjFTfna$osH23WIF%CkoFe0KbC)U43cL9thknpg*=-a!i; zwD%4==%DgXoT*$_KmsxbU0VkF#aCFM8_xK_XGkD5JIv4x38ZF=ZzrIOE07xdMiGJR z8$|}PZ4@cUrcvc{Oad}(6bs0tQB0uvjba4VYZNnRgHi3{6!e#DYIMm8+EUMrOI=Xj z_Ct%?o(S~5HC4wsQ9L@P4IUkiLG@e10y1e0Imom%q#&EtRIPh#zR90E-Q+g}*|&xW zx(53gxuJ0R_?L}2J}b}Nk#XGGD(arL?BvNcmPW$17ou3V zTw=Z(>R@g@eb-q57Xe2WK@ic(b!%mTU)2J}Z`bA+E1kXlN0HC2aEV|akl1L+eXD@$ z$U3=YwFVdQ&MBb@01$C@-T(jq literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xxxhdpi/ic_sd_card.png b/app/src/main/res/drawable-xxxhdpi/ic_sd_card.png new file mode 100644 index 0000000000000000000000000000000000000000..6226e5b9f8342ead8e3f0b9bd5750227639ea696 GIT binary patch literal 331 zcmV-R0kr;!P)j&-1B?k+Ue`v&zE62qLY0Fy{Yf*VR|jP6LGqL6G)lK|-=} zT2n}#8O~gq^Q@G5`Z+UYPElLxw24zxpp!HGnImYWk2BH05tNzXyr%g`d0aW;w|P1S zC8Y=N6qHn~1c#te<c+%CetW;fVhD&fVhDU0C5B50C58y0pbQa0mKb-28bKz0uVRQ6(DY)8$jGZ z0w93?4P^GcOyL4=Z4|VW2ZcsKzC6gI)EH-@c1_-+tszcV_3Fi=fL0nm?q!d)yB;T!Yj(nKA=szKb!rylBqPL*M_FH~o0fF*{yq(G}6CtmUh3O?K Ac>n+a literal 0 HcmV?d00001 diff --git a/app/src/main/res/layout/main_activity.xml b/app/src/main/res/layout/main_activity.xml index 43381c7..12ae9a6 100644 --- a/app/src/main/res/layout/main_activity.xml +++ b/app/src/main/res/layout/main_activity.xml @@ -7,27 +7,25 @@ + - - - - - + android:layout_height="match_parent" + app:layout_behavior="@string/appbar_scrolling_view_behavior" /> + \ No newline at end of file diff --git a/app/src/main/res/layout/notification_creation_frag.xml b/app/src/main/res/layout/notification_creation_frag.xml new file mode 100644 index 0000000..530175a --- /dev/null +++ b/app/src/main/res/layout/notification_creation_frag.xml @@ -0,0 +1,148 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +