mirror of
https://github.com/atsunatsu/Look4Sat.git
synced 2026-10-03 11:17:25 +00:00
Moved to viewBinding instead of findViewById
This commit is contained in:
1 parent
7c19bb5b52
commit
38b9feb829
22 files changed
+292
-349
No files matched your search
@@ -0,0 +1,137 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.
|
||||
~ Copyright (C) 2019, 2020 Arty Bishop (bishop.arty@gmail.com)
|
||||
~
|
||||
~ This program is free software; you can redistribute it and/or modify
|
||||
~ it under the terms of the GNU General Public License as published by
|
||||
~ the Free Software Foundation; either version 2 of the License, or
|
||||
~ (at your option) any later version.
|
||||
~
|
||||
~ This program is distributed in the hope that it will be useful,
|
||||
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
~ GNU General Public License for more details.
|
||||
~
|
||||
~ You should have received a copy of the GNU General Public License along
|
||||
~ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
~ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
-->
|
||||
|
||||
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/pass_leo_card"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
app:cardElevation="4dp">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/pass_leo_bg"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:contentDescription="@string/placeholder"
|
||||
android:scaleType="centerCrop"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:srcCompat="@drawable/card_pass_bg" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/pass_leo_losAz"
|
||||
style="@style/CardPassText"
|
||||
android:text="@string/pass_los_az"
|
||||
app:layout_constraintBaseline_toBaselineOf="@+id/pass_leo_maxEl"
|
||||
app:layout_constraintEnd_toEndOf="@+id/pass_leo_progress"
|
||||
app:layout_constraintHorizontal_bias="1.0"
|
||||
app:layout_constraintStart_toEndOf="@+id/pass_leo_maxEl" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/pass_leo_satId"
|
||||
style="@style/CardPassName"
|
||||
android:layout_marginTop="4dp"
|
||||
android:text="@string/pass_satId"
|
||||
app:layout_constraintEnd_toEndOf="@+id/pass_leo_progress"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/pass_leo_maxEl"
|
||||
style="@style/CardPassText"
|
||||
android:layout_marginTop="2dp"
|
||||
android:text="@string/pass_maxEl"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.5"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/pass_leo_satId" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/pass_leo_img"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:contentDescription="@string/placeholder"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/pass_leo_satName"
|
||||
app:layout_constraintStart_toStartOf="@+id/pass_leo_progress"
|
||||
app:layout_constraintTop_toTopOf="@+id/pass_leo_satName"
|
||||
app:srcCompat="@drawable/ic_pass_inactive" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/pass_leo_satName"
|
||||
style="@style/CardPassName"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/pass_satName"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/pass_leo_satId"
|
||||
app:layout_constraintEnd_toStartOf="@+id/pass_leo_satId"
|
||||
app:layout_constraintHorizontal_bias="0.02"
|
||||
app:layout_constraintStart_toEndOf="@+id/pass_leo_img"
|
||||
app:layout_constraintTop_toTopOf="@+id/pass_leo_satId" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/pass_leo_aosAz"
|
||||
style="@style/CardPassText"
|
||||
android:text="@string/pass_aos_az"
|
||||
app:layout_constraintBaseline_toBaselineOf="@+id/pass_leo_maxEl"
|
||||
app:layout_constraintEnd_toStartOf="@+id/pass_leo_maxEl"
|
||||
app:layout_constraintHorizontal_bias="0.0"
|
||||
app:layout_constraintStart_toStartOf="@+id/pass_leo_progress" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/pass_leo_aosTime"
|
||||
style="@style/CardPassText"
|
||||
android:text="@string/pass_dateTime"
|
||||
app:layout_constraintBaseline_toBaselineOf="@+id/pass_leo_losTime"
|
||||
app:layout_constraintEnd_toStartOf="@+id/pass_leo_losTime"
|
||||
app:layout_constraintHorizontal_bias="0.5"
|
||||
app:layout_constraintHorizontal_chainStyle="spread_inside"
|
||||
app:layout_constraintStart_toStartOf="@+id/pass_leo_progress" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/pass_leo_losTime"
|
||||
style="@style/CardPassText"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:text="@string/pass_dateTime"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="@+id/pass_leo_progress"
|
||||
app:layout_constraintHorizontal_bias="0.5"
|
||||
app:layout_constraintStart_toEndOf="@+id/pass_leo_aosTime"
|
||||
app:layout_constraintTop_toBottomOf="@+id/pass_leo_progress" />
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/pass_leo_progress"
|
||||
style="?android:attr/progressBarStyleHorizontal"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginStart="6dp"
|
||||
android:layout_marginEnd="6dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/pass_leo_maxEl" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</com.google.android.material.card.MaterialCardView>
|
||||
Reference in new issue
Block a user