홈>
안녕하세요
Button
를 추가하려고합니다
위즈 비즈 위
하지만 작동하지 않습니다 :
Recyclerview
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="#008080"
tools:context=".fragmentUsers">
<!-- TODO: Update blank fragment layout -->
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Send us"
android:layout_above="@+id/rc"/>
<android.support.v7.widget.RecyclerView
android:id="@+id/rc"
android:numColumns="2"
android:scrollbars="vertical"
android:layout_marginTop="2dp"
android:layout_above="@+id/adView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<TextView
android:id="@+id/loadingtext"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="14sp"
android:gravity="center"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="txt"/>
</RelativeLayout>
- 답변 # 1
관련 질문
- java : Android 용 도구 모음에서 제목이나 텍스트를 가져 오는 방법
- android : 맞춤형 스트로크와 MaterialButton
- android : FragmentContainerView의 이름 속성에 NavHostFragment를 사용하는 이유
- android : ViewPager를 사용하지 않는 TabLayout
- java : 스크롤 뷰의 Android 제약 레이아웃에 마지막 항목이 표시되지 않음
- xml : 선형 레이아웃의 중앙에 버튼
- xml : Android에서 사용자 지정 서체 사용
- android : 이 배경으로 imageButton을 그리는 방법
- android : 데이터 바인딩, 함수 (또는 람다) 변수를 포함하는 방법 레이아웃
- java : 원인으로 인해 : Android.view.inflateException : 바이너리 XML 파일 행 # 2 : infern inflating 클래스 레이아웃 오류
원하는 것을 도와 줄 아래 코드로 코드를 교체하십시오