홈>
안녕하세요
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
관련 질문
- xml android 가이드 라인 제약 레이아웃
- xml - android gui - 여러 요소에 공통 스타일을 적용하는 방법
- xml - Android에서 작동하지 않는 사용자 정의 백그라운드 리소스
- java - Android 채팅 앱에 대해 어떤 과정을 수강해야합니까?
- java - 이 모든 if/else 문이 필요하지 않도록 내가 호출하는 파일 이름을 변경하는 방법이 있습니까?
- Android Java에서 ClickListener를 사용하지 않고 버튼 클릭시 메서드 호출
- xml - Android Activity_Main Float 버튼
- java - android studio - 명시 적 활동 클래스를 찾을 수 없지만 androidmanifestxml에 이미 선언 된 활동
- android - 내 버튼이 기본 배경색으로 "colorPrimary"를 사용하는 이유는 무엇입니까?
- java - 드로어 블이 아닌 테마의 색상을 사용하는 버튼
원하는 것을 도와 줄 아래 코드로 코드를 교체하십시오