Skip to content

Commit

Permalink
Update layout files
Browse files Browse the repository at this point in the history
  • Loading branch information
AkosPaha01 committed Aug 26, 2022
1 parent 8f367c8 commit a991151
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ class InstallPackActivity : AppCompatActivity() {
toolbar.setNavigationOnClickListener {
onBackPressedDispatcher.onBackPressed()
}

toolbar.setOnMenuItemClickListener {
if (it.itemId == R.id.select_all) {
if (adapter.getSelected().size == themes.size) adapter.clearSelection()
Expand All @@ -68,6 +67,7 @@ class InstallPackActivity : AppCompatActivity() {
setResult(RESULT_OK)
finish()
}

recyclerview.addOnScrollListener(object : RecyclerView.OnScrollListener() {
override fun onScrolled(recyclerView: RecyclerView, dx: Int, dy: Int) {
if (dy > 0) fab.hide() else if (dy < 0) fab.show()
Expand All @@ -93,7 +93,7 @@ class InstallPackActivity : AppCompatActivity() {
list
} ?: listOf()
}) {
val meta = SuFile(SuFile(it.firstOrNull()?.path ?: "").parent, "pack.meta")
val meta = File(File(it.firstOrNull()?.path ?: "").parent, "pack.meta")
themes.clear()
themes.addAll(it)
adapter.notifyDataChanged()
Expand All @@ -106,7 +106,7 @@ class InstallPackActivity : AppCompatActivity() {
if (meta.exists()) {
var name: String? = null
var author: String? = null
meta.readString().apply {
meta.readText().apply {
val matcher = Pattern.compile("(name|author)=(.*)\\n").matcher(this)
while (matcher.find()) {
when (matcher.group(1)) {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/auto_theme_select.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@
app:cornerRadius="@dimen/roundCorners" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>
</layout>
3 changes: 1 addition & 2 deletions app/src/main/res/layout/bottom_bar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
android:layout_height="wrap_content"
android:background="@drawable/bottom_sheet_background"
app:behavior_hideable="false"
app:layout_behavior="@string/bottom_sheet_behavior"
tools:backgroundTint="@android:color/darker_gray">
app:layout_behavior="@string/bottom_sheet_behavior">

<LinearLayout
android:id="@+id/bottomLayout"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/chip_container.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
style="@style/Widget.Material3.Chip.Filter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checkable="false"
app:checkedIconVisible="false"
app:chipEndPadding="-5dp"
android:checkable="false"
app:chipIcon="@drawable/ic_baseline_close_24"
app:chipIconVisible="true"
app:chipStrokeWidth="1dp"
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/fragment_theme_list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
app:cardCornerRadius="@dimen/roundCorners"
app:cardElevation="0dp"
app:elevation="0dp"
app:strokeWidth="0dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:strokeWidth="0dp">
app:layout_constraintTop_toTopOf="parent">

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/menu_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
android:paddingBottom="16dp"
tools:drawableStartCompat="@drawable/ic_download"
tools:ignore="TextContrastCheck"
tools:text="TextView" />
tools:text="TextView" />
4 changes: 2 additions & 2 deletions app/src/main/res/layout/news_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
android:layout_height="187dp"
android:layout_margin="12dp"
android:elevation="0dp"
app:strokeColor="?attr/colorOnSurface"
app:cardCornerRadius="@dimen/roundCorners"
app:cardElevation="0dp"
app:strokeColor="?attr/colorOnSurface">
app:cardElevation="0dp">

<FrameLayout
android:layout_width="match_parent"
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/res/layout/pack_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
android:id="@+id/title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textColor="?android:attr/textColorPrimary"
android:layout_weight="1"
android:textSize="16sp"
tools:text="Title" />

Expand Down Expand Up @@ -72,7 +72,6 @@
android:textSize="13sp"
tools:text="3 days ago" />
</LinearLayout>

</LinearLayout>
</LinearLayout>
</layout>
1 change: 0 additions & 1 deletion app/src/main/res/layout/soundpack_dialog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content">


<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="match_parent"
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/theme_grid_item_single.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
android:gravity="center"
tools:alpha="1">

<ImageView
<ImageView
android:id="@+id/imageView4"
android:layout_width="110dp"
android:layout_height="40dp"
Expand All @@ -102,7 +102,7 @@
android:layout_marginStart="14dp"
android:layout_marginTop="14dp"
android:textAlignment="viewStart"
app:tint="?attr/colorPrimary"
android:textColor="?attr/colorPrimary"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
Expand Down

0 comments on commit a991151

Please sign in to comment.