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
4
4
import android.content.Intent
5
5
import android.os.Bundle
6
6
import androidx.appcompat.app.AppCompatActivity
7
+ import androidx.compose.foundation.Icon
7
8
import androidx.compose.foundation.Text
8
9
import 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
13
13
import androidx.compose.runtime.Composable
14
14
import androidx.compose.runtime.getValue
15
15
import androidx.compose.runtime.mutableStateOf
@@ -39,7 +39,14 @@ class AdvanceListsActivity : AppCompatActivity() {
39
39
// A surface container using the 'background' color from the theme
40
40
Scaffold (
41
41
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
+ )
43
50
}
44
51
) {
45
52
AdvanceListContent ()
You can’t perform that action at this time.
0 commit comments