Ammar Githam
4 years ago
11 changed files with 343 additions and 78 deletions
-
190app/src/main/java/awais/instagrabber/activities/MainActivity.java
-
83app/src/main/java/awais/instagrabber/adapters/SuggestionsAdapter.java
-
4app/src/main/java/awais/instagrabber/asyncs/SuggestionsFetcher.java
-
2app/src/main/java/awais/instagrabber/utils/NavigationExtensions.java
-
9app/src/main/res/drawable/ic_search_black_24dp.xml
-
7app/src/main/res/layout/activity_main.xml
-
73app/src/main/res/layout/item_suggestion.xml
-
10app/src/main/res/menu/main_menu.xml
-
22app/src/main/res/navigation/direct_messages_nav_graph.xml
-
4app/src/main/res/values/styles.xml
-
5app/src/main/res/values/themes.xml
@ -0,0 +1,9 @@ |
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android" |
|||
android:width="24dp" |
|||
android:height="24dp" |
|||
android:viewportWidth="24.0" |
|||
android:viewportHeight="24.0"> |
|||
<path |
|||
android:fillColor="#FF000000" |
|||
android:pathData="M15.5,14h-0.79l-0.28,-0.27C15.41,12.59 16,11.11 16,9.5 16,5.91 13.09,3 9.5,3S3,5.91 3,9.5 5.91,16 9.5,16c1.61,0 3.09,-0.59 4.23,-1.57l0.27,0.28v0.79l5,4.99L20.49,19l-4.99,-5zM9.5,14C7.01,14 5,11.99 5,9.5S7.01,5 9.5,5 14,7.01 14,9.5 11.99,14 9.5,14z"/> |
|||
</vector> |
@ -1,52 +1,67 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
|||
<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="wrap_content" |
|||
xmlns:tools="http://schemas.android.com/tools" |
|||
android:foreground="?android:selectableItemBackground" |
|||
tools:viewBindingIgnore="true" |
|||
android:padding="2dp"> |
|||
android:padding="8dp"> |
|||
|
|||
<androidx.appcompat.widget.AppCompatImageView |
|||
<com.facebook.drawee.view.SimpleDraweeView |
|||
android:id="@+id/ivProfilePic" |
|||
android:layout_width="40dp" |
|||
android:layout_height="40dp" |
|||
android:adjustViewBounds="true" |
|||
android:scaleType="fitCenter" /> |
|||
|
|||
<LinearLayout |
|||
android:layout_width="match_parent" |
|||
android:layout_height="wrap_content" |
|||
android:layout_marginStart="44dp" |
|||
android:layout_marginLeft="44dp" |
|||
android:orientation="vertical"> |
|||
app:actualImageScaleType="centerCrop" |
|||
app:layout_constraintBottom_toBottomOf="parent" |
|||
app:layout_constraintEnd_toStartOf="@id/tvUsername" |
|||
app:layout_constraintStart_toStartOf="parent" |
|||
app:layout_constraintTop_toTopOf="parent" |
|||
app:roundAsCircle="true" |
|||
tools:src="@mipmap/ic_launcher" /> |
|||
|
|||
<androidx.appcompat.widget.AppCompatTextView |
|||
android:id="@+id/tvUsername" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="40dp" |
|||
android:layout_width="wrap_content" |
|||
android:layout_height="0dp" |
|||
android:gravity="center_vertical" |
|||
android:textAppearance="@style/TextAppearance.AppCompat" |
|||
app:autoSizeMaxTextSize="24sp" |
|||
app:autoSizeTextType="uniform" /> |
|||
android:paddingStart="4dp" |
|||
android:paddingLeft="4dp" |
|||
android:paddingEnd="4dp" |
|||
android:paddingRight="4dp" |
|||
android:textAppearance="@style/TextAppearance.AppCompat.Body1" |
|||
app:layout_constraintBottom_toTopOf="@id/tvFullName" |
|||
app:layout_constraintEnd_toStartOf="@id/isVerified" |
|||
app:layout_constraintStart_toEndOf="@id/ivProfilePic" |
|||
app:layout_constraintTop_toTopOf="parent" |
|||
tools:text="username" /> |
|||
|
|||
<androidx.appcompat.widget.AppCompatTextView |
|||
android:id="@+id/tvFullName" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="wrap_content" |
|||
android:layout_width="0dp" |
|||
android:layout_height="0dp" |
|||
android:gravity="center_vertical" |
|||
app:autoSizeMaxTextSize="18sp" |
|||
app:autoSizeTextType="uniform" /> |
|||
</LinearLayout> |
|||
android:paddingStart="4dp" |
|||
android:paddingLeft="4dp" |
|||
android:paddingEnd="4dp" |
|||
android:paddingRight="4dp" |
|||
tools:visibility="gone" |
|||
app:layout_constraintBottom_toBottomOf="parent" |
|||
app:layout_constraintEnd_toEndOf="parent" |
|||
app:layout_constraintStart_toEndOf="@id/ivProfilePic" |
|||
app:layout_constraintTop_toBottomOf="@id/tvUsername" |
|||
tools:text="full name" /> |
|||
|
|||
<androidx.appcompat.widget.AppCompatImageView |
|||
android:id="@+id/isVerified" |
|||
android:layout_width="40dp" |
|||
android:layout_height="40dp" |
|||
android:layout_width="20dp" |
|||
android:layout_height="20dp" |
|||
android:layout_gravity="end" |
|||
android:adjustViewBounds="true" |
|||
android:scaleType="fitCenter" |
|||
android:visibility="gone" |
|||
app:srcCompat="@drawable/verified" /> |
|||
</FrameLayout> |
|||
app:layout_constraintBaseline_toBaselineOf="@id/tvUsername" |
|||
app:layout_constraintBottom_toTopOf="@id/tvFullName" |
|||
app:layout_constraintStart_toEndOf="@id/tvUsername" |
|||
app:layout_constraintTop_toTopOf="parent" |
|||
app:srcCompat="@drawable/verified" |
|||
tools:visibility="visible" /> |
|||
</androidx.constraintlayout.widget.ConstraintLayout> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue