|
|
@ -34,7 +34,6 @@ import com.gyf.csams.util.randomChinese |
|
|
|
import com.orhanobut.logger.Logger |
|
|
|
import com.orhanobut.logger.Logger |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 社团界面 |
|
|
|
* 社团界面 |
|
|
|
* |
|
|
|
* |
|
|
@ -44,11 +43,12 @@ class AssociationActivity: ComponentActivity() { |
|
|
|
super.onCreate(savedInstanceState) |
|
|
|
super.onCreate(savedInstanceState) |
|
|
|
setContent { |
|
|
|
setContent { |
|
|
|
CSAMSTheme { |
|
|
|
CSAMSTheme { |
|
|
|
Body { |
|
|
|
Body { nav, scaffoldState -> |
|
|
|
nav, scaffoldState -> |
|
|
|
|
|
|
|
val context = LocalContext.current as AssociationActivity |
|
|
|
val context = LocalContext.current as AssociationActivity |
|
|
|
val model: AssociationViewModel = viewModel() |
|
|
|
val model: AssociationViewModel = viewModel() |
|
|
|
val currentMenuName:AssociationMenu by model.currentMenu.observeAsState(AssociationMenu.startMenu) |
|
|
|
val currentMenuName: AssociationMenu by model.currentMenu.observeAsState( |
|
|
|
|
|
|
|
AssociationMenu.startMenu |
|
|
|
|
|
|
|
) |
|
|
|
val intent = Intent(context, ExamActivity::class.java) |
|
|
|
val intent = Intent(context, ExamActivity::class.java) |
|
|
|
val expanded by model.expanded.observeAsState(false) |
|
|
|
val expanded by model.expanded.observeAsState(false) |
|
|
|
|
|
|
|
|
|
|
@ -59,7 +59,8 @@ class AssociationActivity: ComponentActivity() { |
|
|
|
menuNames = AssociationMenu.values(), |
|
|
|
menuNames = AssociationMenu.values(), |
|
|
|
iconMenu = { model.switchType() }) { |
|
|
|
iconMenu = { model.switchType() }) { |
|
|
|
Row { |
|
|
|
Row { |
|
|
|
DropdownMenu(expanded = expanded, |
|
|
|
DropdownMenu( |
|
|
|
|
|
|
|
expanded = expanded, |
|
|
|
onDismissRequest = { /*TODO*/ }, |
|
|
|
onDismissRequest = { /*TODO*/ }, |
|
|
|
// offset = DpOffset.Zero.copy(x=50.dp), |
|
|
|
// offset = DpOffset.Zero.copy(x=50.dp), |
|
|
|
properties = PopupProperties() |
|
|
|
properties = PopupProperties() |
|
|
@ -69,57 +70,86 @@ class AssociationActivity: ComponentActivity() { |
|
|
|
}) { |
|
|
|
}) { |
|
|
|
Row(verticalAlignment = Alignment.CenterVertically) { |
|
|
|
Row(verticalAlignment = Alignment.CenterVertically) { |
|
|
|
Text(text = "申请活动") |
|
|
|
Text(text = "申请活动") |
|
|
|
Icon(painter = painterResource(id = R.drawable.ic_add_fill), contentDescription = null) |
|
|
|
Icon( |
|
|
|
|
|
|
|
painter = painterResource(id = R.drawable.ic_add_fill), |
|
|
|
|
|
|
|
contentDescription = null |
|
|
|
|
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
DropdownMenuItem(onClick = { |
|
|
|
DropdownMenuItem(onClick = { |
|
|
|
intent.apply { |
|
|
|
intent.apply { |
|
|
|
putExtra(ExamActivityType::name.name, ExamActivityType.SET_EXAM) |
|
|
|
putExtra( |
|
|
|
|
|
|
|
ExamActivityType::name.name, |
|
|
|
|
|
|
|
ExamActivityType.SET_EXAM |
|
|
|
|
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
context.startActivity(intent) |
|
|
|
context.startActivity(intent) |
|
|
|
model.close() |
|
|
|
model.close() |
|
|
|
}) { |
|
|
|
}) { |
|
|
|
Row(verticalAlignment = Alignment.CenterVertically) { |
|
|
|
Row(verticalAlignment = Alignment.CenterVertically) { |
|
|
|
Text(text = "设置题库") |
|
|
|
Text(text = "设置题库") |
|
|
|
Icon(painter = painterResource(id = R.drawable.ic_editor), contentDescription = null) |
|
|
|
Icon( |
|
|
|
|
|
|
|
painter = painterResource(id = R.drawable.ic_editor), |
|
|
|
|
|
|
|
contentDescription = null |
|
|
|
|
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
DropdownMenuItem(onClick = { |
|
|
|
DropdownMenuItem(onClick = { |
|
|
|
context.startActivity(Intent(context,ReNameActivity::class.java)) |
|
|
|
context.startActivity( |
|
|
|
|
|
|
|
Intent( |
|
|
|
|
|
|
|
context, |
|
|
|
|
|
|
|
ReNameActivity::class.java |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
) |
|
|
|
model.close() |
|
|
|
model.close() |
|
|
|
}) { |
|
|
|
}) { |
|
|
|
Row(verticalAlignment = Alignment.CenterVertically) { |
|
|
|
Row(verticalAlignment = Alignment.CenterVertically) { |
|
|
|
Text(text = "社团命名") |
|
|
|
Text(text = "社团命名") |
|
|
|
Icon(painter = painterResource(id = R.drawable.ic_exchange_rate), contentDescription = null) |
|
|
|
Icon( |
|
|
|
|
|
|
|
painter = painterResource(id = R.drawable.ic_exchange_rate), |
|
|
|
|
|
|
|
contentDescription = null |
|
|
|
|
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
DropdownMenuItem(onClick = { |
|
|
|
DropdownMenuItem(onClick = { |
|
|
|
intent.apply { |
|
|
|
intent.apply { |
|
|
|
putExtra(ExamActivityType::name.name, ExamActivityType.JOIN_Association) |
|
|
|
putExtra( |
|
|
|
|
|
|
|
ExamActivityType::name.name, |
|
|
|
|
|
|
|
ExamActivityType.JOIN_Association |
|
|
|
|
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
context.startActivity(intent) |
|
|
|
context.startActivity(intent) |
|
|
|
model.close() |
|
|
|
model.close() |
|
|
|
}) { |
|
|
|
}) { |
|
|
|
Row(verticalAlignment = Alignment.CenterVertically) { |
|
|
|
Row(verticalAlignment = Alignment.CenterVertically) { |
|
|
|
Text(text = "申请入团") |
|
|
|
Text(text = "申请入团") |
|
|
|
Icon(painter = painterResource(id = R.drawable.ic_add_account), contentDescription = null) |
|
|
|
Icon( |
|
|
|
|
|
|
|
painter = painterResource(id = R.drawable.ic_add_account), |
|
|
|
|
|
|
|
contentDescription = null |
|
|
|
|
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
DropdownMenuItem(onClick = { |
|
|
|
DropdownMenuItem(onClick = { |
|
|
|
model.close() |
|
|
|
model.close() |
|
|
|
}) { |
|
|
|
}) { |
|
|
|
Row(verticalAlignment = Alignment.CenterVertically) { |
|
|
|
Row(verticalAlignment = Alignment.CenterVertically) { |
|
|
|
Icon(painter = painterResource(id = R.drawable.ic_arrow_up), contentDescription = null, |
|
|
|
Icon( |
|
|
|
|
|
|
|
painter = painterResource(id = R.drawable.ic_arrow_up), |
|
|
|
|
|
|
|
contentDescription = null, |
|
|
|
modifier = Modifier |
|
|
|
modifier = Modifier |
|
|
|
.height(30.dp) |
|
|
|
.height(30.dp) |
|
|
|
.fillMaxWidth()) |
|
|
|
.fillMaxWidth() |
|
|
|
|
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
NavHost(navController = nav, startDestination = AssociationMenu.startMenu.name) { |
|
|
|
NavHost( |
|
|
|
|
|
|
|
navController = nav, |
|
|
|
|
|
|
|
startDestination = AssociationMenu.startMenu.name |
|
|
|
|
|
|
|
) { |
|
|
|
composable(AssociationMenu.Member.name) { |
|
|
|
composable(AssociationMenu.Member.name) { |
|
|
|
model.clickMenu(AssociationMenu.Member) |
|
|
|
model.clickMenu(AssociationMenu.Member) |
|
|
|
Member() |
|
|
|
Member() |
|
|
@ -152,12 +182,16 @@ class AssociationActivity: ComponentActivity() { |
|
|
|
private fun Member() { |
|
|
|
private fun Member() { |
|
|
|
MainFrame(background = { Background(image = BackgroundImage.AssociationMain) }) { |
|
|
|
MainFrame(background = { Background(image = BackgroundImage.AssociationMain) }) { |
|
|
|
val searchWeight = 0.2F |
|
|
|
val searchWeight = 0.2F |
|
|
|
Search(modifier = Modifier |
|
|
|
Search( |
|
|
|
|
|
|
|
modifier = Modifier |
|
|
|
.fillMaxWidth() |
|
|
|
.fillMaxWidth() |
|
|
|
.weight(searchWeight)) |
|
|
|
.weight(searchWeight) |
|
|
|
MemberList(modifier = Modifier |
|
|
|
) |
|
|
|
|
|
|
|
MemberList( |
|
|
|
|
|
|
|
modifier = Modifier |
|
|
|
.fillMaxWidth() |
|
|
|
.fillMaxWidth() |
|
|
|
.weight(1 - searchWeight)) |
|
|
|
.weight(1 - searchWeight) |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -167,20 +201,33 @@ class AssociationActivity: ComponentActivity() { |
|
|
|
* |
|
|
|
* |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
private fun Search(modifier:Modifier=Modifier, model: MemberViewModel= viewModel(), scaffoldModel: ScaffoldModel= viewModel()){ |
|
|
|
private fun Search( |
|
|
|
|
|
|
|
modifier: Modifier = Modifier, |
|
|
|
|
|
|
|
model: MemberViewModel = viewModel(), |
|
|
|
|
|
|
|
scaffoldModel: ScaffoldModel = viewModel() |
|
|
|
|
|
|
|
) { |
|
|
|
Column(modifier = modifier.fillMaxSize()) { |
|
|
|
Column(modifier = modifier.fillMaxSize()) { |
|
|
|
Spacer(modifier = Modifier.weight(0.5F)) |
|
|
|
Spacer(modifier = Modifier.weight(0.5F)) |
|
|
|
Row(modifier = Modifier |
|
|
|
Row( |
|
|
|
|
|
|
|
modifier = Modifier |
|
|
|
.fillMaxWidth() |
|
|
|
.fillMaxWidth() |
|
|
|
.weight(0.5F),verticalAlignment = Alignment.CenterVertically) { |
|
|
|
.weight(0.5F), verticalAlignment = Alignment.CenterVertically |
|
|
|
|
|
|
|
) { |
|
|
|
|
|
|
|
|
|
|
|
val textFieldWeight = 0.4F |
|
|
|
val textFieldWeight = 0.4F |
|
|
|
val buttonWeight = 0.2F |
|
|
|
val buttonWeight = 0.2F |
|
|
|
val spaceWeight = (1 - textFieldWeight - buttonWeight) / 3 |
|
|
|
val spaceWeight = (1 - textFieldWeight - buttonWeight) / 3 |
|
|
|
Spacer(modifier = Modifier.weight((spaceWeight))) |
|
|
|
Spacer(modifier = Modifier.weight((spaceWeight))) |
|
|
|
BaseTextField(modifier = Modifier.weight(textFieldWeight),form = model.name,singeLine = true) |
|
|
|
BaseTextField( |
|
|
|
|
|
|
|
modifier = Modifier.weight(textFieldWeight), |
|
|
|
|
|
|
|
form = model.name, |
|
|
|
|
|
|
|
singeLine = true |
|
|
|
|
|
|
|
) |
|
|
|
Spacer(modifier = Modifier.weight(spaceWeight)) |
|
|
|
Spacer(modifier = Modifier.weight(spaceWeight)) |
|
|
|
OutlinedButton(onClick = { model.search { scaffoldModel.update(message=it) } },modifier = Modifier.weight(buttonWeight)) { |
|
|
|
OutlinedButton( |
|
|
|
|
|
|
|
onClick = { model.search { scaffoldModel.update(message = it) } }, |
|
|
|
|
|
|
|
modifier = Modifier.weight(buttonWeight) |
|
|
|
|
|
|
|
) { |
|
|
|
Text(text = model.search) |
|
|
|
Text(text = model.search) |
|
|
|
} |
|
|
|
} |
|
|
|
Spacer(modifier = Modifier.weight(spaceWeight)) |
|
|
|
Spacer(modifier = Modifier.weight(spaceWeight)) |
|
|
@ -193,7 +240,11 @@ class AssociationActivity: ComponentActivity() { |
|
|
|
* |
|
|
|
* |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
private fun MemberList(modifier: Modifier=Modifier, model: MemberViewModel=viewModel(), scaffoldModel: ScaffoldModel= viewModel()){ |
|
|
|
private fun MemberList( |
|
|
|
|
|
|
|
modifier: Modifier = Modifier, |
|
|
|
|
|
|
|
model: MemberViewModel = viewModel(), |
|
|
|
|
|
|
|
scaffoldModel: ScaffoldModel = viewModel() |
|
|
|
|
|
|
|
) { |
|
|
|
val list: MutableList<MemberVo>? by model.memberList.observeAsState() |
|
|
|
val list: MutableList<MemberVo>? by model.memberList.observeAsState() |
|
|
|
val listState = rememberLazyListState() |
|
|
|
val listState = rememberLazyListState() |
|
|
|
LazyColumn(state = listState, modifier = modifier) { |
|
|
|
LazyColumn(state = listState, modifier = modifier) { |
|
|
@ -218,11 +269,19 @@ class AssociationActivity: ComponentActivity() { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
item { |
|
|
|
item { |
|
|
|
Row(horizontalArrangement = Arrangement.Center,modifier = Modifier.fillMaxWidth()) { |
|
|
|
Row( |
|
|
|
IconButton(onClick = { model.loadMore{ |
|
|
|
horizontalArrangement = Arrangement.Center, |
|
|
|
|
|
|
|
modifier = Modifier.fillMaxWidth() |
|
|
|
|
|
|
|
) { |
|
|
|
|
|
|
|
IconButton(onClick = { |
|
|
|
|
|
|
|
model.loadMore { |
|
|
|
scaffoldModel.update(message = it) |
|
|
|
scaffoldModel.update(message = it) |
|
|
|
} }) { |
|
|
|
} |
|
|
|
Icon(painter = painterResource(id = R.drawable.ic_arrow_down), contentDescription = null) |
|
|
|
}) { |
|
|
|
|
|
|
|
Icon( |
|
|
|
|
|
|
|
painter = painterResource(id = R.drawable.ic_arrow_down), |
|
|
|
|
|
|
|
contentDescription = null |
|
|
|
|
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -241,9 +300,11 @@ class AssociationActivity: ComponentActivity() { |
|
|
|
}) { |
|
|
|
}) { |
|
|
|
val nameW = 0.1F |
|
|
|
val nameW = 0.1F |
|
|
|
val cardW = 0.66F * 0.4F |
|
|
|
val cardW = 0.66F * 0.4F |
|
|
|
Name(modifier = Modifier |
|
|
|
Name( |
|
|
|
|
|
|
|
modifier = Modifier |
|
|
|
.fillMaxWidth() |
|
|
|
.fillMaxWidth() |
|
|
|
.weight(nameW)) |
|
|
|
.weight(nameW) |
|
|
|
|
|
|
|
) |
|
|
|
DescCard( |
|
|
|
DescCard( |
|
|
|
modifier = Modifier |
|
|
|
modifier = Modifier |
|
|
|
.weight(cardW) |
|
|
|
.weight(cardW) |
|
|
@ -273,10 +334,12 @@ class AssociationActivity: ComponentActivity() { |
|
|
|
) |
|
|
|
) |
|
|
|
Column { |
|
|
|
Column { |
|
|
|
Spacer(modifier = Modifier.weight(1.7F / 3)) |
|
|
|
Spacer(modifier = Modifier.weight(1.7F / 3)) |
|
|
|
Row(modifier = Modifier |
|
|
|
Row( |
|
|
|
|
|
|
|
modifier = Modifier |
|
|
|
.fillMaxWidth() |
|
|
|
.fillMaxWidth() |
|
|
|
.weight(1F / 3), |
|
|
|
.weight(1F / 3), |
|
|
|
horizontalArrangement = Arrangement.Center) { |
|
|
|
horizontalArrangement = Arrangement.Center |
|
|
|
|
|
|
|
) { |
|
|
|
Text(text = "社团名字") |
|
|
|
Text(text = "社团名字") |
|
|
|
} |
|
|
|
} |
|
|
|
Spacer(modifier = Modifier.weight(0.3F / 3)) |
|
|
|
Spacer(modifier = Modifier.weight(0.3F / 3)) |
|
|
@ -294,7 +357,8 @@ class AssociationActivity: ComponentActivity() { |
|
|
|
Box(modifier = modifier, contentAlignment = Alignment.Center) { |
|
|
|
Box(modifier = modifier, contentAlignment = Alignment.Center) { |
|
|
|
Row(modifier = Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.Center) { |
|
|
|
Row(modifier = Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.Center) { |
|
|
|
|
|
|
|
|
|
|
|
Image(painter = painterResource(id = R.drawable.persion_name_border), |
|
|
|
Image( |
|
|
|
|
|
|
|
painter = painterResource(id = R.drawable.persion_name_border), |
|
|
|
contentDescription = null |
|
|
|
contentDescription = null |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
@ -310,10 +374,15 @@ class AssociationActivity: ComponentActivity() { |
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
private fun Showcase(modifier: Modifier) { |
|
|
|
private fun Showcase(modifier: Modifier) { |
|
|
|
Box(modifier = modifier, contentAlignment = Alignment.Center) { |
|
|
|
Box(modifier = modifier, contentAlignment = Alignment.Center) { |
|
|
|
Image(painter = painterResource(id = R.drawable.showcase_border), |
|
|
|
Image( |
|
|
|
|
|
|
|
painter = painterResource(id = R.drawable.showcase_border), |
|
|
|
contentDescription = null, |
|
|
|
contentDescription = null, |
|
|
|
modifier=Modifier.fillMaxSize()) |
|
|
|
modifier = Modifier.fillMaxSize() |
|
|
|
Image(painter = painterResource(id = R.drawable.ic_launcher_foreground), contentDescription = null) |
|
|
|
) |
|
|
|
|
|
|
|
Image( |
|
|
|
|
|
|
|
painter = painterResource(id = R.drawable.ic_launcher_foreground), |
|
|
|
|
|
|
|
contentDescription = null |
|
|
|
|
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -323,15 +392,24 @@ class AssociationActivity: ComponentActivity() { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
private fun AssociationList() { |
|
|
|
private fun AssociationList() { |
|
|
|
MainFrame(background = { Background(image = BackgroundImage.AssociationMain,alpha = 07F) }) { |
|
|
|
MainFrame(background = { |
|
|
|
|
|
|
|
Background( |
|
|
|
|
|
|
|
image = BackgroundImage.AssociationMain, |
|
|
|
|
|
|
|
alpha = 07F |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
}) { |
|
|
|
val onGoWeight = 0.3F |
|
|
|
val onGoWeight = 0.3F |
|
|
|
OngoingActivity(modifier = Modifier |
|
|
|
OngoingActivity( |
|
|
|
|
|
|
|
modifier = Modifier |
|
|
|
.weight(onGoWeight) |
|
|
|
.weight(onGoWeight) |
|
|
|
.fillMaxWidth()) |
|
|
|
.fillMaxWidth() |
|
|
|
HistoryActivityList(modifier = Modifier |
|
|
|
) |
|
|
|
|
|
|
|
HistoryActivityList( |
|
|
|
|
|
|
|
modifier = Modifier |
|
|
|
.fillMaxWidth() |
|
|
|
.fillMaxWidth() |
|
|
|
.weight(1 - onGoWeight) |
|
|
|
.weight(1 - onGoWeight) |
|
|
|
.border(width = 1.dp, color = MaterialTheme.colors.onBackground)) |
|
|
|
.border(width = 1.dp, color = MaterialTheme.colors.onBackground) |
|
|
|
|
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -340,7 +418,10 @@ class AssociationActivity: ComponentActivity() { |
|
|
|
* |
|
|
|
* |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
private fun OngoingActivity(modifier: Modifier=Modifier,model:OngoingActViewModel= viewModel()){ |
|
|
|
private fun OngoingActivity( |
|
|
|
|
|
|
|
modifier: Modifier = Modifier, |
|
|
|
|
|
|
|
model: OngoingActViewModel = viewModel() |
|
|
|
|
|
|
|
) { |
|
|
|
val context = LocalContext.current |
|
|
|
val context = LocalContext.current |
|
|
|
val act by model.act.observeAsState() |
|
|
|
val act by model.act.observeAsState() |
|
|
|
Row(modifier = modifier.clickable(onClick = { |
|
|
|
Row(modifier = modifier.clickable(onClick = { |
|
|
@ -361,7 +442,11 @@ class AssociationActivity: ComponentActivity() { |
|
|
|
* @param modifier |
|
|
|
* @param modifier |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Composable |
|
|
|
@Composable |
|
|
|
private fun HistoryActivityList(modifier: Modifier,model:HistoryActViewModel= viewModel(),scaffoldModel: ScaffoldModel= viewModel()){ |
|
|
|
private fun HistoryActivityList( |
|
|
|
|
|
|
|
modifier: Modifier, |
|
|
|
|
|
|
|
model: HistoryActViewModel = viewModel(), |
|
|
|
|
|
|
|
scaffoldModel: ScaffoldModel = viewModel() |
|
|
|
|
|
|
|
) { |
|
|
|
val listState = rememberLazyListState() |
|
|
|
val listState = rememberLazyListState() |
|
|
|
val list by model.data.observeAsState() |
|
|
|
val list by model.data.observeAsState() |
|
|
|
LazyColumn(state = listState, modifier = modifier) { |
|
|
|
LazyColumn(state = listState, modifier = modifier) { |
|
|
@ -394,12 +479,16 @@ class AssociationActivity: ComponentActivity() { |
|
|
|
Box(modifier = modifier.clickable(onClick = { |
|
|
|
Box(modifier = modifier.clickable(onClick = { |
|
|
|
context.startActivity(Intent(context, ActivityDetailActivity::class.java)) |
|
|
|
context.startActivity(Intent(context, ActivityDetailActivity::class.java)) |
|
|
|
}), contentAlignment = Alignment.Center) { |
|
|
|
}), contentAlignment = Alignment.Center) { |
|
|
|
Image(painter = painterResource(id = R.drawable.history_activity_border), |
|
|
|
Image( |
|
|
|
|
|
|
|
painter = painterResource(id = R.drawable.history_activity_border), |
|
|
|
contentDescription = null, |
|
|
|
contentDescription = null, |
|
|
|
modifier = Modifier.fillMaxSize()) |
|
|
|
modifier = Modifier.fillMaxSize() |
|
|
|
Image(painter = painterResource(id = R.drawable.ic_launcher_foreground), |
|
|
|
) |
|
|
|
|
|
|
|
Image( |
|
|
|
|
|
|
|
painter = painterResource(id = R.drawable.ic_launcher_foreground), |
|
|
|
contentDescription = null, |
|
|
|
contentDescription = null, |
|
|
|
modifier = Modifier.fillMaxSize()) |
|
|
|
modifier = Modifier.fillMaxSize() |
|
|
|
|
|
|
|
) |
|
|
|
Text(text = historyActVo.name) |
|
|
|
Text(text = historyActVo.name) |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|