File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
app/src/main/java/com/guru/composecookbook/ui/advancelists Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ import android.content.Context
44import android.content.Intent
55import android.os.Bundle
66import androidx.appcompat.app.AppCompatActivity
7+ import androidx.compose.foundation.Icon
78import androidx.compose.foundation.Text
89import androidx.compose.foundation.layout.Column
9- import androidx.compose.material.Scaffold
10- import androidx.compose.material.ScrollableTabRow
11- import androidx.compose.material.Tab
12- import androidx.compose.material.TopAppBar
10+ import androidx.compose.material.*
11+ import androidx.compose.material.icons.Icons
12+ import androidx.compose.material.icons.filled.ArrowBack
1313import androidx.compose.runtime.Composable
1414import androidx.compose.runtime.getValue
1515import androidx.compose.runtime.mutableStateOf
@@ -39,7 +39,14 @@ class AdvanceListsActivity : AppCompatActivity() {
3939 // A surface container using the 'background' color from the theme
4040 Scaffold (
4141 topBar = {
42- TopAppBar (title = { Text (text = " Advance Lists(In Progress)" ) })
42+ TopAppBar (
43+ title = { Text (text = " Advance Lists(In Progress)" ) },
44+ navigationIcon = {
45+ IconButton (onClick = { onBackPressed() }) {
46+ Icon (Icons .Filled .ArrowBack )
47+ }
48+ }
49+ )
4350 }
4451 ) {
4552 AdvanceListContent ()
You can’t perform that action at this time.
0 commit comments