Skip to content

Commit

Permalink
ProfileActivity comment Add UI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
easyhooon committed Jun 19, 2021
1 parent 08e6d36 commit 7019736
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 48 deletions.
18 changes: 11 additions & 7 deletions app/src/main/res/layout/activity_profile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,18 @@
android:text="추천해요"
android:textSize="18sp" />

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/commentRecyclerView"
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginHorizontal="12dp"
android:nestedScrollingEnabled="false">

</androidx.recyclerview.widget.RecyclerView>
android:layout_height="match_parent">

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/commentRecyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginHorizontal="12dp"
android:nestedScrollingEnabled="false">
</androidx.recyclerview.widget.RecyclerView>
</ScrollView>

</LinearLayout>

Expand Down
82 changes: 41 additions & 41 deletions app/src/main/res/layout/item_comment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,55 +5,55 @@
android:layout_height="wrap_content"
android:orientation="horizontal">

<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/recommendUserProfileImage"
android:layout_width="84dp"
android:layout_height="84dp"
android:layout_weight="0"
android:padding="16dp"/>
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/recommendUserProfileImage"
android:layout_width="84dp"
android:layout_height="84dp"
android:layout_weight="0"
android:padding="16dp"/>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="8dp"
android:layout_weight="0"
android:orientation="vertical">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="8dp"
android:layout_weight="0"
android:orientation="vertical">
android:layout_height="wrap_content"
android:orientation="horizontal">

<LinearLayout
android:layout_width="match_parent"
<TextView
android:id="@+id/recommendUserNameTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">

<TextView
android:id="@+id/recommendUserNameTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingVertical="4dp"
android:singleLine="true"
android:text="user name"
android:textColor="@color/black" />

<View
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1"/>

<TextView
android:id="@+id/recommendCreatedAtTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/created_at"
android:textColor="@color/black"
android:paddingVertical="4dp"/>
</LinearLayout>
android:paddingVertical="4dp"
android:singleLine="true"
android:text="user name"
android:textColor="@color/black" />

<View
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1"/>

<TextView
android:id="@+id/recommendContentTextView"
android:layout_width="match_parent"
android:id="@+id/recommendCreatedAtTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:lines="2"
android:text="TextView"
android:textColor="@color/black" />
android:text="@string/created_at"
android:textColor="@color/black"
android:paddingVertical="4dp"/>
</LinearLayout>

<TextView
android:id="@+id/recommendContentTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:lines="2"
android:text="TextView"
android:textColor="@color/black" />
</LinearLayout>

</LinearLayout>

0 comments on commit 7019736

Please sign in to comment.