kopia lustrzana https://github.com/sh123/codec2_talkie
Improve hub
rodzic
2367e46094
commit
40361f5660
|
@ -2,7 +2,6 @@ package com.radio.codec2talkie.storage.log;
|
|||
|
||||
import android.content.DialogInterface;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
|
@ -68,6 +67,8 @@ public class LogItemActivity extends AppCompatActivity {
|
|||
}
|
||||
if (_groupName == null) {
|
||||
logItemGroupRecyclerView.setVisibility(View.GONE);
|
||||
findViewById(R.id.log_item_textview).setVisibility(View.GONE);
|
||||
findViewById(R.id.log_item_group_textview).setVisibility(View.GONE);
|
||||
_logItemViewModel.getAllData().observe(this, adapter::submitList);
|
||||
setTitle(R.string.aprs_log_view_title);
|
||||
} else {
|
||||
|
|
|
@ -7,24 +7,41 @@
|
|||
android:layout_height="match_parent"
|
||||
tools:context=".storage.log.LogItemActivity">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/log_item_group_textview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:text="@string/log_item_group_textview_title"
|
||||
android:padding="4dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/log_item_group_recyclerview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:padding="5dp"
|
||||
android:padding="4dp"
|
||||
android:scrollbars="vertical"
|
||||
app:layout_constraintHeight_percent="0.33"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintHeight_percent="0.5"
|
||||
app:layout_constraintTop_toBottomOf="@+id/log_item_group_textview"
|
||||
tools:listitem="@layout/activity_log_view_group_item" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/log_item_textview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:padding="4dp"
|
||||
android:text="@string/log_item_textview_title"
|
||||
app:layout_constraintTop_toBottomOf="@+id/log_item_group_recyclerview"/>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/log_item_recyclerview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:padding="5dp"
|
||||
android:padding="4dp"
|
||||
android:scrollbars="vertical"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/log_item_group_recyclerview"
|
||||
app:layout_constraintTop_toBottomOf="@+id/log_item_textview"
|
||||
tools:listitem="@layout/activity_log_view_item" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@ -11,7 +11,7 @@
|
|||
android:id="@+id/message_groups_recyclerview"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:padding="8dp"
|
||||
android:padding="4dp"
|
||||
android:scrollbars="vertical"
|
||||
app:layout_constraintBottom_toTopOf="@+id/messages_send_to"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
android:id="@+id/message_recyclerview"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:padding="8dp"
|
||||
android:padding="4dp"
|
||||
android:scrollbars="vertical"
|
||||
app:layout_constraintBottom_toTopOf="@+id/messages_send"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
|
|
@ -284,4 +284,6 @@
|
|||
<string name="log_item_activity_delete_all_title">This will remove everything from the log. Are you sure?</string>
|
||||
<string name="log_item_activity_delete_group_title">This will remove log for %s. Are you sure?</string>
|
||||
<string name="messages_group_activity_delete_group_confirmation_title">This will remove all messages from %s. Are you sure?</string>
|
||||
<string name="log_item_textview_title">Station history</string>
|
||||
<string name="log_item_group_textview_title">Station SSIDS</string>
|
||||
</resources>
|
Ładowanie…
Reference in New Issue