fix [爱好会遮挡]
This commit is contained in:
parent
4c760e60b1
commit
d44df09e5c
@ -44,6 +44,7 @@ public class EditUserHobbyActivity extends AbsActivity {
|
|||||||
mCancel = findViewById(R.id.btn_cancel);
|
mCancel = findViewById(R.id.btn_cancel);
|
||||||
adapter = new EditUserHobbyAdapter();
|
adapter = new EditUserHobbyAdapter();
|
||||||
recyclerView.setAdapter(adapter);
|
recyclerView.setAdapter(adapter);
|
||||||
|
recyclerView.setNestedScrollingEnabled(false);
|
||||||
adapter.setOnItemClickListener(new OnItemClickListener<List<String>>() {
|
adapter.setOnItemClickListener(new OnItemClickListener<List<String>>() {
|
||||||
@Override
|
@Override
|
||||||
public void onItemClick(List<String> bean, int position) {
|
public void onItemClick(List<String> bean, int position) {
|
||||||
|
@ -34,45 +34,63 @@
|
|||||||
app:layout_constraintStart_toStartOf="@+id/titleView"
|
app:layout_constraintStart_toStartOf="@+id/titleView"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/titleView" />
|
app:layout_constraintTop_toBottomOf="@+id/titleView" />
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<ScrollView
|
||||||
android:id="@+id/recyclerView"
|
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_marginStart="15dp"
|
android:layout_marginStart="15dp"
|
||||||
|
android:layout_marginEnd="15dp"
|
||||||
android:layout_marginTop="20dp"
|
android:layout_marginTop="20dp"
|
||||||
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
|
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/number"
|
app:layout_constraintTop_toBottomOf="@+id/number">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
|
android:id="@+id/recyclerView"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
|
||||||
app:spanCount="4"
|
app:spanCount="4"
|
||||||
tools:listitem="@layout/item_edit_user_hobby" />
|
tools:listitem="@layout/item_edit_user_hobby" />
|
||||||
|
|
||||||
<Button
|
<LinearLayout
|
||||||
android:id="@+id/btn_save"
|
android:orientation="horizontal"
|
||||||
android:layout_width="186dp"
|
|
||||||
android:layout_height="54dp"
|
|
||||||
android:textColor="#FFFFFF"
|
|
||||||
android:layout_marginEnd="21dp"
|
|
||||||
android:layout_marginBottom="112dp"
|
android:layout_marginBottom="112dp"
|
||||||
android:background="@drawable/bg_msg_address_book_user_btn_fan"
|
android:layout_gravity="center"
|
||||||
android:textAllCaps="false"
|
android:layout_width="wrap_content"
|
||||||
android:text="@string/back_community_sure"
|
android:layout_height="wrap_content">
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent" />
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/btn_cancel"
|
android:id="@+id/btn_cancel"
|
||||||
android:layout_width="122dp"
|
android:layout_width="122dp"
|
||||||
android:layout_height="54dp"
|
android:layout_height="54dp"
|
||||||
android:textAllCaps="false"
|
android:textAllCaps="false"
|
||||||
android:layout_marginStart="21dp"
|
|
||||||
android:layout_marginBottom="112dp"
|
|
||||||
android:background="@drawable/dialog_bg_chat_status_config"
|
android:background="@drawable/dialog_bg_chat_status_config"
|
||||||
android:text="@string/edit_profile_hobby_cancel"
|
android:text="@string/edit_profile_hobby_cancel"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
/>
|
||||||
app:layout_constraintEnd_toStartOf="@+id/btn_save"
|
|
||||||
app:layout_constraintStart_toStartOf="parent" />
|
<Button
|
||||||
|
android:id="@+id/btn_save"
|
||||||
|
android:layout_width="186dp"
|
||||||
|
android:layout_height="54dp"
|
||||||
|
android:textColor="#FFFFFF"
|
||||||
|
android:layout_marginStart="21dp"
|
||||||
|
android:background="@drawable/bg_msg_address_book_user_btn_fan"
|
||||||
|
android:textAllCaps="false"
|
||||||
|
android:text="@string/back_community_sure" />
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</ScrollView>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
@ -11,5 +11,6 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:background="@drawable/dialog_bg_chat_status_config"
|
android:background="@drawable/dialog_bg_chat_status_config"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:textAllCaps="false"
|
||||||
android:text="Button" />
|
android:text="Button" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
Loading…
Reference in New Issue
Block a user