chore: TODO

parent 01551267
<component name="ProjectDictionaryState">
<dictionary name="pln">
<words>
<w>smsto</w>
</words>
</dictionary>
</component>
\ No newline at end of file
# 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 # Feats
- List friends - List friends
......
...@@ -2,13 +2,13 @@ package fr.plnech.dunbar ...@@ -2,13 +2,13 @@ package fr.plnech.dunbar
import android.content.Intent import android.content.Intent
import android.os.Bundle import android.os.Bundle
import com.google.android.material.snackbar.Snackbar
import androidx.appcompat.app.AppCompatActivity
import android.view.MenuItem import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import com.google.android.material.snackbar.Snackbar
import kotlinx.android.synthetic.main.activity_buddy_detail.* 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, * activity is only used on narrow width devices. On tablet-size devices,
* item details are presented side-by-side with a list of items * item details are presented side-by-side with a list of items
* in a [BuddyListActivity]. * in a [BuddyListActivity].
......
...@@ -12,8 +12,8 @@ import kotlinx.android.synthetic.main.buddy_detail.view.* ...@@ -12,8 +12,8 @@ import kotlinx.android.synthetic.main.buddy_detail.view.*
/** /**
* A fragment representing a single Buddy detail screen. * A fragment representing a single Buddy detail screen.
* This fragment is either contained in a [BuddyListActivity] * This fragment is either contained in a [FriendListActivity]
* in two-pane mode (on tablets) or a [BuddyDetailActivity] * in two-pane mode (on tablets) or a [FriendDetailActivity]
* on handsets. * on handsets.
*/ */
class BuddyDetailFragment : Fragment() { class BuddyDetailFragment : Fragment() {
......
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
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".ui.FriendsActivity"> tools:context=".ui.ContactsActivity">
<com.google.android.material.appbar.AppBarLayout <com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent" android:layout_width="match_parent"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:fitsSystemWindows="true" android:fitsSystemWindows="true"
tools:context=".BuddyDetailActivity" tools:context=".FriendDetailActivity"
tools:ignore="MergeRootFrame"> tools:ignore="MergeRootFrame">
<com.google.android.material.appbar.AppBarLayout <com.google.android.material.appbar.AppBarLayout
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:fitsSystemWindows="true" android:fitsSystemWindows="true"
tools:context=".BuddyListActivity"> tools:context=".FriendListActivity">
<com.google.android.material.appbar.AppBarLayout <com.google.android.material.appbar.AppBarLayout
android:id="@+id/app_bar" android:id="@+id/app_bar"
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
android:layout_height="match_parent" android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"> app:layout_behavior="@string/appbar_scrolling_view_behavior">
<include layout="@layout/buddy_list" /> <include layout="@layout/friend_list" />
</FrameLayout> </FrameLayout>
<com.google.android.material.floatingactionbutton.FloatingActionButton <com.google.android.material.floatingactionbutton.FloatingActionButton
......
<?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
...@@ -7,4 +7,4 @@ ...@@ -7,4 +7,4 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:padding="16dp" android:padding="16dp"
android:textIsSelectable="true" android:textIsSelectable="true"
tools:context=".BuddyDetailFragment" /> tools:context=".FriendDetailFragment" />
\ No newline at end of file \ No newline at end of file
<?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
Markdown is supported
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