Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
373 views
in Technique[技术] by (71.8m points)

kotlin - how to change android compose TextFeild`s content padding?

It`s padding is to large!what can i delete them?

TextField(
            value = text,
            textStyle = TextStyle(
                color = Color.Red,
                textDecoration = TextDecoration.None
            ),
            onValueChange = {
                text = it
            },
            placeholder = {
                Text(text = "请输入设备序列号", color = Color.Gray)
            },
            singleLine = true,
            activeColor = Color.Yellow,
            modifier = Modifier.padding(1.dp),
            backgroundColor = Color.Transparent
        )

this is my code.please help me !

question from:https://stackoverflow.com/questions/65913508/how-to-change-android-compose-textfeilds-content-padding

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...