홈>
2 * 2 gridlayout이어야하지만 API 21에서 내가하는 모든 것을 2 개만 보여줍니다 (이 두 요소는 후자 c0, r1 및 c1, r1입니다)
문제는 어디에 있습니까?!
열 가중치 및 행 가중치를 편집하려고했습니다.
gridlayout 높이를 변경하려고했습니다.
cardview layout_gravity를 변경하려고했습니다.
그러나 그들 중 누구도 일하지 않았다
<GridLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="5"
android:columnCount="2"
android:padding="14dp"
android:rowCount="2">
<android.support.v7.widget.CardView
android:layout_gravity="fill|top|right"
android:layout_columnWeight="1"
android:layout_rowWeight="1"
android:layout_marginBottom="16dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_column="0"
android:layout_row="0">
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:layout_gravity="fill|top|left"
android:layout_columnWeight="1"
android:layout_marginBottom="16dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_column="1"
android:layout_row="0">
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:layout_gravity="fill|bottom|right"
android:layout_column="0"
android:layout_row="1"
android:layout_columnWeight="1"
android:layout_rowWeight="1"
android:layout_marginBottom="16dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp">
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:layout_gravity="fill|bottom|left"
android:layout_column="1"
android:layout_row="1"
android:layout_columnWeight="1"
android:layout_marginBottom="16dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp">
</android.support.v7.widget.CardView>
</GridLayout>
문제에 대한 스크린 샷
- 답변 # 1
관련 자료
- html - auto를 min으로 사용하는 CSS Grid minmax
- flexbox - 전체 너비 행이있는 CSS 그리드 템플릿
- 키위 API로 시작하는 방법?
- google bigquery - Api와 공유 데이터 세트 받기
- node.js - API 호출로 새로운 데이터베이스 생성
- flutter - SliverList를 API 데이터로 채우는 방법
- excel - 사용자 입력을 통한 VBA 그리드 생성
- reactjs - 스프링 부트 API REST로 JS 반응
- div 태그로 부트 스트랩 4 그리드 문제
- spring boot - Azure APIM으로 REST API를 어떻게 노출합니까?
- azure - AKS를 사용한 이벤트 그리드 검증
- API와 함께 fetch () 사용
- 로그인하고 API로 노래하는 API 용 Azure AD B2C (html 페이지 아님)
- spring - 다 대 다 관계가있는 나머지 API 경로
- c# - API 데이터로 MVC에서 드롭 다운 채우기
- java - 매개 변수가있는 REST API 조회
- amazon web services - JWT 토큰이있는 AWS API Gateway
- Spring Boot로 나머지 API를 소비하는 방법
- javascript - vuex 4x에서`useStore` API 사용
- zurb foundation - Microsoft Edge의 xy 그리드 및 메뉴 문제
관련 질문
- java : Android 아프 리가 보탄을 크리크 스루 다케 で 落 ち て し ま う て し ま う
- java : Android의 EditText가 작동하지 않음 /값 입력 허용
- java : ArithmeticException : Android에서 동적으로 테이블 레이아웃을 사용하여 0으로 나누기
- java : 카드 뷰 고도 색상 변경
- android : GridLayout 넘침 | 기계적 인조 인간
- Android에서 XML 작성
- android : 스크롤보기 안에 두 개의 목록보기를 표시하는 방법
- android : RecyclerView 셀을 선택 취소하고 외부의 아무 곳이나 탭합니다.
- java : set.Visibility (View.GONE) 버튼과 EditText가 사라지지 않고 code를 추가하지 않은 것처럼 표시됩니다.
- Java를 사용하여 AdUnitId를 설정하려면 어떻게해야합니까?
2 * 2
GridLayout
가 있다고 생각합니다 하지만 보이지 않습니다.<ScrollView>
를 사용하려고 당신의GridLayout
의 상단에그런 다음 스크롤하여 2 * 2
GridLayout
를 볼 수 있습니다이것처럼
도움말을 희망하면