Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
Dunbar
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PLN
Dunbar
Commits
baee5a94
Unverified
Commit
baee5a94
authored
Nov 16, 2019
by
PLN (Algolia)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: TODO
parent
01551267
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
64 additions
and
35 deletions
+64
-35
pln.xml
.idea/dictionaries/pln.xml
+8
-0
TODO.md
TODO.md
+9
-0
FriendDetailActivity.kt
app/src/main/java/fr/plnech/dunbar/FriendDetailActivity.kt
+3
-3
FriendDetailFragment.kt
app/src/main/java/fr/plnech/dunbar/FriendDetailFragment.kt
+2
-2
FriendListActivity.kt
app/src/main/java/fr/plnech/dunbar/FriendListActivity.kt
+0
-0
Friends.kt
app/src/main/java/fr/plnech/dunbar/data/Friends.kt
+0
-10
ContactsActivity.kt
app/src/main/java/fr/plnech/dunbar/ui/ContactsActivity.kt
+0
-0
activity_contacts.xml
app/src/main/res/layout/activity_contacts.xml
+1
-1
activity_friend_detail.xml
app/src/main/res/layout/activity_friend_detail.xml
+1
-1
activity_friends_list.xml
app/src/main/res/layout/activity_friends_list.xml
+2
-2
buddy_list.xml
app/src/main/res/layout/buddy_list.xml
+0
-14
friend_detail.xml
app/src/main/res/layout/friend_detail.xml
+2
-2
friend_list.xml
app/src/main/res/layout/friend_list.xml
+36
-0
friend_list_content.xml
app/src/main/res/layout/friend_list_content.xml
+0
-0
No files found.
.idea/dictionaries/pln.xml
0 → 100644
View file @
baee5a94
<component
name=
"ProjectDictionaryState"
>
<dictionary
name=
"pln"
>
<words>
<w>
smsto
</w>
</words>
</dictionary>
</component>
\ No newline at end of file
TODO.md
View file @
baee5a94
# Nov 17
-
Refactor into BuddyListActivity + Details
-
Whitelist, add friends, eventually from contacts
-
Reusing current landing as "select contact"? Unless better picker
-
Notifs
-
Fastlane
-
Deploy v0.1!
# Feats
-
List friends
...
...
app/src/main/java/fr/plnech/dunbar/
Buddy
DetailActivity.kt
→
app/src/main/java/fr/plnech/dunbar/
Friend
DetailActivity.kt
View file @
baee5a94
...
...
@@ -2,13 +2,13 @@ package fr.plnech.dunbar
import
android.content.Intent
import
android.os.Bundle
import
com.google.android.material.snackbar.Snackbar
import
androidx.appcompat.app.AppCompatActivity
import
android.view.MenuItem
import
androidx.appcompat.app.AppCompatActivity
import
com.google.android.material.snackbar.Snackbar
import
kotlinx.android.synthetic.main.activity_buddy_detail.*
/**
* An activity representing a single
Buddy
detail screen. This
* An activity representing a single
Friend
detail screen. This
* activity is only used on narrow width devices. On tablet-size devices,
* item details are presented side-by-side with a list of items
* in a [BuddyListActivity].
...
...
app/src/main/java/fr/plnech/dunbar/
Buddy
DetailFragment.kt
→
app/src/main/java/fr/plnech/dunbar/
Friend
DetailFragment.kt
View file @
baee5a94
...
...
@@ -12,8 +12,8 @@ import kotlinx.android.synthetic.main.buddy_detail.view.*
/**
* A fragment representing a single Buddy detail screen.
* This fragment is either contained in a [
Buddy
ListActivity]
* in two-pane mode (on tablets) or a [
Buddy
DetailActivity]
* This fragment is either contained in a [
Friend
ListActivity]
* in two-pane mode (on tablets) or a [
Friend
DetailActivity]
* on handsets.
*/
class
BuddyDetailFragment
:
Fragment
()
{
...
...
app/src/main/java/fr/plnech/dunbar/
Buddy
ListActivity.kt
→
app/src/main/java/fr/plnech/dunbar/
Friend
ListActivity.kt
View file @
baee5a94
File moved
app/src/main/java/fr/plnech/dunbar/data/Friends.kt
deleted
100644 → 0
View file @
01551267
package
fr.plnech.dunbar.data
import
android.content.ContentUris
import
android.content.Context
import
android.graphics.Bitmap
import
android.graphics.BitmapFactory
import
android.provider.ContactsContract
import
fr.plnech.dunbar.model.Friend
import
java.io.IOException
app/src/main/java/fr/plnech/dunbar/ui/
Friend
sActivity.kt
→
app/src/main/java/fr/plnech/dunbar/ui/
Contact
sActivity.kt
View file @
baee5a94
File moved
app/src/main/res/layout/activity_
friend
s.xml
→
app/src/main/res/layout/activity_
contact
s.xml
View file @
baee5a94
...
...
@@ -4,7 +4,7 @@
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
tools:context=
".ui.
Friend
sActivity"
>
tools:context=
".ui.
Contact
sActivity"
>
<com.google.android.material.appbar.AppBarLayout
android:layout_width=
"match_parent"
...
...
app/src/main/res/layout/activity_
buddy
_detail.xml
→
app/src/main/res/layout/activity_
friend
_detail.xml
View file @
baee5a94
...
...
@@ -5,7 +5,7 @@
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:fitsSystemWindows=
"true"
tools:context=
".
Buddy
DetailActivity"
tools:context=
".
Friend
DetailActivity"
tools:ignore=
"MergeRootFrame"
>
<com.google.android.material.appbar.AppBarLayout
...
...
app/src/main/res/layout/activity_
buddy
_list.xml
→
app/src/main/res/layout/activity_
friends
_list.xml
View file @
baee5a94
...
...
@@ -5,7 +5,7 @@
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:fitsSystemWindows=
"true"
tools:context=
".
Buddy
ListActivity"
>
tools:context=
".
Friend
ListActivity"
>
<com.google.android.material.appbar.AppBarLayout
android:id=
"@+id/app_bar"
...
...
@@ -27,7 +27,7 @@
android:layout_height=
"match_parent"
app:layout_behavior=
"@string/appbar_scrolling_view_behavior"
>
<include
layout=
"@layout/
buddy
_list"
/>
<include
layout=
"@layout/
friend
_list"
/>
</FrameLayout>
<com.google.android.material.floatingactionbutton.FloatingActionButton
...
...
app/src/main/res/layout/buddy_list.xml
deleted
100644 → 0
View file @
01551267
<?xml version="1.0" encoding="utf-8"?>
<androidx.recyclerview.widget.RecyclerView
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:id=
"@+id/buddy_list"
android:name=
"fr.plnech.dunbar.BuddyListFragment"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginLeft=
"16dp"
android:layout_marginRight=
"16dp"
app:layoutManager=
"LinearLayoutManager"
tools:context=
".BuddyListActivity"
tools:listitem=
"@layout/buddy_list_content"
/>
\ No newline at end of file
app/src/main/res/layout/
buddy
_detail.xml
→
app/src/main/res/layout/
friend
_detail.xml
View file @
baee5a94
...
...
@@ -7,4 +7,4 @@
android:layout_height=
"match_parent"
android:padding=
"16dp"
android:textIsSelectable=
"true"
tools:context=
".BuddyDetailFragment"
/>
\ No newline at end of file
tools:context=
".FriendDetailFragment"
/>
\ No newline at end of file
app/src/main/res/layout/friend_list.xml
0 → 100644
View file @
baee5a94
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
app:layout_behavior=
"@string/appbar_scrolling_view_behavior"
tools:context=
".ui.ContactsActivity"
tools:showIn=
"@layout/activity_friends"
>
<TextView
android:id=
"@+id/welcomeTitle"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:layout_marginBottom=
"8dp"
android:textSize=
"24sp"
app:layout_constraintBottom_toTopOf=
"@id/buddy_list"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintRight_toRightOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.0"
tools:text=
"N friends on Dunbar"
/>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/buddy_list"
android:name=
"fr.plnech.dunbar.BuddyListFragment"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginLeft=
"16dp"
android:layout_marginRight=
"16dp"
app:layoutManager=
"LinearLayoutManager"
tools:context=
".FriendListActivity"
tools:listitem=
"@layout/contact"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/
buddy
_list_content.xml
→
app/src/main/res/layout/
friend
_list_content.xml
View file @
baee5a94
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment